Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.4.0
type App struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.4.0
func New( attachmentREPO domain.AttachmentRepositoryPort, messageREPO domain.MessageRepositoryPort, endpointREPO domain.EndpointRepositoryPort, authSVC domain.AuthServicePort, bridgeSVC domain.BridgeServicePort, endpointSVC domain.EndpointServicePort, messageSVC domain.MessageServicePort, ) *App
func (*App) AttachmentGetFS ¶ added in v0.4.0
func (*App) AuthLoginRequest ¶ added in v0.4.0
func (a *App) AuthLoginRequest(req *AuthLoginRequest) error
func (*App) MessageHandle ¶ added in v0.5.0
func (a *App) MessageHandle(req *MessageHandleRequest) error
func (*App) MessageList ¶ added in v0.4.0
func (a *App) MessageList(req *MessageListRequest) (*MessageListResponse, error)
type Attachment ¶
type AuthLoginRequest ¶ added in v0.4.0
type Message ¶
type Message struct {
UUID string `json:"uuid"`
Status domain.Status `json:"status"`
From string `json:"from"`
To []string `json:"to"`
Subject string `json:"subject"`
Text string `json:"text"`
CreatedAt string `json:"created_at"`
Attachments []Attachment `json:"attachments"`
}
func NewMessage ¶
type MessageHandleRequest ¶ added in v0.5.0
type MessageHandleRequest struct {
Subject string
From string
To map[string]struct{}
Text string
IgnoreAttachmentError bool
// contains filtered or unexported fields
}
func (*MessageHandleRequest) AddAttachment ¶ added in v0.5.0
func (c *MessageHandleRequest) AddAttachment(name string, data []byte)
type MessageListRequest ¶ added in v0.4.0
type MessageListRequest struct {
Page int
}
Click to show internal directories.
Click to hide internal directories.