Documentation ¶
Overview ¶
Package auth is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSet = wire.NewSet( NewClient, wire.Bind(new(ClientInterface), new(*Client)), )
View Source
var SessionRefreshTicker = time.NewTicker(internal.SessionRefreshInterval * time.Second)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ProvideOTP ¶
func (*Client) SessionToken ¶
type ClientInterface ¶
type MockClientInterface ¶
type MockClientInterface struct {
// contains filtered or unexported fields
}
MockClientInterface is a mock of ClientInterface interface.
func NewMockClientInterface ¶
func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface
NewMockClientInterface creates a new mock instance.
func (*MockClientInterface) EXPECT ¶
func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientInterface) Login ¶
func (m *MockClientInterface) Login(phoneNumber, pin string) (api.LoginResponse, error)
Login mocks base method.
func (*MockClientInterface) ProvideOTP ¶
func (m *MockClientInterface) ProvideOTP(processID, otp string) error
ProvideOTP mocks base method.
func (*MockClientInterface) SessionToken ¶
func (m *MockClientInterface) SessionToken() api.Token
SessionToken mocks base method.
type MockClientInterfaceMockRecorder ¶
type MockClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.
func (*MockClientInterfaceMockRecorder) Login ¶
func (mr *MockClientInterfaceMockRecorder) Login(phoneNumber, pin any) *gomock.Call
Login indicates an expected call of Login.
func (*MockClientInterfaceMockRecorder) ProvideOTP ¶
func (mr *MockClientInterfaceMockRecorder) ProvideOTP(processID, otp any) *gomock.Call
ProvideOTP indicates an expected call of ProvideOTP.
func (*MockClientInterfaceMockRecorder) SessionToken ¶
func (mr *MockClientInterfaceMockRecorder) SessionToken() *gomock.Call
SessionToken indicates an expected call of SessionToken.
type PhoneNumber ¶
type PhoneNumber string
Click to show internal directories.
Click to hide internal directories.