Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMessageServiceHTTPServer(s *http.Server, srv MessageServiceHTTPServer)
- func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() string
- func (x *Message) GetCreateTime() int64
- func (x *Message) GetFromUserId() uint32
- func (x *Message) GetId() uint64
- func (x *Message) GetToUserId() uint32
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (m *Message) Validate() error
- func (m *Message) ValidateAll() error
- type MessageActionReply
- func (*MessageActionReply) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionReply) GetStatusCode() int32
- func (x *MessageActionReply) GetStatusMsg() string
- func (*MessageActionReply) ProtoMessage()
- func (x *MessageActionReply) ProtoReflect() protoreflect.Message
- func (x *MessageActionReply) Reset()
- func (x *MessageActionReply) String() string
- func (m *MessageActionReply) Validate() error
- func (m *MessageActionReply) ValidateAll() error
- type MessageActionReplyMultiError
- type MessageActionReplyValidationError
- func (e MessageActionReplyValidationError) Cause() error
- func (e MessageActionReplyValidationError) Error() string
- func (e MessageActionReplyValidationError) ErrorName() string
- func (e MessageActionReplyValidationError) Field() string
- func (e MessageActionReplyValidationError) Key() bool
- func (e MessageActionReplyValidationError) Reason() string
- type MessageActionRequest
- func (*MessageActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionRequest) GetActionType() uint32
- func (x *MessageActionRequest) GetContent() string
- func (x *MessageActionRequest) GetToUserId() uint32
- func (x *MessageActionRequest) GetToken() string
- func (*MessageActionRequest) ProtoMessage()
- func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
- func (x *MessageActionRequest) Reset()
- func (x *MessageActionRequest) String() string
- func (m *MessageActionRequest) Validate() error
- func (m *MessageActionRequest) ValidateAll() error
- type MessageActionRequestMultiError
- type MessageActionRequestValidationError
- func (e MessageActionRequestValidationError) Cause() error
- func (e MessageActionRequestValidationError) Error() string
- func (e MessageActionRequestValidationError) ErrorName() string
- func (e MessageActionRequestValidationError) Field() string
- func (e MessageActionRequestValidationError) Key() bool
- func (e MessageActionRequestValidationError) Reason() string
- type MessageListReply
- func (*MessageListReply) Descriptor() ([]byte, []int)deprecated
- func (x *MessageListReply) GetMessageList() []*Message
- func (x *MessageListReply) GetStatusCode() int32
- func (x *MessageListReply) GetStatusMsg() string
- func (*MessageListReply) ProtoMessage()
- func (x *MessageListReply) ProtoReflect() protoreflect.Message
- func (x *MessageListReply) Reset()
- func (x *MessageListReply) String() string
- func (m *MessageListReply) Validate() error
- func (m *MessageListReply) ValidateAll() error
- type MessageListReplyMultiError
- type MessageListReplyValidationError
- func (e MessageListReplyValidationError) Cause() error
- func (e MessageListReplyValidationError) Error() string
- func (e MessageListReplyValidationError) ErrorName() string
- func (e MessageListReplyValidationError) Field() string
- func (e MessageListReplyValidationError) Key() bool
- func (e MessageListReplyValidationError) Reason() string
- type MessageListRequest
- func (*MessageListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageListRequest) GetPreMsgTime() int64
- func (x *MessageListRequest) GetToUserId() uint32
- func (x *MessageListRequest) GetToken() string
- func (*MessageListRequest) ProtoMessage()
- func (x *MessageListRequest) ProtoReflect() protoreflect.Message
- func (x *MessageListRequest) Reset()
- func (x *MessageListRequest) String() string
- func (m *MessageListRequest) Validate() error
- func (m *MessageListRequest) ValidateAll() error
- type MessageListRequestMultiError
- type MessageListRequestValidationError
- func (e MessageListRequestValidationError) Cause() error
- func (e MessageListRequestValidationError) Error() string
- func (e MessageListRequestValidationError) ErrorName() string
- func (e MessageListRequestValidationError) Field() string
- func (e MessageListRequestValidationError) Key() bool
- func (e MessageListRequestValidationError) Reason() string
- type MessageMultiError
- type MessageServiceClient
- type MessageServiceHTTPClient
- type MessageServiceHTTPClientImpl
- func (c *MessageServiceHTTPClientImpl) GetMessageList(ctx context.Context, in *MessageListRequest, opts ...http.CallOption) (*MessageListReply, error)
- func (c *MessageServiceHTTPClientImpl) MessageAction(ctx context.Context, in *MessageActionRequest, opts ...http.CallOption) (*MessageActionReply, error)
- type MessageServiceHTTPServer
- type MessageServiceServer
- type MessageValidationError
- type UnimplementedMessageServiceServer
- type UnsafeMessageServiceServer
Constants ¶
const ( MessageService_GetMessageList_FullMethodName = "/message.service.v1.messageService/GetMessageList" MessageService_MessageAction_FullMethodName = "/message.service.v1.messageService/MessageAction" )
const OperationMessageServiceGetMessageList = "/message.service.v1.messageService/GetMessageList"
const OperationMessageServiceMessageAction = "/message.service.v1.messageService/MessageAction"
Variables ¶
var File_message_service_v1_message_proto protoreflect.FileDescriptor
var MessageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "message.service.v1.messageService", HandlerType: (*MessageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMessageList", Handler: _MessageService_GetMessageList_Handler, }, { MethodName: "MessageAction", Handler: _MessageService_MessageAction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "message/service/v1/message.proto", }
MessageService_ServiceDesc is the grpc.ServiceDesc for MessageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMessageServiceHTTPServer ¶
func RegisterMessageServiceHTTPServer(s *http.Server, srv MessageServiceHTTPServer)
func RegisterMessageServiceServer ¶
func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
Types ¶
type Message ¶
type Message struct { // 消息id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 该消息接收者的id ToUserId uint32 `protobuf:"varint,2,opt,name=to_user_id,proto3" json:"to_user_id,omitempty"` // 该消息发送者的id FromUserId uint32 `protobuf:"varint,3,opt,name=from_user_id,proto3" json:"from_user_id,omitempty"` // 消息内容 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息创建时间 CreateTime int64 `protobuf:"varint,5,opt,name=create_time,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserId ¶
func (*Message) GetToUserId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Validate ¶
Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Message) ValidateAll ¶
ValidateAll checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageMultiError, or nil if none found.
type MessageActionReply ¶
type MessageActionReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // contains filtered or unexported fields }
func (*MessageActionReply) Descriptor
deprecated
func (*MessageActionReply) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionReply.ProtoReflect.Descriptor instead.
func (*MessageActionReply) GetStatusCode ¶
func (x *MessageActionReply) GetStatusCode() int32
func (*MessageActionReply) GetStatusMsg ¶
func (x *MessageActionReply) GetStatusMsg() string
func (*MessageActionReply) ProtoMessage ¶
func (*MessageActionReply) ProtoMessage()
func (*MessageActionReply) ProtoReflect ¶
func (x *MessageActionReply) ProtoReflect() protoreflect.Message
func (*MessageActionReply) Reset ¶
func (x *MessageActionReply) Reset()
func (*MessageActionReply) String ¶
func (x *MessageActionReply) String() string
func (*MessageActionReply) Validate ¶
func (m *MessageActionReply) Validate() error
Validate checks the field values on MessageActionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MessageActionReply) ValidateAll ¶
func (m *MessageActionReply) ValidateAll() error
ValidateAll checks the field values on MessageActionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageActionReplyMultiError, or nil if none found.
type MessageActionReplyMultiError ¶
type MessageActionReplyMultiError []error
MessageActionReplyMultiError is an error wrapping multiple validation errors returned by MessageActionReply.ValidateAll() if the designated constraints aren't met.
func (MessageActionReplyMultiError) AllErrors ¶
func (m MessageActionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageActionReplyMultiError) Error ¶
func (m MessageActionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageActionReplyValidationError ¶
type MessageActionReplyValidationError struct {
// contains filtered or unexported fields
}
MessageActionReplyValidationError is the validation error returned by MessageActionReply.Validate if the designated constraints aren't met.
func (MessageActionReplyValidationError) Cause ¶
func (e MessageActionReplyValidationError) Cause() error
Cause function returns cause value.
func (MessageActionReplyValidationError) Error ¶
func (e MessageActionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (MessageActionReplyValidationError) ErrorName ¶
func (e MessageActionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (MessageActionReplyValidationError) Field ¶
func (e MessageActionReplyValidationError) Field() string
Field function returns field value.
func (MessageActionReplyValidationError) Key ¶
func (e MessageActionReplyValidationError) Key() bool
Key function returns key value.
func (MessageActionReplyValidationError) Reason ¶
func (e MessageActionReplyValidationError) Reason() string
Reason function returns reason value.
type MessageActionRequest ¶
type MessageActionRequest struct { // 用户鉴权token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 对方用户id ToUserId uint32 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 1-发送消息 ActionType uint32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // 消息内容 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*MessageActionRequest) Descriptor
deprecated
func (*MessageActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionRequest.ProtoReflect.Descriptor instead.
func (*MessageActionRequest) GetActionType ¶
func (x *MessageActionRequest) GetActionType() uint32
func (*MessageActionRequest) GetContent ¶
func (x *MessageActionRequest) GetContent() string
func (*MessageActionRequest) GetToUserId ¶
func (x *MessageActionRequest) GetToUserId() uint32
func (*MessageActionRequest) GetToken ¶
func (x *MessageActionRequest) GetToken() string
func (*MessageActionRequest) ProtoMessage ¶
func (*MessageActionRequest) ProtoMessage()
func (*MessageActionRequest) ProtoReflect ¶
func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
func (*MessageActionRequest) Reset ¶
func (x *MessageActionRequest) Reset()
func (*MessageActionRequest) String ¶
func (x *MessageActionRequest) String() string
func (*MessageActionRequest) Validate ¶
func (m *MessageActionRequest) Validate() error
Validate checks the field values on MessageActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MessageActionRequest) ValidateAll ¶
func (m *MessageActionRequest) ValidateAll() error
ValidateAll checks the field values on MessageActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageActionRequestMultiError, or nil if none found.
type MessageActionRequestMultiError ¶
type MessageActionRequestMultiError []error
MessageActionRequestMultiError is an error wrapping multiple validation errors returned by MessageActionRequest.ValidateAll() if the designated constraints aren't met.
func (MessageActionRequestMultiError) AllErrors ¶
func (m MessageActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageActionRequestMultiError) Error ¶
func (m MessageActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageActionRequestValidationError ¶
type MessageActionRequestValidationError struct {
// contains filtered or unexported fields
}
MessageActionRequestValidationError is the validation error returned by MessageActionRequest.Validate if the designated constraints aren't met.
func (MessageActionRequestValidationError) Cause ¶
func (e MessageActionRequestValidationError) Cause() error
Cause function returns cause value.
func (MessageActionRequestValidationError) Error ¶
func (e MessageActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (MessageActionRequestValidationError) ErrorName ¶
func (e MessageActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (MessageActionRequestValidationError) Field ¶
func (e MessageActionRequestValidationError) Field() string
Field function returns field value.
func (MessageActionRequestValidationError) Key ¶
func (e MessageActionRequestValidationError) Key() bool
Key function returns key value.
func (MessageActionRequestValidationError) Reason ¶
func (e MessageActionRequestValidationError) Reason() string
Reason function returns reason value.
type MessageListReply ¶
type MessageListReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 消息列表 MessageList []*Message `protobuf:"bytes,3,rep,name=message_list,proto3" json:"message_list,omitempty"` // contains filtered or unexported fields }
func (*MessageListReply) Descriptor
deprecated
func (*MessageListReply) Descriptor() ([]byte, []int)
Deprecated: Use MessageListReply.ProtoReflect.Descriptor instead.
func (*MessageListReply) GetMessageList ¶
func (x *MessageListReply) GetMessageList() []*Message
func (*MessageListReply) GetStatusCode ¶
func (x *MessageListReply) GetStatusCode() int32
func (*MessageListReply) GetStatusMsg ¶
func (x *MessageListReply) GetStatusMsg() string
func (*MessageListReply) ProtoMessage ¶
func (*MessageListReply) ProtoMessage()
func (*MessageListReply) ProtoReflect ¶
func (x *MessageListReply) ProtoReflect() protoreflect.Message
func (*MessageListReply) Reset ¶
func (x *MessageListReply) Reset()
func (*MessageListReply) String ¶
func (x *MessageListReply) String() string
func (*MessageListReply) Validate ¶
func (m *MessageListReply) Validate() error
Validate checks the field values on MessageListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MessageListReply) ValidateAll ¶
func (m *MessageListReply) ValidateAll() error
ValidateAll checks the field values on MessageListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageListReplyMultiError, or nil if none found.
type MessageListReplyMultiError ¶
type MessageListReplyMultiError []error
MessageListReplyMultiError is an error wrapping multiple validation errors returned by MessageListReply.ValidateAll() if the designated constraints aren't met.
func (MessageListReplyMultiError) AllErrors ¶
func (m MessageListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageListReplyMultiError) Error ¶
func (m MessageListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageListReplyValidationError ¶
type MessageListReplyValidationError struct {
// contains filtered or unexported fields
}
MessageListReplyValidationError is the validation error returned by MessageListReply.Validate if the designated constraints aren't met.
func (MessageListReplyValidationError) Cause ¶
func (e MessageListReplyValidationError) Cause() error
Cause function returns cause value.
func (MessageListReplyValidationError) Error ¶
func (e MessageListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (MessageListReplyValidationError) ErrorName ¶
func (e MessageListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (MessageListReplyValidationError) Field ¶
func (e MessageListReplyValidationError) Field() string
Field function returns field value.
func (MessageListReplyValidationError) Key ¶
func (e MessageListReplyValidationError) Key() bool
Key function returns key value.
func (MessageListReplyValidationError) Reason ¶
func (e MessageListReplyValidationError) Reason() string
Reason function returns reason value.
type MessageListRequest ¶
type MessageListRequest struct { // 用户鉴权token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 对方用户id ToUserId uint32 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` //上次最新消息的时间 PreMsgTime int64 `protobuf:"varint,3,opt,name=pre_msg_time,json=preMsgTime,proto3" json:"pre_msg_time,omitempty"` // contains filtered or unexported fields }
func (*MessageListRequest) Descriptor
deprecated
func (*MessageListRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageListRequest.ProtoReflect.Descriptor instead.
func (*MessageListRequest) GetPreMsgTime ¶
func (x *MessageListRequest) GetPreMsgTime() int64
func (*MessageListRequest) GetToUserId ¶
func (x *MessageListRequest) GetToUserId() uint32
func (*MessageListRequest) GetToken ¶
func (x *MessageListRequest) GetToken() string
func (*MessageListRequest) ProtoMessage ¶
func (*MessageListRequest) ProtoMessage()
func (*MessageListRequest) ProtoReflect ¶
func (x *MessageListRequest) ProtoReflect() protoreflect.Message
func (*MessageListRequest) Reset ¶
func (x *MessageListRequest) Reset()
func (*MessageListRequest) String ¶
func (x *MessageListRequest) String() string
func (*MessageListRequest) Validate ¶
func (m *MessageListRequest) Validate() error
Validate checks the field values on MessageListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MessageListRequest) ValidateAll ¶
func (m *MessageListRequest) ValidateAll() error
ValidateAll checks the field values on MessageListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageListRequestMultiError, or nil if none found.
type MessageListRequestMultiError ¶
type MessageListRequestMultiError []error
MessageListRequestMultiError is an error wrapping multiple validation errors returned by MessageListRequest.ValidateAll() if the designated constraints aren't met.
func (MessageListRequestMultiError) AllErrors ¶
func (m MessageListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageListRequestMultiError) Error ¶
func (m MessageListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageListRequestValidationError ¶
type MessageListRequestValidationError struct {
// contains filtered or unexported fields
}
MessageListRequestValidationError is the validation error returned by MessageListRequest.Validate if the designated constraints aren't met.
func (MessageListRequestValidationError) Cause ¶
func (e MessageListRequestValidationError) Cause() error
Cause function returns cause value.
func (MessageListRequestValidationError) Error ¶
func (e MessageListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (MessageListRequestValidationError) ErrorName ¶
func (e MessageListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (MessageListRequestValidationError) Field ¶
func (e MessageListRequestValidationError) Field() string
Field function returns field value.
func (MessageListRequestValidationError) Key ¶
func (e MessageListRequestValidationError) Key() bool
Key function returns key value.
func (MessageListRequestValidationError) Reason ¶
func (e MessageListRequestValidationError) Reason() string
Reason function returns reason value.
type MessageMultiError ¶
type MessageMultiError []error
MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.
func (MessageMultiError) AllErrors ¶
func (m MessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageMultiError) Error ¶
func (m MessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageServiceClient ¶
type MessageServiceClient interface { GetMessageList(ctx context.Context, in *MessageListRequest, opts ...grpc.CallOption) (*MessageListReply, error) MessageAction(ctx context.Context, in *MessageActionRequest, opts ...grpc.CallOption) (*MessageActionReply, error) }
MessageServiceClient is the client API for MessageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMessageServiceClient ¶
func NewMessageServiceClient(cc grpc.ClientConnInterface) MessageServiceClient
type MessageServiceHTTPClient ¶
type MessageServiceHTTPClient interface { GetMessageList(ctx context.Context, req *MessageListRequest, opts ...http.CallOption) (rsp *MessageListReply, err error) MessageAction(ctx context.Context, req *MessageActionRequest, opts ...http.CallOption) (rsp *MessageActionReply, err error) }
func NewMessageServiceHTTPClient ¶
func NewMessageServiceHTTPClient(client *http.Client) MessageServiceHTTPClient
type MessageServiceHTTPClientImpl ¶
type MessageServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MessageServiceHTTPClientImpl) GetMessageList ¶
func (c *MessageServiceHTTPClientImpl) GetMessageList(ctx context.Context, in *MessageListRequest, opts ...http.CallOption) (*MessageListReply, error)
func (*MessageServiceHTTPClientImpl) MessageAction ¶
func (c *MessageServiceHTTPClientImpl) MessageAction(ctx context.Context, in *MessageActionRequest, opts ...http.CallOption) (*MessageActionReply, error)
type MessageServiceHTTPServer ¶
type MessageServiceHTTPServer interface { GetMessageList(context.Context, *MessageListRequest) (*MessageListReply, error) MessageAction(context.Context, *MessageActionRequest) (*MessageActionReply, error) }
type MessageServiceServer ¶
type MessageServiceServer interface { GetMessageList(context.Context, *MessageListRequest) (*MessageListReply, error) MessageAction(context.Context, *MessageActionRequest) (*MessageActionReply, error) // contains filtered or unexported methods }
MessageServiceServer is the server API for MessageService service. All implementations must embed UnimplementedMessageServiceServer for forward compatibility
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMessageServiceServer ¶
type UnimplementedMessageServiceServer struct { }
UnimplementedMessageServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMessageServiceServer) GetMessageList ¶
func (UnimplementedMessageServiceServer) GetMessageList(context.Context, *MessageListRequest) (*MessageListReply, error)
func (UnimplementedMessageServiceServer) MessageAction ¶
func (UnimplementedMessageServiceServer) MessageAction(context.Context, *MessageActionRequest) (*MessageActionReply, error)
type UnsafeMessageServiceServer ¶
type UnsafeMessageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMessageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessageServiceServer will result in compilation errors.