Documentation ¶
Index ¶
- type APIServiceInterface
- func (_m *APIServiceInterface) CreateAccount(data dto.AccountWrite) (*dto.Account, error)
- func (_m *APIServiceInterface) DownloadMessageAttachment(messageID string, attachmentID string, path string) error
- func (_m *APIServiceInterface) GetAccount(id string) (*dto.Account, error)
- func (_m *APIServiceInterface) GetCurrentAccount() (*dto.Account, error)
- func (_m *APIServiceInterface) GetDomain(id string) (*dto.Domain, error)
- func (_m *APIServiceInterface) GetDomains() ([]dto.Domain, error)
- func (_m *APIServiceInterface) GetMessage(id string) (*dto.Message, error)
- func (_m *APIServiceInterface) GetMessages() (dto.Messages, error)
- func (_m *APIServiceInterface) GetSource(id string) (*dto.Source, error)
- func (_m *APIServiceInterface) GetToken(credentials dto.Credentials) (*dto.Token, error)
- func (_m *APIServiceInterface) RemoveAccount(id string) error
- func (_m *APIServiceInterface) RemoveMessage(id string) error
- func (_m *APIServiceInterface) SetToken(token *dto.Token)
- func (_m *APIServiceInterface) UpdateMessage(id string, data dto.MessageWrite) error
- type GitHubServiceInterface
- type SSEServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServiceInterface ¶
APIServiceInterface is an autogenerated mocks type for the APIServiceInterface type
func NewAPIServiceInterface ¶
func NewAPIServiceInterface(t mockConstructorTestingTNewAPIServiceInterface) *APIServiceInterface
NewAPIServiceInterface creates a new instance of APIServiceInterface. It also registers a testing interface on the mocks and a cleanup function to assert the mocks expectations.
func (*APIServiceInterface) CreateAccount ¶
func (_m *APIServiceInterface) CreateAccount(data dto.AccountWrite) (*dto.Account, error)
CreateAccount provides a mocks function with given fields: data
func (*APIServiceInterface) DownloadMessageAttachment ¶
func (_m *APIServiceInterface) DownloadMessageAttachment(messageID string, attachmentID string, path string) error
DownloadMessageAttachment provides a mocks function with given fields: messageID, attachmentID, path
func (*APIServiceInterface) GetAccount ¶
func (_m *APIServiceInterface) GetAccount(id string) (*dto.Account, error)
GetAccount provides a mocks function with given fields: id
func (*APIServiceInterface) GetCurrentAccount ¶
func (_m *APIServiceInterface) GetCurrentAccount() (*dto.Account, error)
GetCurrentAccount provides a mocks function with given fields:
func (*APIServiceInterface) GetDomain ¶
func (_m *APIServiceInterface) GetDomain(id string) (*dto.Domain, error)
GetDomain provides a mocks function with given fields: id
func (*APIServiceInterface) GetDomains ¶
func (_m *APIServiceInterface) GetDomains() ([]dto.Domain, error)
GetDomains provides a mocks function with given fields:
func (*APIServiceInterface) GetMessage ¶
func (_m *APIServiceInterface) GetMessage(id string) (*dto.Message, error)
GetMessage provides a mocks function with given fields: id
func (*APIServiceInterface) GetMessages ¶
func (_m *APIServiceInterface) GetMessages() (dto.Messages, error)
GetMessages provides a mocks function with given fields:
func (*APIServiceInterface) GetSource ¶
func (_m *APIServiceInterface) GetSource(id string) (*dto.Source, error)
GetSource provides a mocks function with given fields: id
func (*APIServiceInterface) GetToken ¶
func (_m *APIServiceInterface) GetToken(credentials dto.Credentials) (*dto.Token, error)
GetToken provides a mocks function with given fields: credentials
func (*APIServiceInterface) RemoveAccount ¶
func (_m *APIServiceInterface) RemoveAccount(id string) error
RemoveAccount provides a mocks function with given fields: id
func (*APIServiceInterface) RemoveMessage ¶
func (_m *APIServiceInterface) RemoveMessage(id string) error
RemoveMessage provides a mocks function with given fields: id
func (*APIServiceInterface) SetToken ¶
func (_m *APIServiceInterface) SetToken(token *dto.Token)
SetToken provides a mocks function with given fields: token
func (*APIServiceInterface) UpdateMessage ¶
func (_m *APIServiceInterface) UpdateMessage(id string, data dto.MessageWrite) error
UpdateMessage provides a mocks function with given fields: id, data
type GitHubServiceInterface ¶
GitHubServiceInterface is an autogenerated mock type for the GitHubServiceInterface type
func NewGitHubServiceInterface ¶
func NewGitHubServiceInterface(t mockConstructorTestingTNewGitHubServiceInterface) *GitHubServiceInterface
NewGitHubServiceInterface creates a new instance of GitHubServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GitHubServiceInterface) GetLatestRelease ¶
GetLatestRelease provides a mock function with given fields: owner, repo
type SSEServiceInterface ¶
SSEServiceInterface is an autogenerated mock type for the SSEServiceInterface type
func NewSSEServiceInterface ¶
func NewSSEServiceInterface(t mockConstructorTestingTNewSSEServiceInterface) *SSEServiceInterface
NewSSEServiceInterface creates a new instance of SSEServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SSEServiceInterface) SubscribeMessages ¶
func (_m *SSEServiceInterface) SubscribeMessages(accountID string, handler func(dto.MessagesItem)) error
SubscribeMessages provides a mock function with given fields: accountID, handler