mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServiceInterface

type APIServiceInterface struct {
	mock.Mock
}

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

type GitHubServiceInterface struct {
	mock.Mock
}

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

func (_m *GitHubServiceInterface) GetLatestRelease(owner string, repo string) (*dto.Release, error)

GetLatestRelease provides a mock function with given fields: owner, repo

type SSEServiceInterface

type SSEServiceInterface struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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