Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
StreamFunc func(ctx context.Context, req chat.Request, onMessage func(*domain.Message)) (*chat.StreamResult, error)
SetAccountFunc func(accountID domain.AccountID)
}
MockClient is a mock implementation of chat.Client for testing.
func (*MockClient) SetAccountID ¶
func (m *MockClient) SetAccountID(accountID domain.AccountID)
Click to show internal directories.
Click to hide internal directories.