mocks

package
v0.0.0-...-e10a309 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIDBTx

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

MockIDBTx is a mock of IDBTx interface.

func NewMockIDBTx

func NewMockIDBTx(ctrl *gomock.Controller) *MockIDBTx

NewMockIDBTx creates a new mock instance.

func (*MockIDBTx) Commit

func (m *MockIDBTx) Commit()

Commit mocks base method.

func (*MockIDBTx) EXPECT

func (m *MockIDBTx) EXPECT() *MockIDBTxMockRecorder

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

func (*MockIDBTx) Rollback

func (m *MockIDBTx) Rollback()

Rollback mocks base method.

type MockIDBTxMockRecorder

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

MockIDBTxMockRecorder is the mock recorder for MockIDBTx.

func (*MockIDBTxMockRecorder) Commit

func (mr *MockIDBTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockIDBTxMockRecorder) Rollback

func (mr *MockIDBTxMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

type MockIDatabase

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

MockIDatabase is a mock of IDatabase interface.

func NewMockIDatabase

func NewMockIDatabase(ctrl *gomock.Controller) *MockIDatabase

NewMockIDatabase creates a new mock instance.

func (*MockIDatabase) Begin

func (m *MockIDatabase) Begin() (interfaces.IDBTx, error)

Begin mocks base method.

func (*MockIDatabase) BeginTx

func (m *MockIDatabase) BeginTx() (*sqlx.Tx, error)

BeginTx mocks base method.

func (*MockIDatabase) Close

func (m *MockIDatabase) Close()

Close mocks base method.

func (*MockIDatabase) Commit

func (m *MockIDatabase) Commit() error

Commit mocks base method.

func (*MockIDatabase) ConnectDB

func (m *MockIDatabase) ConnectDB(dbAccRead, dbAccWrite *resources.DBAccount)

ConnectDB mocks base method.

func (*MockIDatabase) DriverName

func (m *MockIDatabase) DriverName() string

DriverName mocks base method.

func (*MockIDatabase) EXPECT

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

func (*MockIDatabase) Exec

func (m *MockIDatabase) Exec(query string, args ...interface{}) (sql.Result, error)

Exec mocks base method.

func (*MockIDatabase) ExecContext

func (m *MockIDatabase) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockIDatabase) Get

func (m *MockIDatabase) Get(dest interface{}, query string, args ...interface{}) error

Get mocks base method.

func (*MockIDatabase) GetContext

func (m *MockIDatabase) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

GetContext mocks base method.

func (*MockIDatabase) In

func (m *MockIDatabase) In(query string, params ...interface{}) (string, []interface{}, error)

In mocks base method.

func (*MockIDatabase) Query

func (m *MockIDatabase) Query(query string, args ...interface{}) (*sql.Rows, error)

Query mocks base method.

func (*MockIDatabase) QueryContext

func (m *MockIDatabase) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockIDatabase) QueryRow

func (m *MockIDatabase) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow mocks base method.

func (*MockIDatabase) QueryRowSqlx

func (m *MockIDatabase) QueryRowSqlx(query string, args ...interface{}) *sqlx.Row

QueryRowSqlx mocks base method.

func (*MockIDatabase) Queryx

func (m *MockIDatabase) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)

Queryx mocks base method.

func (*MockIDatabase) Rebind

func (m *MockIDatabase) Rebind(query string) string

Rebind mocks base method.

func (*MockIDatabase) Rollback

func (m *MockIDatabase) Rollback() error

Rollback mocks base method.

func (*MockIDatabase) Select

func (m *MockIDatabase) Select(dest interface{}, query string, args ...interface{}) error

Select mocks base method.

func (*MockIDatabase) TransactionBlock

func (m *MockIDatabase) TransactionBlock(tx *sqlx.Tx, fc func(*sqlx.Tx) error) error

TransactionBlock mocks base method.

type MockIDatabaseMockRecorder

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

MockIDatabaseMockRecorder is the mock recorder for MockIDatabase.

func (*MockIDatabaseMockRecorder) Begin

func (mr *MockIDatabaseMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockIDatabaseMockRecorder) BeginTx

func (mr *MockIDatabaseMockRecorder) BeginTx() *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockIDatabaseMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockIDatabaseMockRecorder) Commit

func (mr *MockIDatabaseMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockIDatabaseMockRecorder) ConnectDB

func (mr *MockIDatabaseMockRecorder) ConnectDB(dbAccRead, dbAccWrite interface{}) *gomock.Call

ConnectDB indicates an expected call of ConnectDB.

func (*MockIDatabaseMockRecorder) DriverName

func (mr *MockIDatabaseMockRecorder) DriverName() *gomock.Call

DriverName indicates an expected call of DriverName.

func (*MockIDatabaseMockRecorder) Exec

func (mr *MockIDatabaseMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockIDatabaseMockRecorder) ExecContext

func (mr *MockIDatabaseMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockIDatabaseMockRecorder) Get

func (mr *MockIDatabaseMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIDatabaseMockRecorder) GetContext

func (mr *MockIDatabaseMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockIDatabaseMockRecorder) In

func (mr *MockIDatabaseMockRecorder) In(query interface{}, params ...interface{}) *gomock.Call

In indicates an expected call of In.

func (*MockIDatabaseMockRecorder) Query

func (mr *MockIDatabaseMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockIDatabaseMockRecorder) QueryContext

func (mr *MockIDatabaseMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockIDatabaseMockRecorder) QueryRow

func (mr *MockIDatabaseMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockIDatabaseMockRecorder) QueryRowSqlx

func (mr *MockIDatabaseMockRecorder) QueryRowSqlx(query interface{}, args ...interface{}) *gomock.Call

QueryRowSqlx indicates an expected call of QueryRowSqlx.

func (*MockIDatabaseMockRecorder) Queryx

func (mr *MockIDatabaseMockRecorder) Queryx(query interface{}, args ...interface{}) *gomock.Call

Queryx indicates an expected call of Queryx.

func (*MockIDatabaseMockRecorder) Rebind

func (mr *MockIDatabaseMockRecorder) Rebind(query interface{}) *gomock.Call

Rebind indicates an expected call of Rebind.

func (*MockIDatabaseMockRecorder) Rollback

func (mr *MockIDatabaseMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockIDatabaseMockRecorder) Select

func (mr *MockIDatabaseMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call

Select indicates an expected call of Select.

func (*MockIDatabaseMockRecorder) TransactionBlock

func (mr *MockIDatabaseMockRecorder) TransactionBlock(tx, fc interface{}) *gomock.Call

TransactionBlock indicates an expected call of TransactionBlock.

type MockIDatabaseTx

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

MockIDatabaseTx is a mock of IDatabaseTx interface.

func NewMockIDatabaseTx

func NewMockIDatabaseTx(ctrl *gomock.Controller) *MockIDatabaseTx

NewMockIDatabaseTx creates a new mock instance.

func (*MockIDatabaseTx) BeginTx

func (m *MockIDatabaseTx) BeginTx() (*sqlx.Tx, error)

BeginTx mocks base method.

func (*MockIDatabaseTx) EXPECT

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

func (*MockIDatabaseTx) TransactionBlock

func (m *MockIDatabaseTx) TransactionBlock(tx *sqlx.Tx, fc func(*sqlx.Tx) error) error

TransactionBlock mocks base method.

type MockIDatabaseTxMockRecorder

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

MockIDatabaseTxMockRecorder is the mock recorder for MockIDatabaseTx.

func (*MockIDatabaseTxMockRecorder) BeginTx

func (mr *MockIDatabaseTxMockRecorder) BeginTx() *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockIDatabaseTxMockRecorder) TransactionBlock

func (mr *MockIDatabaseTxMockRecorder) TransactionBlock(tx, fc interface{}) *gomock.Call

TransactionBlock indicates an expected call of TransactionBlock.

type MockIHTTP

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

MockIHTTP is a mock of IHTTP interface.

func NewMockIHTTP

func NewMockIHTTP(ctrl *gomock.Controller) *MockIHTTP

NewMockIHTTP creates a new mock instance.

func (*MockIHTTP) CallService

func (m *MockIHTTP) CallService(method, url string, requestBody []byte) (string, *resources.ApplicationError)

CallService mocks base method.

func (*MockIHTTP) CallServiceByte

func (m *MockIHTTP) CallServiceByte(method, url string, requestBody []byte) ([]byte, *resources.ApplicationError)

CallServiceByte mocks base method.

func (*MockIHTTP) EXPECT

func (m *MockIHTTP) EXPECT() *MockIHTTPMockRecorder

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

type MockIHTTPMockRecorder

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

MockIHTTPMockRecorder is the mock recorder for MockIHTTP.

func (*MockIHTTPMockRecorder) CallService

func (mr *MockIHTTPMockRecorder) CallService(method, url, requestBody interface{}) *gomock.Call

CallService indicates an expected call of CallService.

func (*MockIHTTPMockRecorder) CallServiceByte

func (mr *MockIHTTPMockRecorder) CallServiceByte(method, url, requestBody interface{}) *gomock.Call

CallServiceByte indicates an expected call of CallServiceByte.

type MockIPanicHandler

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

MockIPanicHandler is a mock of IPanicHandler interface.

func NewMockIPanicHandler

func NewMockIPanicHandler(ctrl *gomock.Controller) *MockIPanicHandler

NewMockIPanicHandler creates a new mock instance.

func (*MockIPanicHandler) EXPECT

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

func (*MockIPanicHandler) GetPanicAndSendToSlack

func (m *MockIPanicHandler) GetPanicAndSendToSlack(c *gin.Context, serviceName, message string) error

GetPanicAndSendToSlack mocks base method.

func (*MockIPanicHandler) SetPanicResp

func (m *MockIPanicHandler) SetPanicResp(c *gin.Context, serviceName, message string) *resources.PanicHandlerResponse

SetPanicResp mocks base method.

func (*MockIPanicHandler) SetPayloadSlack

func (m *MockIPanicHandler) SetPayloadSlack(resp *resources.PanicHandlerResponse) slack.Payload

SetPayloadSlack mocks base method.

type MockIPanicHandlerMockRecorder

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

MockIPanicHandlerMockRecorder is the mock recorder for MockIPanicHandler.

func (*MockIPanicHandlerMockRecorder) GetPanicAndSendToSlack

func (mr *MockIPanicHandlerMockRecorder) GetPanicAndSendToSlack(c, serviceName, message interface{}) *gomock.Call

GetPanicAndSendToSlack indicates an expected call of GetPanicAndSendToSlack.

func (*MockIPanicHandlerMockRecorder) SetPanicResp

func (mr *MockIPanicHandlerMockRecorder) SetPanicResp(c, serviceName, message interface{}) *gomock.Call

SetPanicResp indicates an expected call of SetPanicResp.

func (*MockIPanicHandlerMockRecorder) SetPayloadSlack

func (mr *MockIPanicHandlerMockRecorder) SetPayloadSlack(resp interface{}) *gomock.Call

SetPayloadSlack indicates an expected call of SetPayloadSlack.

type MockIRedis

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

MockIRedis is a mock of IRedis interface.

func NewMockIRedis

func NewMockIRedis(ctrl *gomock.Controller) *MockIRedis

NewMockIRedis creates a new mock instance.

func (*MockIRedis) Close

func (m *MockIRedis) Close()

Close mocks base method.

func (*MockIRedis) ConnectRedis

func (m *MockIRedis) ConnectRedis(ra *resources.RedisAccount)

ConnectRedis mocks base method.

func (*MockIRedis) CreateRedisMutex

func (m *MockIRedis) CreateRedisMutex(key string, options ...redsync.Option) *redsync.Mutex

CreateRedisMutex mocks base method.

func (*MockIRedis) CreateRedisync

func (m *MockIRedis) CreateRedisync() *redsync.Redsync

CreateRedisync mocks base method.

func (*MockIRedis) Del

func (m *MockIRedis) Del(keys ...string) error

Del mocks base method.

func (*MockIRedis) EXPECT

func (m *MockIRedis) EXPECT() *MockIRedisMockRecorder

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

func (*MockIRedis) Get

func (m *MockIRedis) Get(key string) (string, error)

Get mocks base method.

func (*MockIRedis) GetSet

func (m *MockIRedis) GetSet(key string, data interface{}) error

GetSet mocks base method.

func (*MockIRedis) HDel

func (m *MockIRedis) HDel(key string, fields ...string) error

HDel mocks base method.

func (*MockIRedis) HGetAll

func (m *MockIRedis) HGetAll(key string) (map[string]string, error)

HGetAll mocks base method.

func (*MockIRedis) HMGet

func (m *MockIRedis) HMGet(key string, fields ...string) ([]interface{}, error)

HMGet mocks base method.

func (*MockIRedis) HMSet

func (m *MockIRedis) HMSet(key string, data interface{}) error

HMSet mocks base method.

func (*MockIRedis) HMSetEx

func (m *MockIRedis) HMSetEx(key string, parameter resources.SetExParameter) error

HMSetEx mocks base method.

func (*MockIRedis) JSONDel

func (m *MockIRedis) JSONDel(key, path string) (interface{}, error)

JSONDel mocks base method.

func (*MockIRedis) JSONGet

func (m *MockIRedis) JSONGet(key string) (interface{}, error)

JSONGet mocks base method.

func (*MockIRedis) JSONMGet

func (m *MockIRedis) JSONMGet(path string, keys ...string) (interface{}, error)

JSONMGet mocks base method.

func (*MockIRedis) JSONSet

func (m *MockIRedis) JSONSet(key string, data interface{}) (interface{}, error)

JSONSet mocks base method.

func (*MockIRedis) Keys

func (m *MockIRedis) Keys(pattern string) ([]string, error)

Keys mocks base method.

func (*MockIRedis) LLen

func (m *MockIRedis) LLen(key string) (int64, error)

LLen mocks base method.

func (*MockIRedis) LPush

func (m *MockIRedis) LPush(key string, value ...interface{}) error

LPush mocks base method.

func (*MockIRedis) LRange

func (m *MockIRedis) LRange(key string, start, stop int64) ([]string, error)

LRange mocks base method.

func (*MockIRedis) LockRedisMutex

func (m *MockIRedis) LockRedisMutex(mutex *redsync.Mutex, tries int) error

LockRedisMutex mocks base method.

func (*MockIRedis) Pipeline

func (m *MockIRedis) Pipeline()

Pipeline mocks base method.

func (*MockIRedis) SAdd

func (m *MockIRedis) SAdd(key string, data ...interface{}) error

SAdd mocks base method.

func (*MockIRedis) SIsMember

func (m *MockIRedis) SIsMember(key string, data interface{}) (bool, error)

SIsMember mocks base method.

func (*MockIRedis) SPop

func (m *MockIRedis) SPop(key string) (string, error)

SPop mocks base method.

func (*MockIRedis) Scan

func (m *MockIRedis) Scan(key string) ([]string, error)

Scan mocks base method.

func (*MockIRedis) Set

func (m *MockIRedis) Set(key string, data interface{}) error

Set mocks base method.

func (*MockIRedis) SetEx

func (m *MockIRedis) SetEx(key string, parameter resources.SetExParameter) error

SetEx mocks base method.

func (*MockIRedis) XDel

func (m *MockIRedis) XDel(stream string, ids ...string) error

XDel mocks base method.

type MockIRedisMockRecorder

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

MockIRedisMockRecorder is the mock recorder for MockIRedis.

func (*MockIRedisMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockIRedisMockRecorder) ConnectRedis

func (mr *MockIRedisMockRecorder) ConnectRedis(ra interface{}) *gomock.Call

ConnectRedis indicates an expected call of ConnectRedis.

func (*MockIRedisMockRecorder) CreateRedisMutex

func (mr *MockIRedisMockRecorder) CreateRedisMutex(key interface{}, options ...interface{}) *gomock.Call

CreateRedisMutex indicates an expected call of CreateRedisMutex.

func (*MockIRedisMockRecorder) CreateRedisync

func (mr *MockIRedisMockRecorder) CreateRedisync() *gomock.Call

CreateRedisync indicates an expected call of CreateRedisync.

func (*MockIRedisMockRecorder) Del

func (mr *MockIRedisMockRecorder) Del(keys ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockIRedisMockRecorder) Get

func (mr *MockIRedisMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIRedisMockRecorder) GetSet

func (mr *MockIRedisMockRecorder) GetSet(key, data interface{}) *gomock.Call

GetSet indicates an expected call of GetSet.

func (*MockIRedisMockRecorder) HDel

func (mr *MockIRedisMockRecorder) HDel(key interface{}, fields ...interface{}) *gomock.Call

HDel indicates an expected call of HDel.

func (*MockIRedisMockRecorder) HGetAll

func (mr *MockIRedisMockRecorder) HGetAll(key interface{}) *gomock.Call

HGetAll indicates an expected call of HGetAll.

func (*MockIRedisMockRecorder) HMGet

func (mr *MockIRedisMockRecorder) HMGet(key interface{}, fields ...interface{}) *gomock.Call

HMGet indicates an expected call of HMGet.

func (*MockIRedisMockRecorder) HMSet

func (mr *MockIRedisMockRecorder) HMSet(key, data interface{}) *gomock.Call

HMSet indicates an expected call of HMSet.

func (*MockIRedisMockRecorder) HMSetEx

func (mr *MockIRedisMockRecorder) HMSetEx(key, parameter interface{}) *gomock.Call

HMSetEx indicates an expected call of HMSetEx.

func (*MockIRedisMockRecorder) JSONDel

func (mr *MockIRedisMockRecorder) JSONDel(key, path interface{}) *gomock.Call

JSONDel indicates an expected call of JSONDel.

func (*MockIRedisMockRecorder) JSONGet

func (mr *MockIRedisMockRecorder) JSONGet(key interface{}) *gomock.Call

JSONGet indicates an expected call of JSONGet.

func (*MockIRedisMockRecorder) JSONMGet

func (mr *MockIRedisMockRecorder) JSONMGet(path interface{}, keys ...interface{}) *gomock.Call

JSONMGet indicates an expected call of JSONMGet.

func (*MockIRedisMockRecorder) JSONSet

func (mr *MockIRedisMockRecorder) JSONSet(key, data interface{}) *gomock.Call

JSONSet indicates an expected call of JSONSet.

func (*MockIRedisMockRecorder) Keys

func (mr *MockIRedisMockRecorder) Keys(pattern interface{}) *gomock.Call

Keys indicates an expected call of Keys.

func (*MockIRedisMockRecorder) LLen

func (mr *MockIRedisMockRecorder) LLen(key interface{}) *gomock.Call

LLen indicates an expected call of LLen.

func (*MockIRedisMockRecorder) LPush

func (mr *MockIRedisMockRecorder) LPush(key interface{}, value ...interface{}) *gomock.Call

LPush indicates an expected call of LPush.

func (*MockIRedisMockRecorder) LRange

func (mr *MockIRedisMockRecorder) LRange(key, start, stop interface{}) *gomock.Call

LRange indicates an expected call of LRange.

func (*MockIRedisMockRecorder) LockRedisMutex

func (mr *MockIRedisMockRecorder) LockRedisMutex(mutex, tries interface{}) *gomock.Call

LockRedisMutex indicates an expected call of LockRedisMutex.

func (*MockIRedisMockRecorder) Pipeline

func (mr *MockIRedisMockRecorder) Pipeline() *gomock.Call

Pipeline indicates an expected call of Pipeline.

func (*MockIRedisMockRecorder) SAdd

func (mr *MockIRedisMockRecorder) SAdd(key interface{}, data ...interface{}) *gomock.Call

SAdd indicates an expected call of SAdd.

func (*MockIRedisMockRecorder) SIsMember

func (mr *MockIRedisMockRecorder) SIsMember(key, data interface{}) *gomock.Call

SIsMember indicates an expected call of SIsMember.

func (*MockIRedisMockRecorder) SPop

func (mr *MockIRedisMockRecorder) SPop(key interface{}) *gomock.Call

SPop indicates an expected call of SPop.

func (*MockIRedisMockRecorder) Scan

func (mr *MockIRedisMockRecorder) Scan(key interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockIRedisMockRecorder) Set

func (mr *MockIRedisMockRecorder) Set(key, data interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockIRedisMockRecorder) SetEx

func (mr *MockIRedisMockRecorder) SetEx(key, parameter interface{}) *gomock.Call

SetEx indicates an expected call of SetEx.

func (*MockIRedisMockRecorder) XDel

func (mr *MockIRedisMockRecorder) XDel(stream interface{}, ids ...interface{}) *gomock.Call

XDel indicates an expected call of XDel.

type MockIRepository

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

MockIRepository is a mock of IRepository interface.

func NewMockIRepository

func NewMockIRepository(ctrl *gomock.Controller) *MockIRepository

NewMockIRepository creates a new mock instance.

func (*MockIRepository) EXPECT

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

func (*MockIRepository) GetAllSongQuotesPostgres

func (m *MockIRepository) GetAllSongQuotesPostgres() ([]models.SongQuote, error)

GetAllSongQuotesPostgres mocks base method.

func (*MockIRepository) GetSongQuoteByIDPostgres

func (m *MockIRepository) GetSongQuoteByIDPostgres(id int64) (*models.SongQuote, error)

GetSongQuoteByIDPostgres mocks base method.

func (*MockIRepository) UpsertSongQuoteRedis

func (m *MockIRepository) UpsertSongQuoteRedis(SongQuote models.SongQuote) error

UpsertSongQuoteRedis mocks base method.

type MockIRepositoryMockRecorder

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

MockIRepositoryMockRecorder is the mock recorder for MockIRepository.

func (*MockIRepositoryMockRecorder) GetAllSongQuotesPostgres

func (mr *MockIRepositoryMockRecorder) GetAllSongQuotesPostgres() *gomock.Call

GetAllSongQuotesPostgres indicates an expected call of GetAllSongQuotesPostgres.

func (*MockIRepositoryMockRecorder) GetSongQuoteByIDPostgres

func (mr *MockIRepositoryMockRecorder) GetSongQuoteByIDPostgres(id interface{}) *gomock.Call

GetSongQuoteByIDPostgres indicates an expected call of GetSongQuoteByIDPostgres.

func (*MockIRepositoryMockRecorder) UpsertSongQuoteRedis

func (mr *MockIRepositoryMockRecorder) UpsertSongQuoteRedis(songQuote interface{}) *gomock.Call

UpsertSongQuoteRedis indicates an expected call of UpsertSongQuoteRedis.

type MockIRows

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

MockIRows is a mock of IRows interface.

func NewMockIRows

func NewMockIRows(ctrl *gomock.Controller) *MockIRows

NewMockIRows creates a new mock instance.

func (*MockIRows) EXPECT

func (m *MockIRows) EXPECT() *MockIRowsMockRecorder

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

func (*MockIRows) MapScan

func (m *MockIRows) MapScan(dest map[string]interface{}) error

MapScan mocks base method.

func (*MockIRows) Next

func (m *MockIRows) Next() bool

Next mocks base method.

func (*MockIRows) SliceScan

func (m *MockIRows) SliceScan() ([]interface{}, error)

SliceScan mocks base method.

func (*MockIRows) StructScan

func (m *MockIRows) StructScan(dest interface{}) error

StructScan mocks base method.

type MockIRowsMockRecorder

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

MockIRowsMockRecorder is the mock recorder for MockIRows.

func (*MockIRowsMockRecorder) MapScan

func (mr *MockIRowsMockRecorder) MapScan(dest interface{}) *gomock.Call

MapScan indicates an expected call of MapScan.

func (*MockIRowsMockRecorder) Next

func (mr *MockIRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockIRowsMockRecorder) SliceScan

func (mr *MockIRowsMockRecorder) SliceScan() *gomock.Call

SliceScan indicates an expected call of SliceScan.

func (*MockIRowsMockRecorder) StructScan

func (mr *MockIRowsMockRecorder) StructScan(dest interface{}) *gomock.Call

StructScan indicates an expected call of StructScan.

type MockIService

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

MockIService is a mock of IService interface.

func NewMockIService

func NewMockIService(ctrl *gomock.Controller) *MockIService

NewMockIService creates a new mock instance.

func (*MockIService) BackfillRedis

func (m *MockIService) BackfillRedis() error

BackfillRedis mocks base method.

func (*MockIService) EXPECT

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

func (*MockIService) GetAllSongData

func (m *MockIService) GetAllSongData() ([]models.SongQuote, int, error)

GetAllSongData mocks base method.

func (*MockIService) GetSongQuoteByID

func (m *MockIService) GetSongQuoteByID(id int64) (*models.SongQuote, int, error)

GetSongQuoteByID mocks base method.

type MockIServiceMockRecorder

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

MockIServiceMockRecorder is the mock recorder for MockIService.

func (*MockIServiceMockRecorder) BackfillRedis

func (mr *MockIServiceMockRecorder) BackfillRedis(songQuote interface{}) *gomock.Call

BackfillRedis indicates an expected call of BackfillRedis.

func (*MockIServiceMockRecorder) GetAllSongData

func (mr *MockIServiceMockRecorder) GetAllSongData() *gomock.Call

GetAllSongData indicates an expected call of GetAllSongData.

func (*MockIServiceMockRecorder) GetSongQuoteByID

func (mr *MockIServiceMockRecorder) GetSongQuoteByID(id interface{}) *gomock.Call

GetSongQuoteByID indicates an expected call of GetSongQuoteByID.

type MockISlack

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

MockISlack is a mock of ISlack interface.

func NewMockISlack

func NewMockISlack(ctrl *gomock.Controller) *MockISlack

NewMockISlack creates a new mock instance.

func (*MockISlack) EXPECT

func (m *MockISlack) EXPECT() *MockISlackMockRecorder

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

func (*MockISlack) New

func (m *MockISlack) New(token string, option ...slack.Option) *slack.Client

New mocks base method.

func (*MockISlack) SendSlack

func (m *MockISlack) SendSlack(channelID string, options ...slack.MsgOption) (string, string, error)

SendSlack mocks base method.

func (*MockISlack) UploadFile

func (m *MockISlack) UploadFile(params slack.FileUploadParameters) (*slack.File, error)

UploadFile mocks base method.

type MockISlackMockRecorder

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

MockISlackMockRecorder is the mock recorder for MockISlack.

func (*MockISlackMockRecorder) New

func (mr *MockISlackMockRecorder) New(token interface{}, option ...interface{}) *gomock.Call

New indicates an expected call of New.

func (*MockISlackMockRecorder) SendSlack

func (mr *MockISlackMockRecorder) SendSlack(channelID interface{}, options ...interface{}) *gomock.Call

SendSlack indicates an expected call of SendSlack.

func (*MockISlackMockRecorder) UploadFile

func (mr *MockISlackMockRecorder) UploadFile(params interface{}) *gomock.Call

UploadFile indicates an expected call of UploadFile.

type MockISlackWebhook

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

MockISlackWebhook is a mock of ISlackWebhook interface.

func NewMockISlackWebhook

func NewMockISlackWebhook(ctrl *gomock.Controller) *MockISlackWebhook

NewMockISlackWebhook creates a new mock instance.

func (*MockISlackWebhook) EXPECT

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

func (*MockISlackWebhook) Send

func (m *MockISlackWebhook) Send(webhookURL, proxy string, payload slack.Payload) []error

Send mocks base method.

func (*MockISlackWebhook) SendWebhook

func (m *MockISlackWebhook) SendWebhook(ctx context.Context, payload slack0.WebhookMessage) error

SendWebhook mocks base method.

type MockISlackWebhookMockRecorder

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

MockISlackWebhookMockRecorder is the mock recorder for MockISlackWebhook.

func (*MockISlackWebhookMockRecorder) Send

func (mr *MockISlackWebhookMockRecorder) Send(webhookURL, proxy, payload interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockISlackWebhookMockRecorder) SendWebhook

func (mr *MockISlackWebhookMockRecorder) SendWebhook(ctx, payload interface{}) *gomock.Call

SendWebhook indicates an expected call of SendWebhook.

Jump to

Keyboard shortcuts

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