messenger

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	ThreadsDefaultPageSize = 16
)

Variables

View Source
var File_services_messenger_messenger_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 (*CreateOrUpdateThreadRequest) ProtoMessage

func (*CreateOrUpdateThreadRequest) ProtoMessage()

func (*CreateOrUpdateThreadRequest) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateThreadRequestMultiError) Error

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

Cause function returns cause value.

func (CreateOrUpdateThreadRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrUpdateThreadRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrUpdateThreadRequestValidationError) Field

Field function returns field value.

func (CreateOrUpdateThreadRequestValidationError) Key

Key function returns key value.

func (CreateOrUpdateThreadRequestValidationError) Reason

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 (*CreateOrUpdateThreadResponse) ProtoMessage

func (*CreateOrUpdateThreadResponse) ProtoMessage()

func (*CreateOrUpdateThreadResponse) ProtoReflect

func (*CreateOrUpdateThreadResponse) Reset

func (x *CreateOrUpdateThreadResponse) Reset()

func (*CreateOrUpdateThreadResponse) 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

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateThreadResponseMultiError) Error

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

Cause function returns cause value.

func (CreateOrUpdateThreadResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateOrUpdateThreadResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateOrUpdateThreadResponseValidationError) Field

Field function returns field value.

func (CreateOrUpdateThreadResponseValidationError) Key

Key function returns key value.

func (CreateOrUpdateThreadResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMessageRequestValidationError) Field

Field function returns field value.

func (DeleteMessageRequestValidationError) Key

Key function returns key value.

func (DeleteMessageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteMessageResponseValidationError) Field

Field function returns field value.

func (DeleteMessageResponseValidationError) Key

Key function returns key value.

func (DeleteMessageResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteThreadRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteThreadRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteThreadRequestValidationError) Field

Field function returns field value.

func (DeleteThreadRequestValidationError) Key

Key function returns key value.

func (DeleteThreadRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteThreadResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteThreadResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteThreadResponseValidationError) Field

Field function returns field value.

func (DeleteThreadResponseValidationError) Key

Key function returns key value.

func (DeleteThreadResponseValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetThreadMessagesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetThreadMessagesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetThreadMessagesRequestValidationError) Field

Field function returns field value.

func (GetThreadMessagesRequestValidationError) Key

Key function returns key value.

func (GetThreadMessagesRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (GetThreadMessagesResponseMultiError) Error

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

Cause function returns cause value.

func (GetThreadMessagesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetThreadMessagesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetThreadMessagesResponseValidationError) Field

Field function returns field value.

func (GetThreadMessagesResponseValidationError) Key

Key function returns key value.

func (GetThreadMessagesResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetThreadRequestValidationError) Error

Error satisfies the builtin error interface

func (GetThreadRequestValidationError) ErrorName

ErrorName returns error name.

func (GetThreadRequestValidationError) Field

Field function returns field value.

func (GetThreadRequestValidationError) Key

Key function returns key value.

func (GetThreadRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetThreadResponseValidationError) Error

Error satisfies the builtin error interface

func (GetThreadResponseValidationError) ErrorName

ErrorName returns error name.

func (GetThreadResponseValidationError) Field

Field function returns field value.

func (GetThreadResponseValidationError) Key

Key function returns key value.

func (GetThreadResponseValidationError) Reason

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

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

Cause function returns cause value.

func (LeaveThreadRequestValidationError) Error

Error satisfies the builtin error interface

func (LeaveThreadRequestValidationError) ErrorName

ErrorName returns error name.

func (LeaveThreadRequestValidationError) Field

Field function returns field value.

func (LeaveThreadRequestValidationError) Key

Key function returns key value.

func (LeaveThreadRequestValidationError) Reason

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

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

Cause function returns cause value.

func (LeaveThreadResponseValidationError) Error

Error satisfies the builtin error interface

func (LeaveThreadResponseValidationError) ErrorName

ErrorName returns error name.

func (LeaveThreadResponseValidationError) Field

Field function returns field value.

func (LeaveThreadResponseValidationError) Key

Key function returns key value.

func (LeaveThreadResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListThreadsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListThreadsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListThreadsRequestValidationError) Field

Field function returns field value.

func (ListThreadsRequestValidationError) Key

Key function returns key value.

func (ListThreadsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListThreadsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListThreadsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListThreadsResponseValidationError) Field

Field function returns field value.

func (ListThreadsResponseValidationError) Key

Key function returns key value.

func (ListThreadsResponseValidationError) Reason

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.

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

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

Cause function returns cause value.

func (PostMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (PostMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (PostMessageRequestValidationError) Field

Field function returns field value.

func (PostMessageRequestValidationError) Key

Key function returns key value.

func (PostMessageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PostMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (PostMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (PostMessageResponseValidationError) Field

Field function returns field value.

func (PostMessageResponseValidationError) Key

Key function returns key value.

func (PostMessageResponseValidationError) Reason

Reason function returns reason value.

type Server

type Server struct {
	MessengerServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) *Server

func (*Server) CreateOrUpdateThread

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 (s *Server) GetPermsRemap() map[string]string

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 (s *Server) RegisterServer(srv *grpc.Server)

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 (*SetThreadUserStateRequest) ProtoMessage

func (*SetThreadUserStateRequest) ProtoMessage()

func (*SetThreadUserStateRequest) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (SetThreadUserStateRequestMultiError) Error

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

Cause function returns cause value.

func (SetThreadUserStateRequestValidationError) Error

Error satisfies the builtin error interface

func (SetThreadUserStateRequestValidationError) ErrorName

ErrorName returns error name.

func (SetThreadUserStateRequestValidationError) Field

Field function returns field value.

func (SetThreadUserStateRequestValidationError) Key

Key function returns key value.

func (SetThreadUserStateRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (SetThreadUserStateResponseMultiError) Error

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

Cause function returns cause value.

func (SetThreadUserStateResponseValidationError) Error

Error satisfies the builtin error interface

func (SetThreadUserStateResponseValidationError) ErrorName

ErrorName returns error name.

func (SetThreadUserStateResponseValidationError) Field

Field function returns field value.

func (SetThreadUserStateResponseValidationError) Key

Key function returns key value.

func (SetThreadUserStateResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedMessengerServiceServer

type UnimplementedMessengerServiceServer struct {
}

UnimplementedMessengerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMessengerServiceServer) DeleteMessage

func (UnimplementedMessengerServiceServer) DeleteThread

func (UnimplementedMessengerServiceServer) GetThread

func (UnimplementedMessengerServiceServer) GetThreadMessages

func (UnimplementedMessengerServiceServer) LeaveThread

func (UnimplementedMessengerServiceServer) ListThreads

func (UnimplementedMessengerServiceServer) PostMessage

func (UnimplementedMessengerServiceServer) SetThreadUserState

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL