mock

package
v0.0.0-...-1f40b3c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleMockJob

type ExampleMockJob struct {
}

func (ExampleMockJob) Job

func (ExampleMockJob) LockProvider

func (ExampleMockJob) LockProvider() captain.LockProvider

func (ExampleMockJob) ResultProcessor

func (ExampleMockJob) ResultProcessor() captain.ResultProcessor

func (ExampleMockJob) RuntimeProcessor

func (ExampleMockJob) RuntimeProcessor() captain.RuntimeProcessor

func (ExampleMockJob) ShouldRun

func (ExampleMockJob) ShouldRun(key string) bool

type MockDB

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

MockDB is a mock of DB interface

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance

func (*MockDB) Clone

func (m *MockDB) Clone() db.DB

Clone mocks base method

func (*MockDB) Close

func (m *MockDB) Close()

Close mocks base method

func (*MockDB) Copy

func (m *MockDB) Copy() db.DB

Copy mocks base method

func (*MockDB) Devices

func (m *MockDB) Devices() db.DeviceManager

Devices mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDB) Migrations

func (m *MockDB) Migrations() db.MigrationManager

Migrations mocks base method

func (*MockDB) Permissions

func (m *MockDB) Permissions() db.PermissionManager

Permissions mocks base method

func (*MockDB) RefreshTokens

func (m *MockDB) RefreshTokens() db.RefreshTokenManager

RefreshTokens mocks base method

func (*MockDB) Users

func (m *MockDB) Users() db.UserManager

Users mocks base method

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) Clone

func (mr *MockDBMockRecorder) Clone() *gomock.Call

Clone indicates an expected call of Clone

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDBMockRecorder) Copy

func (mr *MockDBMockRecorder) Copy() *gomock.Call

Copy indicates an expected call of Copy

func (*MockDBMockRecorder) Devices

func (mr *MockDBMockRecorder) Devices() *gomock.Call

Devices indicates an expected call of Devices

func (*MockDBMockRecorder) Migrations

func (mr *MockDBMockRecorder) Migrations() *gomock.Call

Migrations indicates an expected call of Migrations

func (*MockDBMockRecorder) Permissions

func (mr *MockDBMockRecorder) Permissions() *gomock.Call

Permissions indicates an expected call of Permissions

func (*MockDBMockRecorder) RefreshTokens

func (mr *MockDBMockRecorder) RefreshTokens() *gomock.Call

RefreshTokens indicates an expected call of RefreshTokens

func (*MockDBMockRecorder) Users

func (mr *MockDBMockRecorder) Users() *gomock.Call

Users indicates an expected call of Users

type MockDeviceManager

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

MockDeviceManager is a mock of DeviceManager interface

func NewMockDeviceManager

func NewMockDeviceManager(ctrl *gomock.Controller) *MockDeviceManager

NewMockDeviceManager creates a new mock instance

func (*MockDeviceManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeviceManager) Exists

func (m *MockDeviceManager) Exists(arg0 string) (bool, error)

Exists mocks base method

func (*MockDeviceManager) FindByToken

func (m *MockDeviceManager) FindByToken(arg0 string) (*db.Device, error)

FindByToken mocks base method

func (*MockDeviceManager) Register

func (m *MockDeviceManager) Register(arg0 string) error

Register mocks base method

type MockDeviceManagerMockRecorder

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

MockDeviceManagerMockRecorder is the mock recorder for MockDeviceManager

func (*MockDeviceManagerMockRecorder) Exists

func (mr *MockDeviceManagerMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockDeviceManagerMockRecorder) FindByToken

func (mr *MockDeviceManagerMockRecorder) FindByToken(arg0 interface{}) *gomock.Call

FindByToken indicates an expected call of FindByToken

func (*MockDeviceManagerMockRecorder) Register

func (mr *MockDeviceManagerMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register

type MockICronJob

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

MockICronJob is a mock of ICronJob interface

func NewMockICronJob

func NewMockICronJob(ctrl *gomock.Controller) *MockICronJob

NewMockICronJob creates a new mock instance

func (*MockICronJob) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockICronJob) Job

func (m *MockICronJob) Job() captain.Worker

Job mock base method

func (*MockICronJob) LockProvider

func (m *MockICronJob) LockProvider() captain.LockProvider

LockProvider mock base method

func (*MockICronJob) ResultProcessor

func (m *MockICronJob) ResultProcessor() captain.ResultProcessor

ResultProcessor mock base method

func (*MockICronJob) RuntimeProcessor

func (m *MockICronJob) RuntimeProcessor() captain.RuntimeProcessor

RuntimeProcessor mock base method

func (*MockICronJob) ShouldRun

func (m *MockICronJob) ShouldRun(arg0 string) bool

IsApplied mock base method

type MockICronJobMockRecorder

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

MockICronJobMockRecorder is the mock recorder for MockICronJob

func (*MockICronJobMockRecorder) Job

Job indicates an expected call of Job

func (*MockICronJobMockRecorder) LockProvider

func (mr *MockICronJobMockRecorder) LockProvider() *gomock.Call

LockProvider indicates an expected call of LockProvider

func (*MockICronJobMockRecorder) ResultProcessor

func (mr *MockICronJobMockRecorder) ResultProcessor() *gomock.Call

ResultProcessor indicates an expected call of ResultProcessor

func (*MockICronJobMockRecorder) RuntimeProcessor

func (mr *MockICronJobMockRecorder) RuntimeProcessor() *gomock.Call

RuntimeProcessor indicates an expected call of RuntimeProcessor

func (*MockICronJobMockRecorder) ShouldRun

func (mr *MockICronJobMockRecorder) ShouldRun(arg0 interface{}) *gomock.Call

IsApplied indicates an expected call of IsApplied

type MockIPushyClient

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

MockIPushyClient is a mock of IPushyClient interface

func NewMockIPushyClient

func NewMockIPushyClient(ctrl *gomock.Controller) *MockIPushyClient

NewMockIPushyClient creates a new mock instance

func (*MockIPushyClient) DeleteNotification

func (m *MockIPushyClient) DeleteNotification(arg0 string) (*pushy.SimpleSuccess, *pushy.Error, error)

DeleteNotification mocks base method

func (*MockIPushyClient) DeviceInfo

func (m *MockIPushyClient) DeviceInfo(arg0 string) (*pushy.DeviceInfo, *pushy.Error, error)

DeviceInfo mocks base method

func (*MockIPushyClient) DevicePresence

func (m *MockIPushyClient) DevicePresence(arg0 ...string) (*pushy.DevicePresenceResponse, *pushy.Error, error)

DevicePresence mocks base method

func (*MockIPushyClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIPushyClient) GetHTTPClient

func (m *MockIPushyClient) GetHTTPClient() pushy.IHTTPClient

GetHTTPClient mocks base method

func (*MockIPushyClient) NotificationStatus

func (m *MockIPushyClient) NotificationStatus(arg0 string) (*pushy.NotificationStatus, *pushy.Error, error)

NotificationStatus mocks base method

func (*MockIPushyClient) NotifyDevice

NotifyDevice mocks base method

func (*MockIPushyClient) SetHTTPClient

func (m *MockIPushyClient) SetHTTPClient(arg0 pushy.IHTTPClient)

SetHTTPClient mocks base method

func (*MockIPushyClient) SubscribeToTopic

func (m *MockIPushyClient) SubscribeToTopic(arg0 string, arg1 ...string) (*pushy.SimpleSuccess, *pushy.Error, error)

SubscribeToTopic mocks base method

func (*MockIPushyClient) UnsubscribeFromTopic

func (m *MockIPushyClient) UnsubscribeFromTopic(arg0 string, arg1 ...string) (*pushy.SimpleSuccess, *pushy.Error, error)

UnsubscribeFromTopic mocks base method

type MockIPushyClientMockRecorder

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

MockIPushyClientMockRecorder is the mock recorder for MockIPushyClient

func (*MockIPushyClientMockRecorder) DeleteNotification

func (mr *MockIPushyClientMockRecorder) DeleteNotification(arg0 interface{}) *gomock.Call

DeleteNotification indicates an expected call of DeleteNotification

func (*MockIPushyClientMockRecorder) DeviceInfo

func (mr *MockIPushyClientMockRecorder) DeviceInfo(arg0 interface{}) *gomock.Call

DeviceInfo indicates an expected call of DeviceInfo

func (*MockIPushyClientMockRecorder) DevicePresence

func (mr *MockIPushyClientMockRecorder) DevicePresence(arg0 ...interface{}) *gomock.Call

DevicePresence indicates an expected call of DevicePresence

func (*MockIPushyClientMockRecorder) GetHTTPClient

func (mr *MockIPushyClientMockRecorder) GetHTTPClient() *gomock.Call

GetHTTPClient indicates an expected call of GetHTTPClient

func (*MockIPushyClientMockRecorder) NotificationStatus

func (mr *MockIPushyClientMockRecorder) NotificationStatus(arg0 interface{}) *gomock.Call

NotificationStatus indicates an expected call of NotificationStatus

func (*MockIPushyClientMockRecorder) NotifyDevice

func (mr *MockIPushyClientMockRecorder) NotifyDevice(arg0 interface{}) *gomock.Call

NotifyDevice indicates an expected call of NotifyDevice

func (*MockIPushyClientMockRecorder) SetHTTPClient

func (mr *MockIPushyClientMockRecorder) SetHTTPClient(arg0 interface{}) *gomock.Call

SetHTTPClient indicates an expected call of SetHTTPClient

func (*MockIPushyClientMockRecorder) SubscribeToTopic

func (mr *MockIPushyClientMockRecorder) SubscribeToTopic(arg0 interface{}, arg1 ...interface{}) *gomock.Call

SubscribeToTopic indicates an expected call of SubscribeToTopic

func (*MockIPushyClientMockRecorder) UnsubscribeFromTopic

func (mr *MockIPushyClientMockRecorder) UnsubscribeFromTopic(arg0 interface{}, arg1 ...interface{}) *gomock.Call

UnsubscribeFromTopic indicates an expected call of UnsubscribeFromTopic

type MockJwtManager

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

MockJwtManager is a mock of Manager interface

func NewMockJwtManager

func NewMockJwtManager(ctrl *gomock.Controller) *MockJwtManager

NewMockJwtManager creates a new mock instance

func (*MockJwtManager) CreateForUser

func (m *MockJwtManager) CreateForUser(arg0 *db.User) (string, error)

CreateForUser mocks base method

func (*MockJwtManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockJwtManager) GetJwtDataFromRequest

func (m *MockJwtManager) GetJwtDataFromRequest(arg0 *http.Request) (*jwt.Claims, error)

GetJwtDataFromRequest mocks base method

type MockJwtManagerMockRecorder

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

MockJwtManagerMockRecorder is the mock recorder for MockJwtManager

func (*MockJwtManagerMockRecorder) CreateForUser

func (mr *MockJwtManagerMockRecorder) CreateForUser(arg0 interface{}) *gomock.Call

CreateForUser indicates an expected call of CreateForUser

func (*MockJwtManagerMockRecorder) GetJwtDataFromRequest

func (mr *MockJwtManagerMockRecorder) GetJwtDataFromRequest(arg0 interface{}) *gomock.Call

GetJwtDataFromRequest indicates an expected call of GetJwtDataFromRequest

type MockLogger

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

MockLogger is a mock of Client interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func (*MockLogger) Debug

func (m *MockLogger) Debug(arg0 ...interface{})

Debug mocks base method

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLogger) Error

func (m *MockLogger) Error(arg0 ...interface{})

Error mocks base method

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(arg0 ...interface{})

Fatal mocks base method

func (*MockLogger) Info

func (m *MockLogger) Info(arg0 ...interface{})

Info mocks base method

func (*MockLogger) Panic

func (m *MockLogger) Panic(arg0 ...interface{})

Panic mocks base method

func (*MockLogger) Print

func (m *MockLogger) Print(arg0 ...interface{})

Print mocks base method

func (*MockLogger) Warn

func (m *MockLogger) Warn(arg0 ...interface{})

Warn mocks base method

func (*MockLogger) Warning

func (m *MockLogger) Warning(arg0 ...interface{})

Warning mocks base method

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(arg0 ...interface{}) *gomock.Call

Debug indicates an expected call of Debug

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(arg0 ...interface{}) *gomock.Call

Error indicates an expected call of Error

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(arg0 ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(arg0 ...interface{}) *gomock.Call

Info indicates an expected call of Info

func (*MockLoggerMockRecorder) Panic

func (mr *MockLoggerMockRecorder) Panic(arg0 ...interface{}) *gomock.Call

Panic indicates an expected call of Panic

func (*MockLoggerMockRecorder) Print

func (mr *MockLoggerMockRecorder) Print(arg0 ...interface{}) *gomock.Call

Print indicates an expected call of Print

func (*MockLoggerMockRecorder) Warn

func (mr *MockLoggerMockRecorder) Warn(arg0 ...interface{}) *gomock.Call

Warn indicates an expected call of Warn

func (*MockLoggerMockRecorder) Warning

func (mr *MockLoggerMockRecorder) Warning(arg0 ...interface{}) *gomock.Call

Warning indicates an expected call of Warning

type MockMigration

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

MockMigration is a mock of Migration interface

func NewMockMigration

func NewMockMigration(ctrl *gomock.Controller) *MockMigration

NewMockMigration creates a new mock instance

func (*MockMigration) Apply

func (m *MockMigration) Apply(arg0 db.DB)

Apply mocks base method

func (*MockMigration) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMigration) GetDescription

func (m *MockMigration) GetDescription() string

GetDescription mocks base method

func (*MockMigration) GetKey

func (m *MockMigration) GetKey() string

GetKey mocks base method

func (*MockMigration) Remove

func (m *MockMigration) Remove(arg0 *mgo.Database)

Remove mocks base method

type MockMigrationManager

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

MockMigrationManager is a mock of MigrationManager interface

func NewMockMigrationManager

func NewMockMigrationManager(ctrl *gomock.Controller) *MockMigrationManager

NewMockMigrationManager creates a new mock instance

func (*MockMigrationManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMigrationManager) IsApplied

func (m *MockMigrationManager) IsApplied(arg0 string) (bool, error)

IsApplied mocks base method

func (*MockMigrationManager) MarkApplied

func (m *MockMigrationManager) MarkApplied(arg0, arg1 string) error

MarkApplied mocks base method

type MockMigrationManagerMockRecorder

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

MockMigrationManagerMockRecorder is the mock recorder for MockMigrationManager

func (*MockMigrationManagerMockRecorder) IsApplied

func (mr *MockMigrationManagerMockRecorder) IsApplied(arg0 interface{}) *gomock.Call

IsApplied indicates an expected call of IsApplied

func (*MockMigrationManagerMockRecorder) MarkApplied

func (mr *MockMigrationManagerMockRecorder) MarkApplied(arg0, arg1 interface{}) *gomock.Call

MarkApplied indicates an expected call of MarkApplied

type MockMigrationMockRecorder

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

MockMigrationMockRecorder is the mock recorder for MockMigration

func (*MockMigrationMockRecorder) Apply

func (mr *MockMigrationMockRecorder) Apply(arg0 interface{}) *gomock.Call

Apply indicates an expected call of Apply

func (*MockMigrationMockRecorder) GetDescription

func (mr *MockMigrationMockRecorder) GetDescription() *gomock.Call

GetDescription indicates an expected call of GetDescription

func (*MockMigrationMockRecorder) GetKey

func (mr *MockMigrationMockRecorder) GetKey() *gomock.Call

GetKey indicates an expected call of GetKey

func (*MockMigrationMockRecorder) Remove

func (mr *MockMigrationMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

type MockPermissionManager

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

MockPermissionManager is a mock of PermissionManager interface

func NewMockPermissionManager

func NewMockPermissionManager(ctrl *gomock.Controller) *MockPermissionManager

NewMockPermissionManager creates a new mock instance

func (*MockPermissionManager) Create

func (m *MockPermissionManager) Create(arg0, arg1 string) error

Create mocks base method

func (*MockPermissionManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPermissionManager) Exists

func (m *MockPermissionManager) Exists(arg0 string) (bool, error)

Exists mocks base method

func (*MockPermissionManager) List

func (m *MockPermissionManager) List() ([]db.Permission, error)

List mocks base method

type MockPermissionManagerMockRecorder

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

MockPermissionManagerMockRecorder is the mock recorder for MockPermissionManager

func (*MockPermissionManagerMockRecorder) Create

func (mr *MockPermissionManagerMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockPermissionManagerMockRecorder) Exists

func (mr *MockPermissionManagerMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockPermissionManagerMockRecorder) List

List indicates an expected call of List

type MockRateLimiter

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

MockRateLimiter is a mock of RateLimiter interface

func NewMockRateLimiter

func NewMockRateLimiter(ctrl *gomock.Controller) *MockRateLimiter

NewMockRateLimiter creates a new mock instance

func (*MockRateLimiter) Count

func (m *MockRateLimiter) Count(arg0 string) (int64, error)

Count mocks base method

func (*MockRateLimiter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRateLimiter) Hit

func (m *MockRateLimiter) Hit(arg0 string) (int64, error)

Hit mocks base method

type MockRateLimiterMockRecorder

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

MockRateLimiterMockRecorder is the mock recorder for MockRateLimiter

func (*MockRateLimiterMockRecorder) Count

func (mr *MockRateLimiterMockRecorder) Count(arg0 interface{}) *gomock.Call

Count indicates an expected call of Count

func (*MockRateLimiterMockRecorder) Hit

func (mr *MockRateLimiterMockRecorder) Hit(arg0 interface{}) *gomock.Call

Hit indicates an expected call of Hit

type MockRedisClient

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

MockRedisClient is a mock of RedisClient interface

func NewMockRedisClient

func NewMockRedisClient(ctrl *gomock.Controller) *MockRedisClient

NewMockRedisClient creates a new mock instance

func (*MockRedisClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRedisClient) Expire

func (m *MockRedisClient) Expire(arg0 string, arg1 time.Duration) (bool, error)

Expire mocks base method

func (*MockRedisClient) ZAdd

func (m *MockRedisClient) ZAdd(arg0 string, arg1 ...redis.Z) (int64, error)

ZAdd mocks base method

func (*MockRedisClient) ZCard

func (m *MockRedisClient) ZCard(arg0 string) (int64, error)

ZCard mocks base method

func (*MockRedisClient) ZRemRangeByScore

func (m *MockRedisClient) ZRemRangeByScore(arg0, arg1, arg2 string) (int64, error)

ZRemRangeByScore mocks base method

type MockRedisClientMockRecorder

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

MockRedisClientMockRecorder is the mock recorder for MockRedisClient

func (*MockRedisClientMockRecorder) Expire

func (mr *MockRedisClientMockRecorder) Expire(arg0, arg1 interface{}) *gomock.Call

Expire indicates an expected call of Expire

func (*MockRedisClientMockRecorder) ZAdd

func (mr *MockRedisClientMockRecorder) ZAdd(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ZAdd indicates an expected call of ZAdd

func (*MockRedisClientMockRecorder) ZCard

func (mr *MockRedisClientMockRecorder) ZCard(arg0 interface{}) *gomock.Call

ZCard indicates an expected call of ZCard

func (*MockRedisClientMockRecorder) ZRemRangeByScore

func (mr *MockRedisClientMockRecorder) ZRemRangeByScore(arg0, arg1, arg2 interface{}) *gomock.Call

ZRemRangeByScore indicates an expected call of ZRemRangeByScore

type MockRefreshTokenManager

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

MockRefreshTokenManager is a mock of RefreshTokenManager interface

func NewMockRefreshTokenManager

func NewMockRefreshTokenManager(ctrl *gomock.Controller) *MockRefreshTokenManager

NewMockRefreshTokenManager creates a new mock instance

func (*MockRefreshTokenManager) Add

func (m *MockRefreshTokenManager) Add(arg0, arg1 string) error

Add mocks base method

func (*MockRefreshTokenManager) Delete

func (m *MockRefreshTokenManager) Delete(arg0 string) error

Delete mocks base method

func (*MockRefreshTokenManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRefreshTokenManager) FindOne

func (m *MockRefreshTokenManager) FindOne(arg0 string) (*db.RefreshToken, error)

FindOne mocks base method

func (*MockRefreshTokenManager) List

func (m *MockRefreshTokenManager) List(arg0 string) ([]db.RefreshToken, error)

List mocks base method

type MockRefreshTokenManagerMockRecorder

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

MockRefreshTokenManagerMockRecorder is the mock recorder for MockRefreshTokenManager

func (*MockRefreshTokenManagerMockRecorder) Add

func (mr *MockRefreshTokenManagerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockRefreshTokenManagerMockRecorder) Delete

func (mr *MockRefreshTokenManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockRefreshTokenManagerMockRecorder) FindOne

func (mr *MockRefreshTokenManagerMockRecorder) FindOne(arg0 interface{}) *gomock.Call

FindOne indicates an expected call of FindOne

func (*MockRefreshTokenManagerMockRecorder) List

func (mr *MockRefreshTokenManagerMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List

type MockRequestHelper

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

MockRequestHelper is a mock of RequestHelper interface

func NewMockRequestHelper

func NewMockRequestHelper(ctrl *gomock.Controller) *MockRequestHelper

NewMockRequestHelper creates a new mock instance

func (*MockRequestHelper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRequestHelper) GetIPAddress

func (m *MockRequestHelper) GetIPAddress(arg0 *http.Request) string

GetIPAddress mocks base method

type MockRequestHelperMockRecorder

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

MockRequestHelperMockRecorder is the mock recorder for MockRequestHelper

func (*MockRequestHelperMockRecorder) GetIPAddress

func (mr *MockRequestHelperMockRecorder) GetIPAddress(arg0 interface{}) *gomock.Call

GetIPAddress indicates an expected call of GetIPAddress

type MockUserManager

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

MockUserManager is a mock of UserManager interface

func NewMockUserManager

func NewMockUserManager(ctrl *gomock.Controller) *MockUserManager

NewMockUserManager creates a new mock instance

func (*MockUserManager) Create

func (m *MockUserManager) Create(arg0 db.User) error

Create mocks base method

func (*MockUserManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUserManager) FindByEmail

func (m *MockUserManager) FindByEmail(arg0 string) (*db.User, error)

FindByEmail mocks base method

func (*MockUserManager) FindByID

func (m *MockUserManager) FindByID(arg0 string) (*db.User, error)

FindByID mocks base method

func (*MockUserManager) List

func (m *MockUserManager) List() ([]db.User, error)

List mocks base method

func (*MockUserManager) Update

func (m *MockUserManager) Update(arg0 string, arg1 db.User) error

Update mocks base method

type MockUserManagerMockRecorder

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

MockUserManagerMockRecorder is the mock recorder for MockUserManager

func (*MockUserManagerMockRecorder) Create

func (mr *MockUserManagerMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockUserManagerMockRecorder) FindByEmail

func (mr *MockUserManagerMockRecorder) FindByEmail(arg0 interface{}) *gomock.Call

FindByEmail indicates an expected call of FindByEmail

func (*MockUserManagerMockRecorder) FindByID

func (mr *MockUserManagerMockRecorder) FindByID(arg0 interface{}) *gomock.Call

FindByID indicates an expected call of FindByID

func (*MockUserManagerMockRecorder) List

List indicates an expected call of List

func (*MockUserManagerMockRecorder) Update

func (mr *MockUserManagerMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update

Jump to

Keyboard shortcuts

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