auth

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package auth is a generated GoMock package.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(apiClient api.Client, logger *log.Logger) (*Client, error)

func (*Client) Login

func (c *Client) Login(phoneNumber, pin string) (api.LoginResponse, error)

func (*Client) ProvideOTP

func (c *Client) ProvideOTP(processID, otp string) error

func (*Client) SessionToken

func (c *Client) SessionToken() api.Token

type ClientInterface

type ClientInterface interface {
	Login(phoneNumber, pin string) (api.LoginResponse, error)
	ProvideOTP(processID, otp string) error
	SessionToken() api.Token
}

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

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

type Pin

type Pin string

Jump to

Keyboard shortcuts

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