Documentation ¶
Index ¶
- Variables
- func RegisterKaixinServiceHandler(s server.Server, hdlr KaixinServiceHandler, opts ...server.HandlerOption) error
- func RegisterKaixinServiceServer(s *grpc.Server, srv KaixinServiceServer)
- func RegisterSayServiceHandler(s server.Server, hdlr SayServiceHandler, opts ...server.HandlerOption) error
- func RegisterSayServiceServer(s *grpc.Server, srv SayServiceServer)
- func RegisterWeiwuServiceHandler(s server.Server, hdlr WeiwuServiceHandler, opts ...server.HandlerOption) error
- func RegisterWeiwuServiceServer(s *grpc.Server, srv WeiwuServiceServer)
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetConfmsg() string
- func (m *Data) GetOrderTime() *timestamp.Timestamp
- func (m *Data) GetPlat() Eplat
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) String() string
- func (m *Data) Validate() error
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type DataValidationError
- type Eplat
- type HahaRequest
- func (*HahaRequest) Descriptor() ([]byte, []int)
- func (m *HahaRequest) GetName() string
- func (*HahaRequest) ProtoMessage()
- func (m *HahaRequest) Reset()
- func (m *HahaRequest) String() string
- func (m *HahaRequest) Validate() error
- func (m *HahaRequest) XXX_DiscardUnknown()
- func (m *HahaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HahaRequest) XXX_Merge(src proto.Message)
- func (m *HahaRequest) XXX_Size() int
- func (m *HahaRequest) XXX_Unmarshal(b []byte) error
- type HahaRequestValidationError
- func (e HahaRequestValidationError) Cause() error
- func (e HahaRequestValidationError) Error() string
- func (e HahaRequestValidationError) ErrorName() string
- func (e HahaRequestValidationError) Field() string
- func (e HahaRequestValidationError) Key() bool
- func (e HahaRequestValidationError) Reason() string
- type HahaResponse
- func (*HahaResponse) Descriptor() ([]byte, []int)
- func (m *HahaResponse) GetCode() int32
- func (m *HahaResponse) GetData() string
- func (m *HahaResponse) GetMsg() string
- func (*HahaResponse) ProtoMessage()
- func (m *HahaResponse) Reset()
- func (m *HahaResponse) String() string
- func (m *HahaResponse) Validate() error
- func (m *HahaResponse) XXX_DiscardUnknown()
- func (m *HahaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HahaResponse) XXX_Merge(src proto.Message)
- func (m *HahaResponse) XXX_Size() int
- func (m *HahaResponse) XXX_Unmarshal(b []byte) error
- type HahaResponseValidationError
- func (e HahaResponseValidationError) Cause() error
- func (e HahaResponseValidationError) Error() string
- func (e HahaResponseValidationError) ErrorName() string
- func (e HahaResponseValidationError) Field() string
- func (e HahaResponseValidationError) Key() bool
- func (e HahaResponseValidationError) Reason() string
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (m *HelloRequest) GetName() string
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) String() string
- func (m *HelloRequest) Validate() error
- func (m *HelloRequest) XXX_DiscardUnknown()
- func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloRequest) XXX_Merge(src proto.Message)
- func (m *HelloRequest) XXX_Size() int
- func (m *HelloRequest) XXX_Unmarshal(b []byte) error
- type HelloRequestValidationError
- func (e HelloRequestValidationError) Cause() error
- func (e HelloRequestValidationError) Error() string
- func (e HelloRequestValidationError) ErrorName() string
- func (e HelloRequestValidationError) Field() string
- func (e HelloRequestValidationError) Key() bool
- func (e HelloRequestValidationError) Reason() string
- type HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)
- func (m *HelloResponse) GetCode() int32
- func (m *HelloResponse) GetData() []*Data
- func (m *HelloResponse) GetMsg() string
- func (*HelloResponse) ProtoMessage()
- func (m *HelloResponse) Reset()
- func (m *HelloResponse) String() string
- func (m *HelloResponse) Validate() error
- func (m *HelloResponse) XXX_DiscardUnknown()
- func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloResponse) XXX_Merge(src proto.Message)
- func (m *HelloResponse) XXX_Size() int
- func (m *HelloResponse) XXX_Unmarshal(b []byte) error
- type HelloResponseValidationError
- func (e HelloResponseValidationError) Cause() error
- func (e HelloResponseValidationError) Error() string
- func (e HelloResponseValidationError) ErrorName() string
- func (e HelloResponseValidationError) Field() string
- func (e HelloResponseValidationError) Key() bool
- func (e HelloResponseValidationError) Reason() string
- type KaixinRequest
- func (*KaixinRequest) Descriptor() ([]byte, []int)
- func (m *KaixinRequest) GetName() string
- func (*KaixinRequest) ProtoMessage()
- func (m *KaixinRequest) Reset()
- func (m *KaixinRequest) String() string
- func (m *KaixinRequest) Validate() error
- func (m *KaixinRequest) XXX_DiscardUnknown()
- func (m *KaixinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KaixinRequest) XXX_Merge(src proto.Message)
- func (m *KaixinRequest) XXX_Size() int
- func (m *KaixinRequest) XXX_Unmarshal(b []byte) error
- type KaixinRequestValidationError
- func (e KaixinRequestValidationError) Cause() error
- func (e KaixinRequestValidationError) Error() string
- func (e KaixinRequestValidationError) ErrorName() string
- func (e KaixinRequestValidationError) Field() string
- func (e KaixinRequestValidationError) Key() bool
- func (e KaixinRequestValidationError) Reason() string
- type KaixinResponse
- func (*KaixinResponse) Descriptor() ([]byte, []int)
- func (m *KaixinResponse) GetCode() int32
- func (m *KaixinResponse) GetData() string
- func (m *KaixinResponse) GetMsg() string
- func (*KaixinResponse) ProtoMessage()
- func (m *KaixinResponse) Reset()
- func (m *KaixinResponse) String() string
- func (m *KaixinResponse) Validate() error
- func (m *KaixinResponse) XXX_DiscardUnknown()
- func (m *KaixinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KaixinResponse) XXX_Merge(src proto.Message)
- func (m *KaixinResponse) XXX_Size() int
- func (m *KaixinResponse) XXX_Unmarshal(b []byte) error
- type KaixinResponseValidationError
- func (e KaixinResponseValidationError) Cause() error
- func (e KaixinResponseValidationError) Error() string
- func (e KaixinResponseValidationError) ErrorName() string
- func (e KaixinResponseValidationError) Field() string
- func (e KaixinResponseValidationError) Key() bool
- func (e KaixinResponseValidationError) Reason() string
- type KaixinService
- type KaixinServiceClient
- type KaixinServiceHandler
- type KaixinServiceServer
- type SayService
- type SayServiceClient
- type SayServiceHandler
- type SayServiceServer
- type UnimplementedKaixinServiceServer
- type UnimplementedSayServiceServer
- type UnimplementedWeiwuServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetName() string
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) Validate() error
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateRequestValidationError
- func (e UpdateRequestValidationError) Cause() error
- func (e UpdateRequestValidationError) Error() string
- func (e UpdateRequestValidationError) ErrorName() string
- func (e UpdateRequestValidationError) Field() string
- func (e UpdateRequestValidationError) Key() bool
- func (e UpdateRequestValidationError) Reason() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (m *UpdateResponse) GetCode() int32
- func (m *UpdateResponse) GetMsg() string
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) Validate() error
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
- type UpdateResponseValidationError
- func (e UpdateResponseValidationError) Cause() error
- func (e UpdateResponseValidationError) Error() string
- func (e UpdateResponseValidationError) ErrorName() string
- func (e UpdateResponseValidationError) Field() string
- func (e UpdateResponseValidationError) Key() bool
- func (e UpdateResponseValidationError) Reason() string
- type WeiwuService
- type WeiwuServiceClient
- type WeiwuServiceHandler
- type WeiwuServiceServer
Constants ¶
This section is empty.
Variables ¶
var Eplat_name = map[int32]string{
0: "EPLAT_UNSPECIFIED",
1: "EPLAT_UNKNOWN",
2: "EPLAT_WEB",
3: "EPLAT_M",
4: "EPLAT_ANDROID",
5: "EPLAT_IOS",
}
var Eplat_value = map[string]int32{
"EPLAT_UNSPECIFIED": 0,
"EPLAT_UNKNOWN": 1,
"EPLAT_WEB": 2,
"EPLAT_M": 3,
"EPLAT_ANDROID": 4,
"EPLAT_IOS": 5,
}
Functions ¶
func RegisterKaixinServiceHandler ¶
func RegisterKaixinServiceHandler(s server.Server, hdlr KaixinServiceHandler, opts ...server.HandlerOption) error
func RegisterKaixinServiceServer ¶
func RegisterKaixinServiceServer(s *grpc.Server, srv KaixinServiceServer)
func RegisterSayServiceHandler ¶
func RegisterSayServiceHandler(s server.Server, hdlr SayServiceHandler, opts ...server.HandlerOption) error
func RegisterSayServiceServer ¶
func RegisterSayServiceServer(s *grpc.Server, srv SayServiceServer)
func RegisterWeiwuServiceHandler ¶
func RegisterWeiwuServiceHandler(s server.Server, hdlr WeiwuServiceHandler, opts ...server.HandlerOption) error
func RegisterWeiwuServiceServer ¶
func RegisterWeiwuServiceServer(s *grpc.Server, srv WeiwuServiceServer)
Types ¶
type Data ¶
type Data struct { Plat Eplat `protobuf:"varint,1,opt,name=plat,proto3,enum=aimgo.passport.http2.v1.Eplat" json:"plat,omitempty"` Confmsg string `protobuf:"bytes,2,opt,name=confmsg,proto3" json:"confmsg,omitempty"` OrderTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=order_time,json=orderTime,proto3" json:"order_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data) Descriptor ¶
func (*Data) GetConfmsg ¶
func (*Data) GetOrderTime ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) Validate ¶
Validate checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type DataValidationError ¶
type DataValidationError struct {
// contains filtered or unexported fields
}
DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.
func (DataValidationError) Cause ¶
func (e DataValidationError) Cause() error
Cause function returns cause value.
func (DataValidationError) Error ¶
func (e DataValidationError) Error() string
Error satisfies the builtin error interface
func (DataValidationError) ErrorName ¶
func (e DataValidationError) ErrorName() string
ErrorName returns error name.
func (DataValidationError) Field ¶
func (e DataValidationError) Field() string
Field function returns field value.
func (DataValidationError) Key ¶
func (e DataValidationError) Key() bool
Key function returns key value.
func (DataValidationError) Reason ¶
func (e DataValidationError) Reason() string
Reason function returns reason value.
type HahaRequest ¶
type HahaRequest struct { // 请求名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HahaRequest) Descriptor ¶
func (*HahaRequest) Descriptor() ([]byte, []int)
func (*HahaRequest) GetName ¶
func (m *HahaRequest) GetName() string
func (*HahaRequest) ProtoMessage ¶
func (*HahaRequest) ProtoMessage()
func (*HahaRequest) Reset ¶
func (m *HahaRequest) Reset()
func (*HahaRequest) String ¶
func (m *HahaRequest) String() string
func (*HahaRequest) Validate ¶
func (m *HahaRequest) Validate() error
Validate checks the field values on HahaRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HahaRequest) XXX_DiscardUnknown ¶
func (m *HahaRequest) XXX_DiscardUnknown()
func (*HahaRequest) XXX_Marshal ¶
func (m *HahaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HahaRequest) XXX_Merge ¶
func (m *HahaRequest) XXX_Merge(src proto.Message)
func (*HahaRequest) XXX_Size ¶
func (m *HahaRequest) XXX_Size() int
func (*HahaRequest) XXX_Unmarshal ¶
func (m *HahaRequest) XXX_Unmarshal(b []byte) error
type HahaRequestValidationError ¶
type HahaRequestValidationError struct {
// contains filtered or unexported fields
}
HahaRequestValidationError is the validation error returned by HahaRequest.Validate if the designated constraints aren't met.
func (HahaRequestValidationError) Cause ¶
func (e HahaRequestValidationError) Cause() error
Cause function returns cause value.
func (HahaRequestValidationError) Error ¶
func (e HahaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HahaRequestValidationError) ErrorName ¶
func (e HahaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HahaRequestValidationError) Field ¶
func (e HahaRequestValidationError) Field() string
Field function returns field value.
func (HahaRequestValidationError) Key ¶
func (e HahaRequestValidationError) Key() bool
Key function returns key value.
func (HahaRequestValidationError) Reason ¶
func (e HahaRequestValidationError) Reason() string
Reason function returns reason value.
type HahaResponse ¶
type HahaResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HahaResponse) Descriptor ¶
func (*HahaResponse) Descriptor() ([]byte, []int)
func (*HahaResponse) GetCode ¶
func (m *HahaResponse) GetCode() int32
func (*HahaResponse) GetData ¶
func (m *HahaResponse) GetData() string
func (*HahaResponse) GetMsg ¶
func (m *HahaResponse) GetMsg() string
func (*HahaResponse) ProtoMessage ¶
func (*HahaResponse) ProtoMessage()
func (*HahaResponse) Reset ¶
func (m *HahaResponse) Reset()
func (*HahaResponse) String ¶
func (m *HahaResponse) String() string
func (*HahaResponse) Validate ¶
func (m *HahaResponse) Validate() error
Validate checks the field values on HahaResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HahaResponse) XXX_DiscardUnknown ¶
func (m *HahaResponse) XXX_DiscardUnknown()
func (*HahaResponse) XXX_Marshal ¶
func (m *HahaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HahaResponse) XXX_Merge ¶
func (m *HahaResponse) XXX_Merge(src proto.Message)
func (*HahaResponse) XXX_Size ¶
func (m *HahaResponse) XXX_Size() int
func (*HahaResponse) XXX_Unmarshal ¶
func (m *HahaResponse) XXX_Unmarshal(b []byte) error
type HahaResponseValidationError ¶
type HahaResponseValidationError struct {
// contains filtered or unexported fields
}
HahaResponseValidationError is the validation error returned by HahaResponse.Validate if the designated constraints aren't met.
func (HahaResponseValidationError) Cause ¶
func (e HahaResponseValidationError) Cause() error
Cause function returns cause value.
func (HahaResponseValidationError) Error ¶
func (e HahaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HahaResponseValidationError) ErrorName ¶
func (e HahaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HahaResponseValidationError) Field ¶
func (e HahaResponseValidationError) Field() string
Field function returns field value.
func (HahaResponseValidationError) Key ¶
func (e HahaResponseValidationError) Key() bool
Key function returns key value.
func (HahaResponseValidationError) Reason ¶
func (e HahaResponseValidationError) Reason() string
Reason function returns reason value.
type HelloRequest ¶
type HelloRequest struct { // 请求名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
func (*HelloRequest) Validate ¶
func (m *HelloRequest) Validate() error
Validate checks the field values on HelloRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HelloRequest) XXX_DiscardUnknown ¶
func (m *HelloRequest) XXX_DiscardUnknown()
func (*HelloRequest) XXX_Marshal ¶
func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloRequest) XXX_Merge ¶
func (m *HelloRequest) XXX_Merge(src proto.Message)
func (*HelloRequest) XXX_Size ¶
func (m *HelloRequest) XXX_Size() int
func (*HelloRequest) XXX_Unmarshal ¶
func (m *HelloRequest) XXX_Unmarshal(b []byte) error
type HelloRequestValidationError ¶
type HelloRequestValidationError struct {
// contains filtered or unexported fields
}
HelloRequestValidationError is the validation error returned by HelloRequest.Validate if the designated constraints aren't met.
func (HelloRequestValidationError) Cause ¶
func (e HelloRequestValidationError) Cause() error
Cause function returns cause value.
func (HelloRequestValidationError) Error ¶
func (e HelloRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HelloRequestValidationError) ErrorName ¶
func (e HelloRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HelloRequestValidationError) Field ¶
func (e HelloRequestValidationError) Field() string
Field function returns field value.
func (HelloRequestValidationError) Key ¶
func (e HelloRequestValidationError) Key() bool
Key function returns key value.
func (HelloRequestValidationError) Reason ¶
func (e HelloRequestValidationError) Reason() string
Reason function returns reason value.
type HelloResponse ¶
type HelloResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*Data `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) GetCode ¶
func (m *HelloResponse) GetCode() int32
func (*HelloResponse) GetData ¶
func (m *HelloResponse) GetData() []*Data
func (*HelloResponse) GetMsg ¶
func (m *HelloResponse) GetMsg() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
func (*HelloResponse) Validate ¶
func (m *HelloResponse) Validate() error
Validate checks the field values on HelloResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HelloResponse) XXX_DiscardUnknown ¶
func (m *HelloResponse) XXX_DiscardUnknown()
func (*HelloResponse) XXX_Marshal ¶
func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloResponse) XXX_Merge ¶
func (m *HelloResponse) XXX_Merge(src proto.Message)
func (*HelloResponse) XXX_Size ¶
func (m *HelloResponse) XXX_Size() int
func (*HelloResponse) XXX_Unmarshal ¶
func (m *HelloResponse) XXX_Unmarshal(b []byte) error
type HelloResponseValidationError ¶
type HelloResponseValidationError struct {
// contains filtered or unexported fields
}
HelloResponseValidationError is the validation error returned by HelloResponse.Validate if the designated constraints aren't met.
func (HelloResponseValidationError) Cause ¶
func (e HelloResponseValidationError) Cause() error
Cause function returns cause value.
func (HelloResponseValidationError) Error ¶
func (e HelloResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HelloResponseValidationError) ErrorName ¶
func (e HelloResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HelloResponseValidationError) Field ¶
func (e HelloResponseValidationError) Field() string
Field function returns field value.
func (HelloResponseValidationError) Key ¶
func (e HelloResponseValidationError) Key() bool
Key function returns key value.
func (HelloResponseValidationError) Reason ¶
func (e HelloResponseValidationError) Reason() string
Reason function returns reason value.
type KaixinRequest ¶
type KaixinRequest struct { // 请求名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KaixinRequest) Descriptor ¶
func (*KaixinRequest) Descriptor() ([]byte, []int)
func (*KaixinRequest) GetName ¶
func (m *KaixinRequest) GetName() string
func (*KaixinRequest) ProtoMessage ¶
func (*KaixinRequest) ProtoMessage()
func (*KaixinRequest) Reset ¶
func (m *KaixinRequest) Reset()
func (*KaixinRequest) String ¶
func (m *KaixinRequest) String() string
func (*KaixinRequest) Validate ¶
func (m *KaixinRequest) Validate() error
Validate checks the field values on KaixinRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*KaixinRequest) XXX_DiscardUnknown ¶
func (m *KaixinRequest) XXX_DiscardUnknown()
func (*KaixinRequest) XXX_Marshal ¶
func (m *KaixinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KaixinRequest) XXX_Merge ¶
func (m *KaixinRequest) XXX_Merge(src proto.Message)
func (*KaixinRequest) XXX_Size ¶
func (m *KaixinRequest) XXX_Size() int
func (*KaixinRequest) XXX_Unmarshal ¶
func (m *KaixinRequest) XXX_Unmarshal(b []byte) error
type KaixinRequestValidationError ¶
type KaixinRequestValidationError struct {
// contains filtered or unexported fields
}
KaixinRequestValidationError is the validation error returned by KaixinRequest.Validate if the designated constraints aren't met.
func (KaixinRequestValidationError) Cause ¶
func (e KaixinRequestValidationError) Cause() error
Cause function returns cause value.
func (KaixinRequestValidationError) Error ¶
func (e KaixinRequestValidationError) Error() string
Error satisfies the builtin error interface
func (KaixinRequestValidationError) ErrorName ¶
func (e KaixinRequestValidationError) ErrorName() string
ErrorName returns error name.
func (KaixinRequestValidationError) Field ¶
func (e KaixinRequestValidationError) Field() string
Field function returns field value.
func (KaixinRequestValidationError) Key ¶
func (e KaixinRequestValidationError) Key() bool
Key function returns key value.
func (KaixinRequestValidationError) Reason ¶
func (e KaixinRequestValidationError) Reason() string
Reason function returns reason value.
type KaixinResponse ¶
type KaixinResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KaixinResponse) Descriptor ¶
func (*KaixinResponse) Descriptor() ([]byte, []int)
func (*KaixinResponse) GetCode ¶
func (m *KaixinResponse) GetCode() int32
func (*KaixinResponse) GetData ¶
func (m *KaixinResponse) GetData() string
func (*KaixinResponse) GetMsg ¶
func (m *KaixinResponse) GetMsg() string
func (*KaixinResponse) ProtoMessage ¶
func (*KaixinResponse) ProtoMessage()
func (*KaixinResponse) Reset ¶
func (m *KaixinResponse) Reset()
func (*KaixinResponse) String ¶
func (m *KaixinResponse) String() string
func (*KaixinResponse) Validate ¶
func (m *KaixinResponse) Validate() error
Validate checks the field values on KaixinResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*KaixinResponse) XXX_DiscardUnknown ¶
func (m *KaixinResponse) XXX_DiscardUnknown()
func (*KaixinResponse) XXX_Marshal ¶
func (m *KaixinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KaixinResponse) XXX_Merge ¶
func (m *KaixinResponse) XXX_Merge(src proto.Message)
func (*KaixinResponse) XXX_Size ¶
func (m *KaixinResponse) XXX_Size() int
func (*KaixinResponse) XXX_Unmarshal ¶
func (m *KaixinResponse) XXX_Unmarshal(b []byte) error
type KaixinResponseValidationError ¶
type KaixinResponseValidationError struct {
// contains filtered or unexported fields
}
KaixinResponseValidationError is the validation error returned by KaixinResponse.Validate if the designated constraints aren't met.
func (KaixinResponseValidationError) Cause ¶
func (e KaixinResponseValidationError) Cause() error
Cause function returns cause value.
func (KaixinResponseValidationError) Error ¶
func (e KaixinResponseValidationError) Error() string
Error satisfies the builtin error interface
func (KaixinResponseValidationError) ErrorName ¶
func (e KaixinResponseValidationError) ErrorName() string
ErrorName returns error name.
func (KaixinResponseValidationError) Field ¶
func (e KaixinResponseValidationError) Field() string
Field function returns field value.
func (KaixinResponseValidationError) Key ¶
func (e KaixinResponseValidationError) Key() bool
Key function returns key value.
func (KaixinResponseValidationError) Reason ¶
func (e KaixinResponseValidationError) Reason() string
Reason function returns reason value.
type KaixinService ¶
type KaixinService interface {
Kaixin(ctx context.Context, in *KaixinRequest, opts ...client.CallOption) (*KaixinResponse, error)
}
func NewKaixinService ¶
func NewKaixinService(name string, c client.Client) KaixinService
type KaixinServiceClient ¶
type KaixinServiceClient interface {
Kaixin(ctx context.Context, in *KaixinRequest, opts ...grpc.CallOption) (*KaixinResponse, error)
}
KaixinServiceClient is the client API for KaixinService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKaixinServiceClient ¶
func NewKaixinServiceClient(cc *grpc.ClientConn) KaixinServiceClient
type KaixinServiceHandler ¶
type KaixinServiceHandler interface {
Kaixin(context.Context, *KaixinRequest, *KaixinResponse) error
}
type KaixinServiceServer ¶
type KaixinServiceServer interface {
Kaixin(context.Context, *KaixinRequest) (*KaixinResponse, error)
}
KaixinServiceServer is the server API for KaixinService service.
type SayService ¶
type SayService interface { Hello(ctx context.Context, in *HelloRequest, opts ...client.CallOption) (*HelloResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) }
func NewSayService ¶
func NewSayService(name string, c client.Client) SayService
type SayServiceClient ¶
type SayServiceClient interface { Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) }
SayServiceClient is the client API for SayService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSayServiceClient ¶
func NewSayServiceClient(cc *grpc.ClientConn) SayServiceClient
type SayServiceHandler ¶
type SayServiceHandler interface { Hello(context.Context, *HelloRequest, *HelloResponse) error Update(context.Context, *UpdateRequest, *UpdateResponse) error }
type SayServiceServer ¶
type SayServiceServer interface { Hello(context.Context, *HelloRequest) (*HelloResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) }
SayServiceServer is the server API for SayService service.
type UnimplementedKaixinServiceServer ¶
type UnimplementedKaixinServiceServer struct { }
UnimplementedKaixinServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedKaixinServiceServer) Kaixin ¶
func (*UnimplementedKaixinServiceServer) Kaixin(ctx context.Context, req *KaixinRequest) (*KaixinResponse, error)
type UnimplementedSayServiceServer ¶
type UnimplementedSayServiceServer struct { }
UnimplementedSayServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSayServiceServer) Hello ¶
func (*UnimplementedSayServiceServer) Hello(ctx context.Context, req *HelloRequest) (*HelloResponse, error)
func (*UnimplementedSayServiceServer) Update ¶
func (*UnimplementedSayServiceServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
type UnimplementedWeiwuServiceServer ¶
type UnimplementedWeiwuServiceServer struct { }
UnimplementedWeiwuServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedWeiwuServiceServer) Haha ¶
func (*UnimplementedWeiwuServiceServer) Haha(ctx context.Context, req *HahaRequest) (*HahaResponse, error)
type UpdateRequest ¶
type UpdateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetName ¶
func (m *UpdateRequest) GetName() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (m *UpdateRequest) Validate() error
Validate checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateRequestValidationError ¶
type UpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.
func (UpdateRequestValidationError) Cause ¶
func (e UpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequestValidationError) Error ¶
func (e UpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequestValidationError) ErrorName ¶
func (e UpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequestValidationError) Field ¶
func (e UpdateRequestValidationError) Field() string
Field function returns field value.
func (UpdateRequestValidationError) Key ¶
func (e UpdateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRequestValidationError) Reason ¶
func (e UpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateResponse ¶
type UpdateResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetCode ¶
func (m *UpdateResponse) GetCode() int32
func (*UpdateResponse) GetMsg ¶
func (m *UpdateResponse) GetMsg() string
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) Validate ¶
func (m *UpdateResponse) Validate() error
Validate checks the field values on UpdateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
type UpdateResponseValidationError ¶
type UpdateResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.
func (UpdateResponseValidationError) Cause ¶
func (e UpdateResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateResponseValidationError) Error ¶
func (e UpdateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateResponseValidationError) ErrorName ¶
func (e UpdateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateResponseValidationError) Field ¶
func (e UpdateResponseValidationError) Field() string
Field function returns field value.
func (UpdateResponseValidationError) Key ¶
func (e UpdateResponseValidationError) Key() bool
Key function returns key value.
func (UpdateResponseValidationError) Reason ¶
func (e UpdateResponseValidationError) Reason() string
Reason function returns reason value.
type WeiwuService ¶
type WeiwuService interface {
Haha(ctx context.Context, in *HahaRequest, opts ...client.CallOption) (*HahaResponse, error)
}
func NewWeiwuService ¶
func NewWeiwuService(name string, c client.Client) WeiwuService
type WeiwuServiceClient ¶
type WeiwuServiceClient interface {
Haha(ctx context.Context, in *HahaRequest, opts ...grpc.CallOption) (*HahaResponse, error)
}
WeiwuServiceClient is the client API for WeiwuService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWeiwuServiceClient ¶
func NewWeiwuServiceClient(cc *grpc.ClientConn) WeiwuServiceClient
type WeiwuServiceHandler ¶
type WeiwuServiceHandler interface {
Haha(context.Context, *HahaRequest, *HahaResponse) error
}
type WeiwuServiceServer ¶
type WeiwuServiceServer interface {
Haha(context.Context, *HahaRequest) (*HahaResponse, error)
}
WeiwuServiceServer is the server API for WeiwuService service.