Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) CancelSentMessage(request *Kernel.Request)
- func (service *Service) CheckPermission() bool
- func (service *Service) Fetch(ctx context.Context)
- func (service *Service) GetHistoryMessages(_ *Kernel.Request)
- func (service *Service) GetMessage(request *Kernel.Request)
- func (service *Service) SendMessage(request *Kernel.Request)
- type ServiceInterface
Constants ¶
View Source
const ( ErrorEmptyContent = "Content_is_empty" ErrorInvalidContent = "Content_is_invalid" ErrorOriginNotEmpty = "Origin_is_not_empty" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) CancelSentMessage ¶
func (*Service) CheckPermission ¶
func (*Service) GetHistoryMessages ¶
func (*Service) GetMessage ¶
func (*Service) SendMessage ¶
type ServiceInterface ¶
type ServiceInterface interface { Kernel.ServiceInterface GetMessage(request *Kernel.Request) SendMessage(request *Kernel.Request) CancelSentMessage(request *Kernel.Request) GetHistoryMessages(request *Kernel.Request) }
func NewServiceInterface ¶
func NewServiceInterface(source *source.ContainerSource, contentValidator func(int, string) bool) ServiceInterface
Click to show internal directories.
Click to hide internal directories.