示例#1
0
文件: trace.pb.go 项目: armada-io/h2
func (x *Event_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
	if err != nil {
		return err
	}
	*x = Event_Type(value)
	return nil
}
示例#2
0
func (x *HealthCheck_Priority) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(HealthCheck_Priority_value, data, "HealthCheck_Priority")
	if err != nil {
		return err
	}
	*x = HealthCheck_Priority(value)
	return nil
}
示例#3
0
文件: error.pb.go 项目: armada-io/h2
func (x *PlatformError_ErrorType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(PlatformError_ErrorType_value, data, "PlatformError_ErrorType")
	if err != nil {
		return err
	}
	*x = PlatformError_ErrorType(value)
	return nil
}