Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMessengerServiceServer(s grpc.ServiceRegistrar, srv MessengerServiceServer)
- type CreateOrUpdateThreadRequest
- func (*CreateOrUpdateThreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrUpdateThreadRequest) GetThread() *messenger.Thread
- func (*CreateOrUpdateThreadRequest) ProtoMessage()
- func (x *CreateOrUpdateThreadRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateThreadRequest) Reset()
- func (x *CreateOrUpdateThreadRequest) String() string
- func (m *CreateOrUpdateThreadRequest) Validate() error
- func (m *CreateOrUpdateThreadRequest) ValidateAll() error
- type CreateOrUpdateThreadRequestMultiError
- type CreateOrUpdateThreadRequestValidationError
- func (e CreateOrUpdateThreadRequestValidationError) Cause() error
- func (e CreateOrUpdateThreadRequestValidationError) Error() string
- func (e CreateOrUpdateThreadRequestValidationError) ErrorName() string
- func (e CreateOrUpdateThreadRequestValidationError) Field() string
- func (e CreateOrUpdateThreadRequestValidationError) Key() bool
- func (e CreateOrUpdateThreadRequestValidationError) Reason() string
- type CreateOrUpdateThreadResponse
- func (*CreateOrUpdateThreadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrUpdateThreadResponse) GetThread() *messenger.Thread
- func (*CreateOrUpdateThreadResponse) ProtoMessage()
- func (x *CreateOrUpdateThreadResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateThreadResponse) Reset()
- func (x *CreateOrUpdateThreadResponse) String() string
- func (m *CreateOrUpdateThreadResponse) Validate() error
- func (m *CreateOrUpdateThreadResponse) ValidateAll() error
- type CreateOrUpdateThreadResponseMultiError
- type CreateOrUpdateThreadResponseValidationError
- func (e CreateOrUpdateThreadResponseValidationError) Cause() error
- func (e CreateOrUpdateThreadResponseValidationError) Error() string
- func (e CreateOrUpdateThreadResponseValidationError) ErrorName() string
- func (e CreateOrUpdateThreadResponseValidationError) Field() string
- func (e CreateOrUpdateThreadResponseValidationError) Key() bool
- func (e CreateOrUpdateThreadResponseValidationError) Reason() string
- type DeleteMessageRequest
- func (*DeleteMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMessageRequest) GetMessageId() uint64
- func (x *DeleteMessageRequest) GetThreadId() uint64
- func (*DeleteMessageRequest) ProtoMessage()
- func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMessageRequest) Reset()
- func (x *DeleteMessageRequest) String() string
- func (m *DeleteMessageRequest) Validate() error
- func (m *DeleteMessageRequest) ValidateAll() error
- type DeleteMessageRequestMultiError
- type DeleteMessageRequestValidationError
- func (e DeleteMessageRequestValidationError) Cause() error
- func (e DeleteMessageRequestValidationError) Error() string
- func (e DeleteMessageRequestValidationError) ErrorName() string
- func (e DeleteMessageRequestValidationError) Field() string
- func (e DeleteMessageRequestValidationError) Key() bool
- func (e DeleteMessageRequestValidationError) Reason() string
- type DeleteMessageResponse
- func (*DeleteMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteMessageResponse) ProtoMessage()
- func (x *DeleteMessageResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteMessageResponse) Reset()
- func (x *DeleteMessageResponse) String() string
- func (m *DeleteMessageResponse) Validate() error
- func (m *DeleteMessageResponse) ValidateAll() error
- type DeleteMessageResponseMultiError
- type DeleteMessageResponseValidationError
- func (e DeleteMessageResponseValidationError) Cause() error
- func (e DeleteMessageResponseValidationError) Error() string
- func (e DeleteMessageResponseValidationError) ErrorName() string
- func (e DeleteMessageResponseValidationError) Field() string
- func (e DeleteMessageResponseValidationError) Key() bool
- func (e DeleteMessageResponseValidationError) Reason() string
- type DeleteThreadRequest
- func (*DeleteThreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteThreadRequest) GetThreadId() uint64
- func (*DeleteThreadRequest) ProtoMessage()
- func (x *DeleteThreadRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteThreadRequest) Reset()
- func (x *DeleteThreadRequest) String() string
- func (m *DeleteThreadRequest) Validate() error
- func (m *DeleteThreadRequest) ValidateAll() error
- type DeleteThreadRequestMultiError
- type DeleteThreadRequestValidationError
- func (e DeleteThreadRequestValidationError) Cause() error
- func (e DeleteThreadRequestValidationError) Error() string
- func (e DeleteThreadRequestValidationError) ErrorName() string
- func (e DeleteThreadRequestValidationError) Field() string
- func (e DeleteThreadRequestValidationError) Key() bool
- func (e DeleteThreadRequestValidationError) Reason() string
- type DeleteThreadResponse
- func (*DeleteThreadResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteThreadResponse) ProtoMessage()
- func (x *DeleteThreadResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteThreadResponse) Reset()
- func (x *DeleteThreadResponse) String() string
- func (m *DeleteThreadResponse) Validate() error
- func (m *DeleteThreadResponse) ValidateAll() error
- type DeleteThreadResponseMultiError
- type DeleteThreadResponseValidationError
- func (e DeleteThreadResponseValidationError) Cause() error
- func (e DeleteThreadResponseValidationError) Error() string
- func (e DeleteThreadResponseValidationError) ErrorName() string
- func (e DeleteThreadResponseValidationError) Field() string
- func (e DeleteThreadResponseValidationError) Key() bool
- func (e DeleteThreadResponseValidationError) Reason() string
- type GetThreadMessagesRequest
- func (*GetThreadMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetThreadMessagesRequest) GetAfter() *timestamp.Timestamp
- func (x *GetThreadMessagesRequest) GetThreadId() uint64
- func (*GetThreadMessagesRequest) ProtoMessage()
- func (x *GetThreadMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetThreadMessagesRequest) Reset()
- func (x *GetThreadMessagesRequest) String() string
- func (m *GetThreadMessagesRequest) Validate() error
- func (m *GetThreadMessagesRequest) ValidateAll() error
- type GetThreadMessagesRequestMultiError
- type GetThreadMessagesRequestValidationError
- func (e GetThreadMessagesRequestValidationError) Cause() error
- func (e GetThreadMessagesRequestValidationError) Error() string
- func (e GetThreadMessagesRequestValidationError) ErrorName() string
- func (e GetThreadMessagesRequestValidationError) Field() string
- func (e GetThreadMessagesRequestValidationError) Key() bool
- func (e GetThreadMessagesRequestValidationError) Reason() string
- type GetThreadMessagesResponse
- func (*GetThreadMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetThreadMessagesResponse) GetMessages() []*messenger.Message
- func (*GetThreadMessagesResponse) ProtoMessage()
- func (x *GetThreadMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetThreadMessagesResponse) Reset()
- func (x *GetThreadMessagesResponse) String() string
- func (m *GetThreadMessagesResponse) Validate() error
- func (m *GetThreadMessagesResponse) ValidateAll() error
- type GetThreadMessagesResponseMultiError
- type GetThreadMessagesResponseValidationError
- func (e GetThreadMessagesResponseValidationError) Cause() error
- func (e GetThreadMessagesResponseValidationError) Error() string
- func (e GetThreadMessagesResponseValidationError) ErrorName() string
- func (e GetThreadMessagesResponseValidationError) Field() string
- func (e GetThreadMessagesResponseValidationError) Key() bool
- func (e GetThreadMessagesResponseValidationError) Reason() string
- type GetThreadRequest
- func (*GetThreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetThreadRequest) GetThreadId() uint64
- func (*GetThreadRequest) ProtoMessage()
- func (x *GetThreadRequest) ProtoReflect() protoreflect.Message
- func (x *GetThreadRequest) Reset()
- func (x *GetThreadRequest) String() string
- func (m *GetThreadRequest) Validate() error
- func (m *GetThreadRequest) ValidateAll() error
- type GetThreadRequestMultiError
- type GetThreadRequestValidationError
- func (e GetThreadRequestValidationError) Cause() error
- func (e GetThreadRequestValidationError) Error() string
- func (e GetThreadRequestValidationError) ErrorName() string
- func (e GetThreadRequestValidationError) Field() string
- func (e GetThreadRequestValidationError) Key() bool
- func (e GetThreadRequestValidationError) Reason() string
- type GetThreadResponse
- func (*GetThreadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetThreadResponse) GetThread() *messenger.Thread
- func (*GetThreadResponse) ProtoMessage()
- func (x *GetThreadResponse) ProtoReflect() protoreflect.Message
- func (x *GetThreadResponse) Reset()
- func (x *GetThreadResponse) String() string
- func (m *GetThreadResponse) Validate() error
- func (m *GetThreadResponse) ValidateAll() error
- type GetThreadResponseMultiError
- type GetThreadResponseValidationError
- func (e GetThreadResponseValidationError) Cause() error
- func (e GetThreadResponseValidationError) Error() string
- func (e GetThreadResponseValidationError) ErrorName() string
- func (e GetThreadResponseValidationError) Field() string
- func (e GetThreadResponseValidationError) Key() bool
- func (e GetThreadResponseValidationError) Reason() string
- type LeaveThreadRequest
- func (*LeaveThreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveThreadRequest) GetThreadId() uint64
- func (*LeaveThreadRequest) ProtoMessage()
- func (x *LeaveThreadRequest) ProtoReflect() protoreflect.Message
- func (x *LeaveThreadRequest) Reset()
- func (x *LeaveThreadRequest) String() string
- func (m *LeaveThreadRequest) Validate() error
- func (m *LeaveThreadRequest) ValidateAll() error
- type LeaveThreadRequestMultiError
- type LeaveThreadRequestValidationError
- func (e LeaveThreadRequestValidationError) Cause() error
- func (e LeaveThreadRequestValidationError) Error() string
- func (e LeaveThreadRequestValidationError) ErrorName() string
- func (e LeaveThreadRequestValidationError) Field() string
- func (e LeaveThreadRequestValidationError) Key() bool
- func (e LeaveThreadRequestValidationError) Reason() string
- type LeaveThreadResponse
- func (*LeaveThreadResponse) Descriptor() ([]byte, []int)deprecated
- func (*LeaveThreadResponse) ProtoMessage()
- func (x *LeaveThreadResponse) ProtoReflect() protoreflect.Message
- func (x *LeaveThreadResponse) Reset()
- func (x *LeaveThreadResponse) String() string
- func (m *LeaveThreadResponse) Validate() error
- func (m *LeaveThreadResponse) ValidateAll() error
- type LeaveThreadResponseMultiError
- type LeaveThreadResponseValidationError
- func (e LeaveThreadResponseValidationError) Cause() error
- func (e LeaveThreadResponseValidationError) Error() string
- func (e LeaveThreadResponseValidationError) ErrorName() string
- func (e LeaveThreadResponseValidationError) Field() string
- func (e LeaveThreadResponseValidationError) Key() bool
- func (e LeaveThreadResponseValidationError) Reason() string
- type ListThreadsRequest
- func (*ListThreadsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListThreadsRequest) GetAfter() *timestamp.Timestamp
- func (x *ListThreadsRequest) GetPagination() *database.PaginationRequest
- func (*ListThreadsRequest) ProtoMessage()
- func (x *ListThreadsRequest) ProtoReflect() protoreflect.Message
- func (x *ListThreadsRequest) Reset()
- func (x *ListThreadsRequest) String() string
- func (m *ListThreadsRequest) Validate() error
- func (m *ListThreadsRequest) ValidateAll() error
- type ListThreadsRequestMultiError
- type ListThreadsRequestValidationError
- func (e ListThreadsRequestValidationError) Cause() error
- func (e ListThreadsRequestValidationError) Error() string
- func (e ListThreadsRequestValidationError) ErrorName() string
- func (e ListThreadsRequestValidationError) Field() string
- func (e ListThreadsRequestValidationError) Key() bool
- func (e ListThreadsRequestValidationError) Reason() string
- type ListThreadsResponse
- func (*ListThreadsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListThreadsResponse) GetPagination() *database.PaginationResponse
- func (x *ListThreadsResponse) GetThreads() []*messenger.Thread
- func (*ListThreadsResponse) ProtoMessage()
- func (x *ListThreadsResponse) ProtoReflect() protoreflect.Message
- func (x *ListThreadsResponse) Reset()
- func (x *ListThreadsResponse) String() string
- func (m *ListThreadsResponse) Validate() error
- func (m *ListThreadsResponse) ValidateAll() error
- type ListThreadsResponseMultiError
- type ListThreadsResponseValidationError
- func (e ListThreadsResponseValidationError) Cause() error
- func (e ListThreadsResponseValidationError) Error() string
- func (e ListThreadsResponseValidationError) ErrorName() string
- func (e ListThreadsResponseValidationError) Field() string
- func (e ListThreadsResponseValidationError) Key() bool
- func (e ListThreadsResponseValidationError) Reason() string
- type MessengerServiceClient
- type MessengerServiceServer
- type Params
- type PostMessageRequest
- func (*PostMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostMessageRequest) GetMessage() *messenger.Message
- func (*PostMessageRequest) ProtoMessage()
- func (x *PostMessageRequest) ProtoReflect() protoreflect.Message
- func (x *PostMessageRequest) Reset()
- func (x *PostMessageRequest) String() string
- func (m *PostMessageRequest) Validate() error
- func (m *PostMessageRequest) ValidateAll() error
- type PostMessageRequestMultiError
- type PostMessageRequestValidationError
- func (e PostMessageRequestValidationError) Cause() error
- func (e PostMessageRequestValidationError) Error() string
- func (e PostMessageRequestValidationError) ErrorName() string
- func (e PostMessageRequestValidationError) Field() string
- func (e PostMessageRequestValidationError) Key() bool
- func (e PostMessageRequestValidationError) Reason() string
- type PostMessageResponse
- func (*PostMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostMessageResponse) GetMessage() *messenger.Message
- func (*PostMessageResponse) ProtoMessage()
- func (x *PostMessageResponse) ProtoReflect() protoreflect.Message
- func (x *PostMessageResponse) Reset()
- func (x *PostMessageResponse) String() string
- func (m *PostMessageResponse) Validate() error
- func (m *PostMessageResponse) ValidateAll() error
- type PostMessageResponseMultiError
- type PostMessageResponseValidationError
- func (e PostMessageResponseValidationError) Cause() error
- func (e PostMessageResponseValidationError) Error() string
- func (e PostMessageResponseValidationError) ErrorName() string
- func (e PostMessageResponseValidationError) Field() string
- func (e PostMessageResponseValidationError) Key() bool
- func (e PostMessageResponseValidationError) Reason() string
- type Server
- func (s *Server) CreateOrUpdateThread(ctx context.Context, req *CreateOrUpdateThreadRequest) (*CreateOrUpdateThreadResponse, error)
- func (s *Server) DeleteMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageResponse, error)
- func (s *Server) DeleteThread(ctx context.Context, req *DeleteThreadRequest) (*DeleteThreadResponse, error)
- func (s *Server) GetPermsRemap() map[string]string
- func (s *Server) GetThread(ctx context.Context, req *GetThreadRequest) (*GetThreadResponse, error)
- func (s *Server) GetThreadMessages(ctx context.Context, req *GetThreadMessagesRequest) (*GetThreadMessagesResponse, error)
- func (s *Server) LeaveThread(ctx context.Context, req *LeaveThreadRequest) (*LeaveThreadResponse, error)
- func (s *Server) ListThreads(ctx context.Context, req *ListThreadsRequest) (*ListThreadsResponse, error)
- func (s *Server) PostMessage(ctx context.Context, req *PostMessageRequest) (*PostMessageResponse, error)
- func (s *Server) RegisterServer(srv *grpc.Server)
- func (s *Server) SetThreadUserState(ctx context.Context, req *SetThreadUserStateRequest) (*SetThreadUserStateResponse, error)
- type SetThreadUserStateRequest
- func (*SetThreadUserStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetThreadUserStateRequest) GetState() *messenger.ThreadUserState
- func (*SetThreadUserStateRequest) ProtoMessage()
- func (x *SetThreadUserStateRequest) ProtoReflect() protoreflect.Message
- func (x *SetThreadUserStateRequest) Reset()
- func (x *SetThreadUserStateRequest) String() string
- func (m *SetThreadUserStateRequest) Validate() error
- func (m *SetThreadUserStateRequest) ValidateAll() error
- type SetThreadUserStateRequestMultiError
- type SetThreadUserStateRequestValidationError
- func (e SetThreadUserStateRequestValidationError) Cause() error
- func (e SetThreadUserStateRequestValidationError) Error() string
- func (e SetThreadUserStateRequestValidationError) ErrorName() string
- func (e SetThreadUserStateRequestValidationError) Field() string
- func (e SetThreadUserStateRequestValidationError) Key() bool
- func (e SetThreadUserStateRequestValidationError) Reason() string
- type SetThreadUserStateResponse
- func (*SetThreadUserStateResponse) Descriptor() ([]byte, []int)deprecated
- func (*SetThreadUserStateResponse) ProtoMessage()
- func (x *SetThreadUserStateResponse) ProtoReflect() protoreflect.Message
- func (x *SetThreadUserStateResponse) Reset()
- func (x *SetThreadUserStateResponse) String() string
- func (m *SetThreadUserStateResponse) Validate() error
- func (m *SetThreadUserStateResponse) ValidateAll() error
- type SetThreadUserStateResponseMultiError
- type SetThreadUserStateResponseValidationError
- func (e SetThreadUserStateResponseValidationError) Cause() error
- func (e SetThreadUserStateResponseValidationError) Error() string
- func (e SetThreadUserStateResponseValidationError) ErrorName() string
- func (e SetThreadUserStateResponseValidationError) Field() string
- func (e SetThreadUserStateResponseValidationError) Key() bool
- func (e SetThreadUserStateResponseValidationError) Reason() string
- type UnimplementedMessengerServiceServer
- func (UnimplementedMessengerServiceServer) CreateOrUpdateThread(context.Context, *CreateOrUpdateThreadRequest) (*CreateOrUpdateThreadResponse, error)
- func (UnimplementedMessengerServiceServer) DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error)
- func (UnimplementedMessengerServiceServer) DeleteThread(context.Context, *DeleteThreadRequest) (*DeleteThreadResponse, error)
- func (UnimplementedMessengerServiceServer) GetThread(context.Context, *GetThreadRequest) (*GetThreadResponse, error)
- func (UnimplementedMessengerServiceServer) GetThreadMessages(context.Context, *GetThreadMessagesRequest) (*GetThreadMessagesResponse, error)
- func (UnimplementedMessengerServiceServer) LeaveThread(context.Context, *LeaveThreadRequest) (*LeaveThreadResponse, error)
- func (UnimplementedMessengerServiceServer) ListThreads(context.Context, *ListThreadsRequest) (*ListThreadsResponse, error)
- func (UnimplementedMessengerServiceServer) PostMessage(context.Context, *PostMessageRequest) (*PostMessageResponse, error)
- func (UnimplementedMessengerServiceServer) SetThreadUserState(context.Context, *SetThreadUserStateRequest) (*SetThreadUserStateResponse, error)
- type UnsafeMessengerServiceServer
Constants ¶
const ( MessengerService_ListThreads_FullMethodName = "/services.messenger.MessengerService/ListThreads" MessengerService_GetThread_FullMethodName = "/services.messenger.MessengerService/GetThread" MessengerService_CreateOrUpdateThread_FullMethodName = "/services.messenger.MessengerService/CreateOrUpdateThread" MessengerService_DeleteThread_FullMethodName = "/services.messenger.MessengerService/DeleteThread" MessengerService_SetThreadUserState_FullMethodName = "/services.messenger.MessengerService/SetThreadUserState" MessengerService_LeaveThread_FullMethodName = "/services.messenger.MessengerService/LeaveThread" MessengerService_GetThreadMessages_FullMethodName = "/services.messenger.MessengerService/GetThreadMessages" MessengerService_PostMessage_FullMethodName = "/services.messenger.MessengerService/PostMessage" MessengerService_DeleteMessage_FullMethodName = "/services.messenger.MessengerService/DeleteMessage" )
const (
ThreadsDefaultPageSize = 16
)
Variables ¶
var File_services_messenger_messenger_proto protoreflect.FileDescriptor
var MessengerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.messenger.MessengerService", HandlerType: (*MessengerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListThreads", Handler: _MessengerService_ListThreads_Handler, }, { MethodName: "GetThread", Handler: _MessengerService_GetThread_Handler, }, { MethodName: "CreateOrUpdateThread", Handler: _MessengerService_CreateOrUpdateThread_Handler, }, { MethodName: "DeleteThread", Handler: _MessengerService_DeleteThread_Handler, }, { MethodName: "SetThreadUserState", Handler: _MessengerService_SetThreadUserState_Handler, }, { MethodName: "LeaveThread", Handler: _MessengerService_LeaveThread_Handler, }, { MethodName: "GetThreadMessages", Handler: _MessengerService_GetThreadMessages_Handler, }, { MethodName: "PostMessage", Handler: _MessengerService_PostMessage_Handler, }, { MethodName: "DeleteMessage", Handler: _MessengerService_DeleteMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/messenger/messenger.proto", }
MessengerService_ServiceDesc is the grpc.ServiceDesc for MessengerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PermsRemap = map[string]string{
"MessengerService/DeleteMessage": "SuperUser",
"MessengerService/GetThread": "MessengerService/ListThreads",
"MessengerService/GetThreadMessages": "MessengerService/ListThreads",
"MessengerService/LeaveThread": "MessengerService/ListThreads",
"MessengerService/SetThreadUserState": "MessengerService/ListThreads",
}
Functions ¶
func RegisterMessengerServiceServer ¶
func RegisterMessengerServiceServer(s grpc.ServiceRegistrar, srv MessengerServiceServer)
Types ¶
type CreateOrUpdateThreadRequest ¶
type CreateOrUpdateThreadRequest struct { Thread *messenger.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` // contains filtered or unexported fields }
func (*CreateOrUpdateThreadRequest) Descriptor
deprecated
func (*CreateOrUpdateThreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrUpdateThreadRequest.ProtoReflect.Descriptor instead.
func (*CreateOrUpdateThreadRequest) GetThread ¶
func (x *CreateOrUpdateThreadRequest) GetThread() *messenger.Thread
func (*CreateOrUpdateThreadRequest) ProtoMessage ¶
func (*CreateOrUpdateThreadRequest) ProtoMessage()
func (*CreateOrUpdateThreadRequest) ProtoReflect ¶
func (x *CreateOrUpdateThreadRequest) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateThreadRequest) Reset ¶
func (x *CreateOrUpdateThreadRequest) Reset()
func (*CreateOrUpdateThreadRequest) String ¶
func (x *CreateOrUpdateThreadRequest) String() string
func (*CreateOrUpdateThreadRequest) Validate ¶
func (m *CreateOrUpdateThreadRequest) Validate() error
Validate checks the field values on CreateOrUpdateThreadRequest 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 (*CreateOrUpdateThreadRequest) ValidateAll ¶
func (m *CreateOrUpdateThreadRequest) ValidateAll() error
ValidateAll checks the field values on CreateOrUpdateThreadRequest 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 CreateOrUpdateThreadRequestMultiError, or nil if none found.
type CreateOrUpdateThreadRequestMultiError ¶
type CreateOrUpdateThreadRequestMultiError []error
CreateOrUpdateThreadRequestMultiError is an error wrapping multiple validation errors returned by CreateOrUpdateThreadRequest.ValidateAll() if the designated constraints aren't met.
func (CreateOrUpdateThreadRequestMultiError) AllErrors ¶
func (m CreateOrUpdateThreadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrUpdateThreadRequestMultiError) Error ¶
func (m CreateOrUpdateThreadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrUpdateThreadRequestValidationError ¶
type CreateOrUpdateThreadRequestValidationError struct {
// contains filtered or unexported fields
}
CreateOrUpdateThreadRequestValidationError is the validation error returned by CreateOrUpdateThreadRequest.Validate if the designated constraints aren't met.
func (CreateOrUpdateThreadRequestValidationError) Cause ¶
func (e CreateOrUpdateThreadRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateOrUpdateThreadRequestValidationError) Error ¶
func (e CreateOrUpdateThreadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrUpdateThreadRequestValidationError) ErrorName ¶
func (e CreateOrUpdateThreadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrUpdateThreadRequestValidationError) Field ¶
func (e CreateOrUpdateThreadRequestValidationError) Field() string
Field function returns field value.
func (CreateOrUpdateThreadRequestValidationError) Key ¶
func (e CreateOrUpdateThreadRequestValidationError) Key() bool
Key function returns key value.
func (CreateOrUpdateThreadRequestValidationError) Reason ¶
func (e CreateOrUpdateThreadRequestValidationError) Reason() string
Reason function returns reason value.
type CreateOrUpdateThreadResponse ¶
type CreateOrUpdateThreadResponse struct { Thread *messenger.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` // contains filtered or unexported fields }
func (*CreateOrUpdateThreadResponse) Descriptor
deprecated
func (*CreateOrUpdateThreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrUpdateThreadResponse.ProtoReflect.Descriptor instead.
func (*CreateOrUpdateThreadResponse) GetThread ¶
func (x *CreateOrUpdateThreadResponse) GetThread() *messenger.Thread
func (*CreateOrUpdateThreadResponse) ProtoMessage ¶
func (*CreateOrUpdateThreadResponse) ProtoMessage()
func (*CreateOrUpdateThreadResponse) ProtoReflect ¶
func (x *CreateOrUpdateThreadResponse) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateThreadResponse) Reset ¶
func (x *CreateOrUpdateThreadResponse) Reset()
func (*CreateOrUpdateThreadResponse) String ¶
func (x *CreateOrUpdateThreadResponse) String() string
func (*CreateOrUpdateThreadResponse) Validate ¶
func (m *CreateOrUpdateThreadResponse) Validate() error
Validate checks the field values on CreateOrUpdateThreadResponse 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 (*CreateOrUpdateThreadResponse) ValidateAll ¶
func (m *CreateOrUpdateThreadResponse) ValidateAll() error
ValidateAll checks the field values on CreateOrUpdateThreadResponse 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 CreateOrUpdateThreadResponseMultiError, or nil if none found.
type CreateOrUpdateThreadResponseMultiError ¶
type CreateOrUpdateThreadResponseMultiError []error
CreateOrUpdateThreadResponseMultiError is an error wrapping multiple validation errors returned by CreateOrUpdateThreadResponse.ValidateAll() if the designated constraints aren't met.
func (CreateOrUpdateThreadResponseMultiError) AllErrors ¶
func (m CreateOrUpdateThreadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateOrUpdateThreadResponseMultiError) Error ¶
func (m CreateOrUpdateThreadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateOrUpdateThreadResponseValidationError ¶
type CreateOrUpdateThreadResponseValidationError struct {
// contains filtered or unexported fields
}
CreateOrUpdateThreadResponseValidationError is the validation error returned by CreateOrUpdateThreadResponse.Validate if the designated constraints aren't met.
func (CreateOrUpdateThreadResponseValidationError) Cause ¶
func (e CreateOrUpdateThreadResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateOrUpdateThreadResponseValidationError) Error ¶
func (e CreateOrUpdateThreadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrUpdateThreadResponseValidationError) ErrorName ¶
func (e CreateOrUpdateThreadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrUpdateThreadResponseValidationError) Field ¶
func (e CreateOrUpdateThreadResponseValidationError) Field() string
Field function returns field value.
func (CreateOrUpdateThreadResponseValidationError) Key ¶
func (e CreateOrUpdateThreadResponseValidationError) Key() bool
Key function returns key value.
func (CreateOrUpdateThreadResponseValidationError) Reason ¶
func (e CreateOrUpdateThreadResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteMessageRequest ¶
type DeleteMessageRequest struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` MessageId uint64 `protobuf:"varint,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMessageRequest) Descriptor
deprecated
func (*DeleteMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMessageRequest.ProtoReflect.Descriptor instead.
func (*DeleteMessageRequest) GetMessageId ¶
func (x *DeleteMessageRequest) GetMessageId() uint64
func (*DeleteMessageRequest) GetThreadId ¶
func (x *DeleteMessageRequest) GetThreadId() uint64
func (*DeleteMessageRequest) ProtoMessage ¶
func (*DeleteMessageRequest) ProtoMessage()
func (*DeleteMessageRequest) ProtoReflect ¶
func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message
func (*DeleteMessageRequest) Reset ¶
func (x *DeleteMessageRequest) Reset()
func (*DeleteMessageRequest) String ¶
func (x *DeleteMessageRequest) String() string
func (*DeleteMessageRequest) Validate ¶
func (m *DeleteMessageRequest) Validate() error
Validate checks the field values on DeleteMessageRequest 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 (*DeleteMessageRequest) ValidateAll ¶
func (m *DeleteMessageRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMessageRequest 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 DeleteMessageRequestMultiError, or nil if none found.
type DeleteMessageRequestMultiError ¶
type DeleteMessageRequestMultiError []error
DeleteMessageRequestMultiError is an error wrapping multiple validation errors returned by DeleteMessageRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMessageRequestMultiError) AllErrors ¶
func (m DeleteMessageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMessageRequestMultiError) Error ¶
func (m DeleteMessageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMessageRequestValidationError ¶
type DeleteMessageRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMessageRequestValidationError is the validation error returned by DeleteMessageRequest.Validate if the designated constraints aren't met.
func (DeleteMessageRequestValidationError) Cause ¶
func (e DeleteMessageRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMessageRequestValidationError) Error ¶
func (e DeleteMessageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMessageRequestValidationError) ErrorName ¶
func (e DeleteMessageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMessageRequestValidationError) Field ¶
func (e DeleteMessageRequestValidationError) Field() string
Field function returns field value.
func (DeleteMessageRequestValidationError) Key ¶
func (e DeleteMessageRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMessageRequestValidationError) Reason ¶
func (e DeleteMessageRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMessageResponse ¶
type DeleteMessageResponse struct {
// contains filtered or unexported fields
}
func (*DeleteMessageResponse) Descriptor
deprecated
func (*DeleteMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMessageResponse.ProtoReflect.Descriptor instead.
func (*DeleteMessageResponse) ProtoMessage ¶
func (*DeleteMessageResponse) ProtoMessage()
func (*DeleteMessageResponse) ProtoReflect ¶
func (x *DeleteMessageResponse) ProtoReflect() protoreflect.Message
func (*DeleteMessageResponse) Reset ¶
func (x *DeleteMessageResponse) Reset()
func (*DeleteMessageResponse) String ¶
func (x *DeleteMessageResponse) String() string
func (*DeleteMessageResponse) Validate ¶
func (m *DeleteMessageResponse) Validate() error
Validate checks the field values on DeleteMessageResponse 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 (*DeleteMessageResponse) ValidateAll ¶
func (m *DeleteMessageResponse) ValidateAll() error
ValidateAll checks the field values on DeleteMessageResponse 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 DeleteMessageResponseMultiError, or nil if none found.
type DeleteMessageResponseMultiError ¶
type DeleteMessageResponseMultiError []error
DeleteMessageResponseMultiError is an error wrapping multiple validation errors returned by DeleteMessageResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteMessageResponseMultiError) AllErrors ¶
func (m DeleteMessageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMessageResponseMultiError) Error ¶
func (m DeleteMessageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMessageResponseValidationError ¶
type DeleteMessageResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteMessageResponseValidationError is the validation error returned by DeleteMessageResponse.Validate if the designated constraints aren't met.
func (DeleteMessageResponseValidationError) Cause ¶
func (e DeleteMessageResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteMessageResponseValidationError) Error ¶
func (e DeleteMessageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMessageResponseValidationError) ErrorName ¶
func (e DeleteMessageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMessageResponseValidationError) Field ¶
func (e DeleteMessageResponseValidationError) Field() string
Field function returns field value.
func (DeleteMessageResponseValidationError) Key ¶
func (e DeleteMessageResponseValidationError) Key() bool
Key function returns key value.
func (DeleteMessageResponseValidationError) Reason ¶
func (e DeleteMessageResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteThreadRequest ¶
type DeleteThreadRequest struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteThreadRequest) Descriptor
deprecated
func (*DeleteThreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteThreadRequest.ProtoReflect.Descriptor instead.
func (*DeleteThreadRequest) GetThreadId ¶
func (x *DeleteThreadRequest) GetThreadId() uint64
func (*DeleteThreadRequest) ProtoMessage ¶
func (*DeleteThreadRequest) ProtoMessage()
func (*DeleteThreadRequest) ProtoReflect ¶
func (x *DeleteThreadRequest) ProtoReflect() protoreflect.Message
func (*DeleteThreadRequest) Reset ¶
func (x *DeleteThreadRequest) Reset()
func (*DeleteThreadRequest) String ¶
func (x *DeleteThreadRequest) String() string
func (*DeleteThreadRequest) Validate ¶
func (m *DeleteThreadRequest) Validate() error
Validate checks the field values on DeleteThreadRequest 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 (*DeleteThreadRequest) ValidateAll ¶
func (m *DeleteThreadRequest) ValidateAll() error
ValidateAll checks the field values on DeleteThreadRequest 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 DeleteThreadRequestMultiError, or nil if none found.
type DeleteThreadRequestMultiError ¶
type DeleteThreadRequestMultiError []error
DeleteThreadRequestMultiError is an error wrapping multiple validation errors returned by DeleteThreadRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteThreadRequestMultiError) AllErrors ¶
func (m DeleteThreadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteThreadRequestMultiError) Error ¶
func (m DeleteThreadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteThreadRequestValidationError ¶
type DeleteThreadRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteThreadRequestValidationError is the validation error returned by DeleteThreadRequest.Validate if the designated constraints aren't met.
func (DeleteThreadRequestValidationError) Cause ¶
func (e DeleteThreadRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteThreadRequestValidationError) Error ¶
func (e DeleteThreadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteThreadRequestValidationError) ErrorName ¶
func (e DeleteThreadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteThreadRequestValidationError) Field ¶
func (e DeleteThreadRequestValidationError) Field() string
Field function returns field value.
func (DeleteThreadRequestValidationError) Key ¶
func (e DeleteThreadRequestValidationError) Key() bool
Key function returns key value.
func (DeleteThreadRequestValidationError) Reason ¶
func (e DeleteThreadRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteThreadResponse ¶
type DeleteThreadResponse struct {
// contains filtered or unexported fields
}
func (*DeleteThreadResponse) Descriptor
deprecated
func (*DeleteThreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteThreadResponse.ProtoReflect.Descriptor instead.
func (*DeleteThreadResponse) ProtoMessage ¶
func (*DeleteThreadResponse) ProtoMessage()
func (*DeleteThreadResponse) ProtoReflect ¶
func (x *DeleteThreadResponse) ProtoReflect() protoreflect.Message
func (*DeleteThreadResponse) Reset ¶
func (x *DeleteThreadResponse) Reset()
func (*DeleteThreadResponse) String ¶
func (x *DeleteThreadResponse) String() string
func (*DeleteThreadResponse) Validate ¶
func (m *DeleteThreadResponse) Validate() error
Validate checks the field values on DeleteThreadResponse 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 (*DeleteThreadResponse) ValidateAll ¶
func (m *DeleteThreadResponse) ValidateAll() error
ValidateAll checks the field values on DeleteThreadResponse 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 DeleteThreadResponseMultiError, or nil if none found.
type DeleteThreadResponseMultiError ¶
type DeleteThreadResponseMultiError []error
DeleteThreadResponseMultiError is an error wrapping multiple validation errors returned by DeleteThreadResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteThreadResponseMultiError) AllErrors ¶
func (m DeleteThreadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteThreadResponseMultiError) Error ¶
func (m DeleteThreadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteThreadResponseValidationError ¶
type DeleteThreadResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteThreadResponseValidationError is the validation error returned by DeleteThreadResponse.Validate if the designated constraints aren't met.
func (DeleteThreadResponseValidationError) Cause ¶
func (e DeleteThreadResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteThreadResponseValidationError) Error ¶
func (e DeleteThreadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteThreadResponseValidationError) ErrorName ¶
func (e DeleteThreadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteThreadResponseValidationError) Field ¶
func (e DeleteThreadResponseValidationError) Field() string
Field function returns field value.
func (DeleteThreadResponseValidationError) Key ¶
func (e DeleteThreadResponseValidationError) Key() bool
Key function returns key value.
func (DeleteThreadResponseValidationError) Reason ¶
func (e DeleteThreadResponseValidationError) Reason() string
Reason function returns reason value.
type GetThreadMessagesRequest ¶
type GetThreadMessagesRequest struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` After *timestamp.Timestamp `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
func (*GetThreadMessagesRequest) Descriptor
deprecated
func (*GetThreadMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetThreadMessagesRequest.ProtoReflect.Descriptor instead.
func (*GetThreadMessagesRequest) GetAfter ¶
func (x *GetThreadMessagesRequest) GetAfter() *timestamp.Timestamp
func (*GetThreadMessagesRequest) GetThreadId ¶
func (x *GetThreadMessagesRequest) GetThreadId() uint64
func (*GetThreadMessagesRequest) ProtoMessage ¶
func (*GetThreadMessagesRequest) ProtoMessage()
func (*GetThreadMessagesRequest) ProtoReflect ¶
func (x *GetThreadMessagesRequest) ProtoReflect() protoreflect.Message
func (*GetThreadMessagesRequest) Reset ¶
func (x *GetThreadMessagesRequest) Reset()
func (*GetThreadMessagesRequest) String ¶
func (x *GetThreadMessagesRequest) String() string
func (*GetThreadMessagesRequest) Validate ¶
func (m *GetThreadMessagesRequest) Validate() error
Validate checks the field values on GetThreadMessagesRequest 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 (*GetThreadMessagesRequest) ValidateAll ¶
func (m *GetThreadMessagesRequest) ValidateAll() error
ValidateAll checks the field values on GetThreadMessagesRequest 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 GetThreadMessagesRequestMultiError, or nil if none found.
type GetThreadMessagesRequestMultiError ¶
type GetThreadMessagesRequestMultiError []error
GetThreadMessagesRequestMultiError is an error wrapping multiple validation errors returned by GetThreadMessagesRequest.ValidateAll() if the designated constraints aren't met.
func (GetThreadMessagesRequestMultiError) AllErrors ¶
func (m GetThreadMessagesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetThreadMessagesRequestMultiError) Error ¶
func (m GetThreadMessagesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetThreadMessagesRequestValidationError ¶
type GetThreadMessagesRequestValidationError struct {
// contains filtered or unexported fields
}
GetThreadMessagesRequestValidationError is the validation error returned by GetThreadMessagesRequest.Validate if the designated constraints aren't met.
func (GetThreadMessagesRequestValidationError) Cause ¶
func (e GetThreadMessagesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetThreadMessagesRequestValidationError) Error ¶
func (e GetThreadMessagesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetThreadMessagesRequestValidationError) ErrorName ¶
func (e GetThreadMessagesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetThreadMessagesRequestValidationError) Field ¶
func (e GetThreadMessagesRequestValidationError) Field() string
Field function returns field value.
func (GetThreadMessagesRequestValidationError) Key ¶
func (e GetThreadMessagesRequestValidationError) Key() bool
Key function returns key value.
func (GetThreadMessagesRequestValidationError) Reason ¶
func (e GetThreadMessagesRequestValidationError) Reason() string
Reason function returns reason value.
type GetThreadMessagesResponse ¶
type GetThreadMessagesResponse struct { Messages []*messenger.Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*GetThreadMessagesResponse) Descriptor
deprecated
func (*GetThreadMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetThreadMessagesResponse.ProtoReflect.Descriptor instead.
func (*GetThreadMessagesResponse) GetMessages ¶
func (x *GetThreadMessagesResponse) GetMessages() []*messenger.Message
func (*GetThreadMessagesResponse) ProtoMessage ¶
func (*GetThreadMessagesResponse) ProtoMessage()
func (*GetThreadMessagesResponse) ProtoReflect ¶
func (x *GetThreadMessagesResponse) ProtoReflect() protoreflect.Message
func (*GetThreadMessagesResponse) Reset ¶
func (x *GetThreadMessagesResponse) Reset()
func (*GetThreadMessagesResponse) String ¶
func (x *GetThreadMessagesResponse) String() string
func (*GetThreadMessagesResponse) Validate ¶
func (m *GetThreadMessagesResponse) Validate() error
Validate checks the field values on GetThreadMessagesResponse 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 (*GetThreadMessagesResponse) ValidateAll ¶
func (m *GetThreadMessagesResponse) ValidateAll() error
ValidateAll checks the field values on GetThreadMessagesResponse 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 GetThreadMessagesResponseMultiError, or nil if none found.
type GetThreadMessagesResponseMultiError ¶
type GetThreadMessagesResponseMultiError []error
GetThreadMessagesResponseMultiError is an error wrapping multiple validation errors returned by GetThreadMessagesResponse.ValidateAll() if the designated constraints aren't met.
func (GetThreadMessagesResponseMultiError) AllErrors ¶
func (m GetThreadMessagesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetThreadMessagesResponseMultiError) Error ¶
func (m GetThreadMessagesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetThreadMessagesResponseValidationError ¶
type GetThreadMessagesResponseValidationError struct {
// contains filtered or unexported fields
}
GetThreadMessagesResponseValidationError is the validation error returned by GetThreadMessagesResponse.Validate if the designated constraints aren't met.
func (GetThreadMessagesResponseValidationError) Cause ¶
func (e GetThreadMessagesResponseValidationError) Cause() error
Cause function returns cause value.
func (GetThreadMessagesResponseValidationError) Error ¶
func (e GetThreadMessagesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetThreadMessagesResponseValidationError) ErrorName ¶
func (e GetThreadMessagesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetThreadMessagesResponseValidationError) Field ¶
func (e GetThreadMessagesResponseValidationError) Field() string
Field function returns field value.
func (GetThreadMessagesResponseValidationError) Key ¶
func (e GetThreadMessagesResponseValidationError) Key() bool
Key function returns key value.
func (GetThreadMessagesResponseValidationError) Reason ¶
func (e GetThreadMessagesResponseValidationError) Reason() string
Reason function returns reason value.
type GetThreadRequest ¶
type GetThreadRequest struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` // contains filtered or unexported fields }
func (*GetThreadRequest) Descriptor
deprecated
func (*GetThreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetThreadRequest.ProtoReflect.Descriptor instead.
func (*GetThreadRequest) GetThreadId ¶
func (x *GetThreadRequest) GetThreadId() uint64
func (*GetThreadRequest) ProtoMessage ¶
func (*GetThreadRequest) ProtoMessage()
func (*GetThreadRequest) ProtoReflect ¶
func (x *GetThreadRequest) ProtoReflect() protoreflect.Message
func (*GetThreadRequest) Reset ¶
func (x *GetThreadRequest) Reset()
func (*GetThreadRequest) String ¶
func (x *GetThreadRequest) String() string
func (*GetThreadRequest) Validate ¶
func (m *GetThreadRequest) Validate() error
Validate checks the field values on GetThreadRequest 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 (*GetThreadRequest) ValidateAll ¶
func (m *GetThreadRequest) ValidateAll() error
ValidateAll checks the field values on GetThreadRequest 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 GetThreadRequestMultiError, or nil if none found.
type GetThreadRequestMultiError ¶
type GetThreadRequestMultiError []error
GetThreadRequestMultiError is an error wrapping multiple validation errors returned by GetThreadRequest.ValidateAll() if the designated constraints aren't met.
func (GetThreadRequestMultiError) AllErrors ¶
func (m GetThreadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetThreadRequestMultiError) Error ¶
func (m GetThreadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetThreadRequestValidationError ¶
type GetThreadRequestValidationError struct {
// contains filtered or unexported fields
}
GetThreadRequestValidationError is the validation error returned by GetThreadRequest.Validate if the designated constraints aren't met.
func (GetThreadRequestValidationError) Cause ¶
func (e GetThreadRequestValidationError) Cause() error
Cause function returns cause value.
func (GetThreadRequestValidationError) Error ¶
func (e GetThreadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetThreadRequestValidationError) ErrorName ¶
func (e GetThreadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetThreadRequestValidationError) Field ¶
func (e GetThreadRequestValidationError) Field() string
Field function returns field value.
func (GetThreadRequestValidationError) Key ¶
func (e GetThreadRequestValidationError) Key() bool
Key function returns key value.
func (GetThreadRequestValidationError) Reason ¶
func (e GetThreadRequestValidationError) Reason() string
Reason function returns reason value.
type GetThreadResponse ¶
type GetThreadResponse struct { Thread *messenger.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` // contains filtered or unexported fields }
func (*GetThreadResponse) Descriptor
deprecated
func (*GetThreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetThreadResponse.ProtoReflect.Descriptor instead.
func (*GetThreadResponse) GetThread ¶
func (x *GetThreadResponse) GetThread() *messenger.Thread
func (*GetThreadResponse) ProtoMessage ¶
func (*GetThreadResponse) ProtoMessage()
func (*GetThreadResponse) ProtoReflect ¶
func (x *GetThreadResponse) ProtoReflect() protoreflect.Message
func (*GetThreadResponse) Reset ¶
func (x *GetThreadResponse) Reset()
func (*GetThreadResponse) String ¶
func (x *GetThreadResponse) String() string
func (*GetThreadResponse) Validate ¶
func (m *GetThreadResponse) Validate() error
Validate checks the field values on GetThreadResponse 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 (*GetThreadResponse) ValidateAll ¶
func (m *GetThreadResponse) ValidateAll() error
ValidateAll checks the field values on GetThreadResponse 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 GetThreadResponseMultiError, or nil if none found.
type GetThreadResponseMultiError ¶
type GetThreadResponseMultiError []error
GetThreadResponseMultiError is an error wrapping multiple validation errors returned by GetThreadResponse.ValidateAll() if the designated constraints aren't met.
func (GetThreadResponseMultiError) AllErrors ¶
func (m GetThreadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetThreadResponseMultiError) Error ¶
func (m GetThreadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetThreadResponseValidationError ¶
type GetThreadResponseValidationError struct {
// contains filtered or unexported fields
}
GetThreadResponseValidationError is the validation error returned by GetThreadResponse.Validate if the designated constraints aren't met.
func (GetThreadResponseValidationError) Cause ¶
func (e GetThreadResponseValidationError) Cause() error
Cause function returns cause value.
func (GetThreadResponseValidationError) Error ¶
func (e GetThreadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetThreadResponseValidationError) ErrorName ¶
func (e GetThreadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetThreadResponseValidationError) Field ¶
func (e GetThreadResponseValidationError) Field() string
Field function returns field value.
func (GetThreadResponseValidationError) Key ¶
func (e GetThreadResponseValidationError) Key() bool
Key function returns key value.
func (GetThreadResponseValidationError) Reason ¶
func (e GetThreadResponseValidationError) Reason() string
Reason function returns reason value.
type LeaveThreadRequest ¶
type LeaveThreadRequest struct { ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` // contains filtered or unexported fields }
func (*LeaveThreadRequest) Descriptor
deprecated
func (*LeaveThreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveThreadRequest.ProtoReflect.Descriptor instead.
func (*LeaveThreadRequest) GetThreadId ¶
func (x *LeaveThreadRequest) GetThreadId() uint64
func (*LeaveThreadRequest) ProtoMessage ¶
func (*LeaveThreadRequest) ProtoMessage()
func (*LeaveThreadRequest) ProtoReflect ¶
func (x *LeaveThreadRequest) ProtoReflect() protoreflect.Message
func (*LeaveThreadRequest) Reset ¶
func (x *LeaveThreadRequest) Reset()
func (*LeaveThreadRequest) String ¶
func (x *LeaveThreadRequest) String() string
func (*LeaveThreadRequest) Validate ¶
func (m *LeaveThreadRequest) Validate() error
Validate checks the field values on LeaveThreadRequest 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 (*LeaveThreadRequest) ValidateAll ¶
func (m *LeaveThreadRequest) ValidateAll() error
ValidateAll checks the field values on LeaveThreadRequest 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 LeaveThreadRequestMultiError, or nil if none found.
type LeaveThreadRequestMultiError ¶
type LeaveThreadRequestMultiError []error
LeaveThreadRequestMultiError is an error wrapping multiple validation errors returned by LeaveThreadRequest.ValidateAll() if the designated constraints aren't met.
func (LeaveThreadRequestMultiError) AllErrors ¶
func (m LeaveThreadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeaveThreadRequestMultiError) Error ¶
func (m LeaveThreadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeaveThreadRequestValidationError ¶
type LeaveThreadRequestValidationError struct {
// contains filtered or unexported fields
}
LeaveThreadRequestValidationError is the validation error returned by LeaveThreadRequest.Validate if the designated constraints aren't met.
func (LeaveThreadRequestValidationError) Cause ¶
func (e LeaveThreadRequestValidationError) Cause() error
Cause function returns cause value.
func (LeaveThreadRequestValidationError) Error ¶
func (e LeaveThreadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LeaveThreadRequestValidationError) ErrorName ¶
func (e LeaveThreadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LeaveThreadRequestValidationError) Field ¶
func (e LeaveThreadRequestValidationError) Field() string
Field function returns field value.
func (LeaveThreadRequestValidationError) Key ¶
func (e LeaveThreadRequestValidationError) Key() bool
Key function returns key value.
func (LeaveThreadRequestValidationError) Reason ¶
func (e LeaveThreadRequestValidationError) Reason() string
Reason function returns reason value.
type LeaveThreadResponse ¶
type LeaveThreadResponse struct {
// contains filtered or unexported fields
}
func (*LeaveThreadResponse) Descriptor
deprecated
func (*LeaveThreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaveThreadResponse.ProtoReflect.Descriptor instead.
func (*LeaveThreadResponse) ProtoMessage ¶
func (*LeaveThreadResponse) ProtoMessage()
func (*LeaveThreadResponse) ProtoReflect ¶
func (x *LeaveThreadResponse) ProtoReflect() protoreflect.Message
func (*LeaveThreadResponse) Reset ¶
func (x *LeaveThreadResponse) Reset()
func (*LeaveThreadResponse) String ¶
func (x *LeaveThreadResponse) String() string
func (*LeaveThreadResponse) Validate ¶
func (m *LeaveThreadResponse) Validate() error
Validate checks the field values on LeaveThreadResponse 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 (*LeaveThreadResponse) ValidateAll ¶
func (m *LeaveThreadResponse) ValidateAll() error
ValidateAll checks the field values on LeaveThreadResponse 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 LeaveThreadResponseMultiError, or nil if none found.
type LeaveThreadResponseMultiError ¶
type LeaveThreadResponseMultiError []error
LeaveThreadResponseMultiError is an error wrapping multiple validation errors returned by LeaveThreadResponse.ValidateAll() if the designated constraints aren't met.
func (LeaveThreadResponseMultiError) AllErrors ¶
func (m LeaveThreadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeaveThreadResponseMultiError) Error ¶
func (m LeaveThreadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeaveThreadResponseValidationError ¶
type LeaveThreadResponseValidationError struct {
// contains filtered or unexported fields
}
LeaveThreadResponseValidationError is the validation error returned by LeaveThreadResponse.Validate if the designated constraints aren't met.
func (LeaveThreadResponseValidationError) Cause ¶
func (e LeaveThreadResponseValidationError) Cause() error
Cause function returns cause value.
func (LeaveThreadResponseValidationError) Error ¶
func (e LeaveThreadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LeaveThreadResponseValidationError) ErrorName ¶
func (e LeaveThreadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LeaveThreadResponseValidationError) Field ¶
func (e LeaveThreadResponseValidationError) Field() string
Field function returns field value.
func (LeaveThreadResponseValidationError) Key ¶
func (e LeaveThreadResponseValidationError) Key() bool
Key function returns key value.
func (LeaveThreadResponseValidationError) Reason ¶
func (e LeaveThreadResponseValidationError) Reason() string
Reason function returns reason value.
type ListThreadsRequest ¶
type ListThreadsRequest struct { Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` After *timestamp.Timestamp `protobuf:"bytes,2,opt,name=after,proto3,oneof" json:"after,omitempty"` // contains filtered or unexported fields }
func (*ListThreadsRequest) Descriptor
deprecated
func (*ListThreadsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListThreadsRequest.ProtoReflect.Descriptor instead.
func (*ListThreadsRequest) GetAfter ¶
func (x *ListThreadsRequest) GetAfter() *timestamp.Timestamp
func (*ListThreadsRequest) GetPagination ¶
func (x *ListThreadsRequest) GetPagination() *database.PaginationRequest
func (*ListThreadsRequest) ProtoMessage ¶
func (*ListThreadsRequest) ProtoMessage()
func (*ListThreadsRequest) ProtoReflect ¶
func (x *ListThreadsRequest) ProtoReflect() protoreflect.Message
func (*ListThreadsRequest) Reset ¶
func (x *ListThreadsRequest) Reset()
func (*ListThreadsRequest) String ¶
func (x *ListThreadsRequest) String() string
func (*ListThreadsRequest) Validate ¶
func (m *ListThreadsRequest) Validate() error
Validate checks the field values on ListThreadsRequest 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 (*ListThreadsRequest) ValidateAll ¶
func (m *ListThreadsRequest) ValidateAll() error
ValidateAll checks the field values on ListThreadsRequest 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 ListThreadsRequestMultiError, or nil if none found.
type ListThreadsRequestMultiError ¶
type ListThreadsRequestMultiError []error
ListThreadsRequestMultiError is an error wrapping multiple validation errors returned by ListThreadsRequest.ValidateAll() if the designated constraints aren't met.
func (ListThreadsRequestMultiError) AllErrors ¶
func (m ListThreadsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListThreadsRequestMultiError) Error ¶
func (m ListThreadsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListThreadsRequestValidationError ¶
type ListThreadsRequestValidationError struct {
// contains filtered or unexported fields
}
ListThreadsRequestValidationError is the validation error returned by ListThreadsRequest.Validate if the designated constraints aren't met.
func (ListThreadsRequestValidationError) Cause ¶
func (e ListThreadsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListThreadsRequestValidationError) Error ¶
func (e ListThreadsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListThreadsRequestValidationError) ErrorName ¶
func (e ListThreadsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListThreadsRequestValidationError) Field ¶
func (e ListThreadsRequestValidationError) Field() string
Field function returns field value.
func (ListThreadsRequestValidationError) Key ¶
func (e ListThreadsRequestValidationError) Key() bool
Key function returns key value.
func (ListThreadsRequestValidationError) Reason ¶
func (e ListThreadsRequestValidationError) Reason() string
Reason function returns reason value.
type ListThreadsResponse ¶
type ListThreadsResponse struct { Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Threads []*messenger.Thread `protobuf:"bytes,2,rep,name=threads,proto3" json:"threads,omitempty"` // contains filtered or unexported fields }
func (*ListThreadsResponse) Descriptor
deprecated
func (*ListThreadsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListThreadsResponse.ProtoReflect.Descriptor instead.
func (*ListThreadsResponse) GetPagination ¶
func (x *ListThreadsResponse) GetPagination() *database.PaginationResponse
func (*ListThreadsResponse) GetThreads ¶
func (x *ListThreadsResponse) GetThreads() []*messenger.Thread
func (*ListThreadsResponse) ProtoMessage ¶
func (*ListThreadsResponse) ProtoMessage()
func (*ListThreadsResponse) ProtoReflect ¶
func (x *ListThreadsResponse) ProtoReflect() protoreflect.Message
func (*ListThreadsResponse) Reset ¶
func (x *ListThreadsResponse) Reset()
func (*ListThreadsResponse) String ¶
func (x *ListThreadsResponse) String() string
func (*ListThreadsResponse) Validate ¶
func (m *ListThreadsResponse) Validate() error
Validate checks the field values on ListThreadsResponse 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 (*ListThreadsResponse) ValidateAll ¶
func (m *ListThreadsResponse) ValidateAll() error
ValidateAll checks the field values on ListThreadsResponse 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 ListThreadsResponseMultiError, or nil if none found.
type ListThreadsResponseMultiError ¶
type ListThreadsResponseMultiError []error
ListThreadsResponseMultiError is an error wrapping multiple validation errors returned by ListThreadsResponse.ValidateAll() if the designated constraints aren't met.
func (ListThreadsResponseMultiError) AllErrors ¶
func (m ListThreadsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListThreadsResponseMultiError) Error ¶
func (m ListThreadsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListThreadsResponseValidationError ¶
type ListThreadsResponseValidationError struct {
// contains filtered or unexported fields
}
ListThreadsResponseValidationError is the validation error returned by ListThreadsResponse.Validate if the designated constraints aren't met.
func (ListThreadsResponseValidationError) Cause ¶
func (e ListThreadsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListThreadsResponseValidationError) Error ¶
func (e ListThreadsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListThreadsResponseValidationError) ErrorName ¶
func (e ListThreadsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListThreadsResponseValidationError) Field ¶
func (e ListThreadsResponseValidationError) Field() string
Field function returns field value.
func (ListThreadsResponseValidationError) Key ¶
func (e ListThreadsResponseValidationError) Key() bool
Key function returns key value.
func (ListThreadsResponseValidationError) Reason ¶
func (e ListThreadsResponseValidationError) Reason() string
Reason function returns reason value.
type MessengerServiceClient ¶
type MessengerServiceClient interface { // @perm ListThreads(ctx context.Context, in *ListThreadsRequest, opts ...grpc.CallOption) (*ListThreadsResponse, error) // @perm: Name=ListThreads GetThread(ctx context.Context, in *GetThreadRequest, opts ...grpc.CallOption) (*GetThreadResponse, error) // @perm CreateOrUpdateThread(ctx context.Context, in *CreateOrUpdateThreadRequest, opts ...grpc.CallOption) (*CreateOrUpdateThreadResponse, error) // @perm DeleteThread(ctx context.Context, in *DeleteThreadRequest, opts ...grpc.CallOption) (*DeleteThreadResponse, error) // @perm: Name=ListThreads SetThreadUserState(ctx context.Context, in *SetThreadUserStateRequest, opts ...grpc.CallOption) (*SetThreadUserStateResponse, error) // @perm: Name=ListThreads LeaveThread(ctx context.Context, in *LeaveThreadRequest, opts ...grpc.CallOption) (*LeaveThreadResponse, error) // @perm: Name=ListThreads GetThreadMessages(ctx context.Context, in *GetThreadMessagesRequest, opts ...grpc.CallOption) (*GetThreadMessagesResponse, error) // @perm PostMessage(ctx context.Context, in *PostMessageRequest, opts ...grpc.CallOption) (*PostMessageResponse, error) // @perm: Name=SuperUser DeleteMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageResponse, error) }
MessengerServiceClient is the client API for MessengerService 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 NewMessengerServiceClient ¶
func NewMessengerServiceClient(cc grpc.ClientConnInterface) MessengerServiceClient
func NewTestMessengerServiceClient ¶
func NewTestMessengerServiceClient(srv MessengerServiceServer) (MessengerServiceClient, context.Context, context.CancelFunc)
type MessengerServiceServer ¶
type MessengerServiceServer interface { // @perm ListThreads(context.Context, *ListThreadsRequest) (*ListThreadsResponse, error) // @perm: Name=ListThreads GetThread(context.Context, *GetThreadRequest) (*GetThreadResponse, error) // @perm CreateOrUpdateThread(context.Context, *CreateOrUpdateThreadRequest) (*CreateOrUpdateThreadResponse, error) // @perm DeleteThread(context.Context, *DeleteThreadRequest) (*DeleteThreadResponse, error) // @perm: Name=ListThreads SetThreadUserState(context.Context, *SetThreadUserStateRequest) (*SetThreadUserStateResponse, error) // @perm: Name=ListThreads LeaveThread(context.Context, *LeaveThreadRequest) (*LeaveThreadResponse, error) // @perm: Name=ListThreads GetThreadMessages(context.Context, *GetThreadMessagesRequest) (*GetThreadMessagesResponse, error) // @perm PostMessage(context.Context, *PostMessageRequest) (*PostMessageResponse, error) // @perm: Name=SuperUser DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error) // contains filtered or unexported methods }
MessengerServiceServer is the server API for MessengerService service. All implementations must embed UnimplementedMessengerServiceServer for forward compatibility
type Params ¶
type Params struct { fx.In DB *sql.DB P perms.Permissions Enricher *mstlystcdata.UserAwareEnricher Aud audit.IAuditer JS *events.JSWrapper }
type PostMessageRequest ¶
type PostMessageRequest struct { Message *messenger.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PostMessageRequest) Descriptor
deprecated
func (*PostMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostMessageRequest.ProtoReflect.Descriptor instead.
func (*PostMessageRequest) GetMessage ¶
func (x *PostMessageRequest) GetMessage() *messenger.Message
func (*PostMessageRequest) ProtoMessage ¶
func (*PostMessageRequest) ProtoMessage()
func (*PostMessageRequest) ProtoReflect ¶
func (x *PostMessageRequest) ProtoReflect() protoreflect.Message
func (*PostMessageRequest) Reset ¶
func (x *PostMessageRequest) Reset()
func (*PostMessageRequest) String ¶
func (x *PostMessageRequest) String() string
func (*PostMessageRequest) Validate ¶
func (m *PostMessageRequest) Validate() error
Validate checks the field values on PostMessageRequest 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 (*PostMessageRequest) ValidateAll ¶
func (m *PostMessageRequest) ValidateAll() error
ValidateAll checks the field values on PostMessageRequest 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 PostMessageRequestMultiError, or nil if none found.
type PostMessageRequestMultiError ¶
type PostMessageRequestMultiError []error
PostMessageRequestMultiError is an error wrapping multiple validation errors returned by PostMessageRequest.ValidateAll() if the designated constraints aren't met.
func (PostMessageRequestMultiError) AllErrors ¶
func (m PostMessageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostMessageRequestMultiError) Error ¶
func (m PostMessageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostMessageRequestValidationError ¶
type PostMessageRequestValidationError struct {
// contains filtered or unexported fields
}
PostMessageRequestValidationError is the validation error returned by PostMessageRequest.Validate if the designated constraints aren't met.
func (PostMessageRequestValidationError) Cause ¶
func (e PostMessageRequestValidationError) Cause() error
Cause function returns cause value.
func (PostMessageRequestValidationError) Error ¶
func (e PostMessageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PostMessageRequestValidationError) ErrorName ¶
func (e PostMessageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PostMessageRequestValidationError) Field ¶
func (e PostMessageRequestValidationError) Field() string
Field function returns field value.
func (PostMessageRequestValidationError) Key ¶
func (e PostMessageRequestValidationError) Key() bool
Key function returns key value.
func (PostMessageRequestValidationError) Reason ¶
func (e PostMessageRequestValidationError) Reason() string
Reason function returns reason value.
type PostMessageResponse ¶
type PostMessageResponse struct { Message *messenger.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PostMessageResponse) Descriptor
deprecated
func (*PostMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostMessageResponse.ProtoReflect.Descriptor instead.
func (*PostMessageResponse) GetMessage ¶
func (x *PostMessageResponse) GetMessage() *messenger.Message
func (*PostMessageResponse) ProtoMessage ¶
func (*PostMessageResponse) ProtoMessage()
func (*PostMessageResponse) ProtoReflect ¶
func (x *PostMessageResponse) ProtoReflect() protoreflect.Message
func (*PostMessageResponse) Reset ¶
func (x *PostMessageResponse) Reset()
func (*PostMessageResponse) String ¶
func (x *PostMessageResponse) String() string
func (*PostMessageResponse) Validate ¶
func (m *PostMessageResponse) Validate() error
Validate checks the field values on PostMessageResponse 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 (*PostMessageResponse) ValidateAll ¶
func (m *PostMessageResponse) ValidateAll() error
ValidateAll checks the field values on PostMessageResponse 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 PostMessageResponseMultiError, or nil if none found.
type PostMessageResponseMultiError ¶
type PostMessageResponseMultiError []error
PostMessageResponseMultiError is an error wrapping multiple validation errors returned by PostMessageResponse.ValidateAll() if the designated constraints aren't met.
func (PostMessageResponseMultiError) AllErrors ¶
func (m PostMessageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostMessageResponseMultiError) Error ¶
func (m PostMessageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostMessageResponseValidationError ¶
type PostMessageResponseValidationError struct {
// contains filtered or unexported fields
}
PostMessageResponseValidationError is the validation error returned by PostMessageResponse.Validate if the designated constraints aren't met.
func (PostMessageResponseValidationError) Cause ¶
func (e PostMessageResponseValidationError) Cause() error
Cause function returns cause value.
func (PostMessageResponseValidationError) Error ¶
func (e PostMessageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PostMessageResponseValidationError) ErrorName ¶
func (e PostMessageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PostMessageResponseValidationError) Field ¶
func (e PostMessageResponseValidationError) Field() string
Field function returns field value.
func (PostMessageResponseValidationError) Key ¶
func (e PostMessageResponseValidationError) Key() bool
Key function returns key value.
func (PostMessageResponseValidationError) Reason ¶
func (e PostMessageResponseValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct { MessengerServiceServer // contains filtered or unexported fields }
func (*Server) CreateOrUpdateThread ¶
func (s *Server) CreateOrUpdateThread(ctx context.Context, req *CreateOrUpdateThreadRequest) (*CreateOrUpdateThreadResponse, error)
func (*Server) DeleteMessage ¶
func (s *Server) DeleteMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageResponse, error)
func (*Server) DeleteThread ¶
func (s *Server) DeleteThread(ctx context.Context, req *DeleteThreadRequest) (*DeleteThreadResponse, error)
func (*Server) GetPermsRemap ¶
func (*Server) GetThread ¶
func (s *Server) GetThread(ctx context.Context, req *GetThreadRequest) (*GetThreadResponse, error)
func (*Server) GetThreadMessages ¶
func (s *Server) GetThreadMessages(ctx context.Context, req *GetThreadMessagesRequest) (*GetThreadMessagesResponse, error)
func (*Server) LeaveThread ¶
func (s *Server) LeaveThread(ctx context.Context, req *LeaveThreadRequest) (*LeaveThreadResponse, error)
func (*Server) ListThreads ¶
func (s *Server) ListThreads(ctx context.Context, req *ListThreadsRequest) (*ListThreadsResponse, error)
func (*Server) PostMessage ¶
func (s *Server) PostMessage(ctx context.Context, req *PostMessageRequest) (*PostMessageResponse, error)
func (*Server) RegisterServer ¶
func (*Server) SetThreadUserState ¶
func (s *Server) SetThreadUserState(ctx context.Context, req *SetThreadUserStateRequest) (*SetThreadUserStateResponse, error)
type SetThreadUserStateRequest ¶
type SetThreadUserStateRequest struct { State *messenger.ThreadUserState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*SetThreadUserStateRequest) Descriptor
deprecated
func (*SetThreadUserStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetThreadUserStateRequest.ProtoReflect.Descriptor instead.
func (*SetThreadUserStateRequest) GetState ¶
func (x *SetThreadUserStateRequest) GetState() *messenger.ThreadUserState
func (*SetThreadUserStateRequest) ProtoMessage ¶
func (*SetThreadUserStateRequest) ProtoMessage()
func (*SetThreadUserStateRequest) ProtoReflect ¶
func (x *SetThreadUserStateRequest) ProtoReflect() protoreflect.Message
func (*SetThreadUserStateRequest) Reset ¶
func (x *SetThreadUserStateRequest) Reset()
func (*SetThreadUserStateRequest) String ¶
func (x *SetThreadUserStateRequest) String() string
func (*SetThreadUserStateRequest) Validate ¶
func (m *SetThreadUserStateRequest) Validate() error
Validate checks the field values on SetThreadUserStateRequest 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 (*SetThreadUserStateRequest) ValidateAll ¶
func (m *SetThreadUserStateRequest) ValidateAll() error
ValidateAll checks the field values on SetThreadUserStateRequest 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 SetThreadUserStateRequestMultiError, or nil if none found.
type SetThreadUserStateRequestMultiError ¶
type SetThreadUserStateRequestMultiError []error
SetThreadUserStateRequestMultiError is an error wrapping multiple validation errors returned by SetThreadUserStateRequest.ValidateAll() if the designated constraints aren't met.
func (SetThreadUserStateRequestMultiError) AllErrors ¶
func (m SetThreadUserStateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetThreadUserStateRequestMultiError) Error ¶
func (m SetThreadUserStateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetThreadUserStateRequestValidationError ¶
type SetThreadUserStateRequestValidationError struct {
// contains filtered or unexported fields
}
SetThreadUserStateRequestValidationError is the validation error returned by SetThreadUserStateRequest.Validate if the designated constraints aren't met.
func (SetThreadUserStateRequestValidationError) Cause ¶
func (e SetThreadUserStateRequestValidationError) Cause() error
Cause function returns cause value.
func (SetThreadUserStateRequestValidationError) Error ¶
func (e SetThreadUserStateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SetThreadUserStateRequestValidationError) ErrorName ¶
func (e SetThreadUserStateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SetThreadUserStateRequestValidationError) Field ¶
func (e SetThreadUserStateRequestValidationError) Field() string
Field function returns field value.
func (SetThreadUserStateRequestValidationError) Key ¶
func (e SetThreadUserStateRequestValidationError) Key() bool
Key function returns key value.
func (SetThreadUserStateRequestValidationError) Reason ¶
func (e SetThreadUserStateRequestValidationError) Reason() string
Reason function returns reason value.
type SetThreadUserStateResponse ¶
type SetThreadUserStateResponse struct {
// contains filtered or unexported fields
}
func (*SetThreadUserStateResponse) Descriptor
deprecated
func (*SetThreadUserStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetThreadUserStateResponse.ProtoReflect.Descriptor instead.
func (*SetThreadUserStateResponse) ProtoMessage ¶
func (*SetThreadUserStateResponse) ProtoMessage()
func (*SetThreadUserStateResponse) ProtoReflect ¶
func (x *SetThreadUserStateResponse) ProtoReflect() protoreflect.Message
func (*SetThreadUserStateResponse) Reset ¶
func (x *SetThreadUserStateResponse) Reset()
func (*SetThreadUserStateResponse) String ¶
func (x *SetThreadUserStateResponse) String() string
func (*SetThreadUserStateResponse) Validate ¶
func (m *SetThreadUserStateResponse) Validate() error
Validate checks the field values on SetThreadUserStateResponse 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 (*SetThreadUserStateResponse) ValidateAll ¶
func (m *SetThreadUserStateResponse) ValidateAll() error
ValidateAll checks the field values on SetThreadUserStateResponse 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 SetThreadUserStateResponseMultiError, or nil if none found.
type SetThreadUserStateResponseMultiError ¶
type SetThreadUserStateResponseMultiError []error
SetThreadUserStateResponseMultiError is an error wrapping multiple validation errors returned by SetThreadUserStateResponse.ValidateAll() if the designated constraints aren't met.
func (SetThreadUserStateResponseMultiError) AllErrors ¶
func (m SetThreadUserStateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetThreadUserStateResponseMultiError) Error ¶
func (m SetThreadUserStateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetThreadUserStateResponseValidationError ¶
type SetThreadUserStateResponseValidationError struct {
// contains filtered or unexported fields
}
SetThreadUserStateResponseValidationError is the validation error returned by SetThreadUserStateResponse.Validate if the designated constraints aren't met.
func (SetThreadUserStateResponseValidationError) Cause ¶
func (e SetThreadUserStateResponseValidationError) Cause() error
Cause function returns cause value.
func (SetThreadUserStateResponseValidationError) Error ¶
func (e SetThreadUserStateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SetThreadUserStateResponseValidationError) ErrorName ¶
func (e SetThreadUserStateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SetThreadUserStateResponseValidationError) Field ¶
func (e SetThreadUserStateResponseValidationError) Field() string
Field function returns field value.
func (SetThreadUserStateResponseValidationError) Key ¶
func (e SetThreadUserStateResponseValidationError) Key() bool
Key function returns key value.
func (SetThreadUserStateResponseValidationError) Reason ¶
func (e SetThreadUserStateResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMessengerServiceServer ¶
type UnimplementedMessengerServiceServer struct { }
UnimplementedMessengerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMessengerServiceServer) CreateOrUpdateThread ¶
func (UnimplementedMessengerServiceServer) CreateOrUpdateThread(context.Context, *CreateOrUpdateThreadRequest) (*CreateOrUpdateThreadResponse, error)
func (UnimplementedMessengerServiceServer) DeleteMessage ¶
func (UnimplementedMessengerServiceServer) DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error)
func (UnimplementedMessengerServiceServer) DeleteThread ¶
func (UnimplementedMessengerServiceServer) DeleteThread(context.Context, *DeleteThreadRequest) (*DeleteThreadResponse, error)
func (UnimplementedMessengerServiceServer) GetThread ¶
func (UnimplementedMessengerServiceServer) GetThread(context.Context, *GetThreadRequest) (*GetThreadResponse, error)
func (UnimplementedMessengerServiceServer) GetThreadMessages ¶
func (UnimplementedMessengerServiceServer) GetThreadMessages(context.Context, *GetThreadMessagesRequest) (*GetThreadMessagesResponse, error)
func (UnimplementedMessengerServiceServer) LeaveThread ¶
func (UnimplementedMessengerServiceServer) LeaveThread(context.Context, *LeaveThreadRequest) (*LeaveThreadResponse, error)
func (UnimplementedMessengerServiceServer) ListThreads ¶
func (UnimplementedMessengerServiceServer) ListThreads(context.Context, *ListThreadsRequest) (*ListThreadsResponse, error)
func (UnimplementedMessengerServiceServer) PostMessage ¶
func (UnimplementedMessengerServiceServer) PostMessage(context.Context, *PostMessageRequest) (*PostMessageResponse, error)
func (UnimplementedMessengerServiceServer) SetThreadUserState ¶
func (UnimplementedMessengerServiceServer) SetThreadUserState(context.Context, *SetThreadUserStateRequest) (*SetThreadUserStateResponse, error)
type UnsafeMessengerServiceServer ¶
type UnsafeMessengerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMessengerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessengerServiceServer will result in compilation errors.