Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFailedTelegramClient ¶
type MockFailedTelegramClient struct{}
func NewMockFailedClient ¶
func NewMockFailedClient() *MockFailedTelegramClient
func (MockFailedTelegramClient) SendTextMessageToChat ¶
func (c MockFailedTelegramClient) SendTextMessageToChat(_ int, _ string) (string, error)
type MockHttpClient ¶
type MockHttpClient struct {
// contains filtered or unexported fields
}
func NewMockHttpClient ¶
func NewMockHttpClient(statusCode int, body string, err error) *MockHttpClient
type MockHttpClientFailedCloser ¶
type MockHttpClientFailedCloser struct {
// contains filtered or unexported fields
}
func NewMockHttpClientFailedCloser ¶
func NewMockHttpClientFailedCloser(statusCode int, body string, err error) *MockHttpClientFailedCloser
type MockOkTelegramClient ¶
type MockOkTelegramClient struct{}
func NewMockOkClient ¶
func NewMockOkClient() *MockOkTelegramClient
func (MockOkTelegramClient) SendTextMessageToChat ¶
func (c MockOkTelegramClient) SendTextMessageToChat(_ int, _ string) (string, error)
type MockReadCloser ¶
type MockReadCloser struct {
// contains filtered or unexported fields
}
func (MockReadCloser) Close ¶
func (r MockReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.