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 ¶
- type MockIDBTx
- type MockIDBTxMockRecorder
- type MockIDatabase
- func (m *MockIDatabase) Begin() (interfaces.IDBTx, error)
- func (m *MockIDatabase) BeginTx() (*sqlx.Tx, error)
- func (m *MockIDatabase) Close()
- func (m *MockIDatabase) Commit() error
- func (m *MockIDatabase) ConnectDB(dbAccRead, dbAccWrite *resources.DBAccount)
- func (m *MockIDatabase) DriverName() string
- func (m *MockIDatabase) EXPECT() *MockIDatabaseMockRecorder
- func (m *MockIDatabase) Exec(query string, args ...interface{}) (sql.Result, error)
- func (m *MockIDatabase) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (m *MockIDatabase) Get(dest interface{}, query string, args ...interface{}) error
- func (m *MockIDatabase) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *MockIDatabase) In(query string, params ...interface{}) (string, []interface{}, error)
- func (m *MockIDatabase) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (m *MockIDatabase) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (m *MockIDatabase) QueryRow(query string, args ...interface{}) *sql.Row
- func (m *MockIDatabase) QueryRowSqlx(query string, args ...interface{}) *sqlx.Row
- func (m *MockIDatabase) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
- func (m *MockIDatabase) Rebind(query string) string
- func (m *MockIDatabase) Rollback() error
- func (m *MockIDatabase) Select(dest interface{}, query string, args ...interface{}) error
- func (m *MockIDatabase) TransactionBlock(tx *sqlx.Tx, fc func(*sqlx.Tx) error) error
- type MockIDatabaseMockRecorder
- func (mr *MockIDatabaseMockRecorder) Begin() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) BeginTx() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Commit() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) ConnectDB(dbAccRead, dbAccWrite interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) DriverName() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) In(query interface{}, params ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) QueryRowSqlx(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Queryx(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Rebind(query interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Rollback() *gomock.Call
- func (mr *MockIDatabaseMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockIDatabaseMockRecorder) TransactionBlock(tx, fc interface{}) *gomock.Call
- type MockIDatabaseTx
- type MockIDatabaseTxMockRecorder
- type MockIHTTP
- type MockIHTTPMockRecorder
- type MockIPanicHandler
- func (m *MockIPanicHandler) EXPECT() *MockIPanicHandlerMockRecorder
- func (m *MockIPanicHandler) GetPanicAndSendToSlack(c *gin.Context, serviceName, message string) error
- func (m *MockIPanicHandler) SetPanicResp(c *gin.Context, serviceName, message string) *resources.PanicHandlerResponse
- func (m *MockIPanicHandler) SetPayloadSlack(resp *resources.PanicHandlerResponse) slack.Payload
- type MockIPanicHandlerMockRecorder
- func (mr *MockIPanicHandlerMockRecorder) GetPanicAndSendToSlack(c, serviceName, message interface{}) *gomock.Call
- func (mr *MockIPanicHandlerMockRecorder) SetPanicResp(c, serviceName, message interface{}) *gomock.Call
- func (mr *MockIPanicHandlerMockRecorder) SetPayloadSlack(resp interface{}) *gomock.Call
- type MockIRedis
- func (m *MockIRedis) Close()
- func (m *MockIRedis) ConnectRedis(ra *resources.RedisAccount)
- func (m *MockIRedis) CreateRedisMutex(key string, options ...redsync.Option) *redsync.Mutex
- func (m *MockIRedis) CreateRedisync() *redsync.Redsync
- func (m *MockIRedis) Del(keys ...string) error
- func (m *MockIRedis) EXPECT() *MockIRedisMockRecorder
- func (m *MockIRedis) Get(key string) (string, error)
- func (m *MockIRedis) GetSet(key string, data interface{}) error
- func (m *MockIRedis) HDel(key string, fields ...string) error
- func (m *MockIRedis) HGetAll(key string) (map[string]string, error)
- func (m *MockIRedis) HMGet(key string, fields ...string) ([]interface{}, error)
- func (m *MockIRedis) HMSet(key string, data interface{}) error
- func (m *MockIRedis) HMSetEx(key string, parameter resources.SetExParameter) error
- func (m *MockIRedis) JSONDel(key, path string) (interface{}, error)
- func (m *MockIRedis) JSONGet(key string) (interface{}, error)
- func (m *MockIRedis) JSONMGet(path string, keys ...string) (interface{}, error)
- func (m *MockIRedis) JSONSet(key string, data interface{}) (interface{}, error)
- func (m *MockIRedis) Keys(pattern string) ([]string, error)
- func (m *MockIRedis) LLen(key string) (int64, error)
- func (m *MockIRedis) LPush(key string, value ...interface{}) error
- func (m *MockIRedis) LRange(key string, start, stop int64) ([]string, error)
- func (m *MockIRedis) LockRedisMutex(mutex *redsync.Mutex, tries int) error
- func (m *MockIRedis) Pipeline()
- func (m *MockIRedis) SAdd(key string, data ...interface{}) error
- func (m *MockIRedis) SIsMember(key string, data interface{}) (bool, error)
- func (m *MockIRedis) SPop(key string) (string, error)
- func (m *MockIRedis) Scan(key string) ([]string, error)
- func (m *MockIRedis) Set(key string, data interface{}) error
- func (m *MockIRedis) SetEx(key string, parameter resources.SetExParameter) error
- func (m *MockIRedis) XDel(stream string, ids ...string) error
- type MockIRedisMockRecorder
- func (mr *MockIRedisMockRecorder) Close() *gomock.Call
- func (mr *MockIRedisMockRecorder) ConnectRedis(ra interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) CreateRedisMutex(key interface{}, options ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) CreateRedisync() *gomock.Call
- func (mr *MockIRedisMockRecorder) Del(keys ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GetSet(key, data interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HDel(key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HGetAll(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HMGet(key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HMSet(key, data interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HMSetEx(key, parameter interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) JSONDel(key, path interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) JSONGet(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) JSONMGet(path interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) JSONSet(key, data interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Keys(pattern interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LLen(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LPush(key interface{}, value ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LRange(key, start, stop interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LockRedisMutex(mutex, tries interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Pipeline() *gomock.Call
- func (mr *MockIRedisMockRecorder) SAdd(key interface{}, data ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SIsMember(key, data interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SPop(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Scan(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Set(key, data interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SetEx(key, parameter interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) XDel(stream interface{}, ids ...interface{}) *gomock.Call
- type MockIRepository
- func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
- func (m *MockIRepository) GetAllSongQuotesPostgres() ([]models.SongQuote, error)
- func (m *MockIRepository) GetSongQuoteByIDPostgres(id int64) (*models.SongQuote, error)
- func (m *MockIRepository) UpsertSongQuoteRedis(SongQuote models.SongQuote) error
- type MockIRepositoryMockRecorder
- type MockIRows
- type MockIRowsMockRecorder
- type MockIService
- type MockIServiceMockRecorder
- type MockISlack
- func (m *MockISlack) EXPECT() *MockISlackMockRecorder
- func (m *MockISlack) New(token string, option ...slack.Option) *slack.Client
- func (m *MockISlack) SendSlack(channelID string, options ...slack.MsgOption) (string, string, error)
- func (m *MockISlack) UploadFile(params slack.FileUploadParameters) (*slack.File, error)
- type MockISlackMockRecorder
- type MockISlackWebhook
- type MockISlackWebhookMockRecorder
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) EXPECT ¶
func (m *MockIDBTx) EXPECT() *MockIDBTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) 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 ¶
func (m *MockIDatabase) EXPECT() *MockIDatabaseMockRecorder
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 ¶
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 ¶
func (m *MockIDatabaseTx) EXPECT() *MockIDatabaseTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIDatabaseTx) TransactionBlock ¶
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 ¶
func (m *MockIPanicHandler) EXPECT() *MockIPanicHandlerMockRecorder
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) ConnectRedis ¶
func (m *MockIRedis) ConnectRedis(ra *resources.RedisAccount)
ConnectRedis mocks base method.
func (*MockIRedis) CreateRedisMutex ¶
CreateRedisMutex mocks base method.
func (*MockIRedis) CreateRedisync ¶
func (m *MockIRedis) CreateRedisync() *redsync.Redsync
CreateRedisync 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) 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.
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 ¶
func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
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) StructScan ¶
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 ¶
func (m *MockIService) EXPECT() *MockIServiceMockRecorder
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 ¶
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) 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 ¶
func (m *MockISlackWebhook) EXPECT() *MockISlackWebhookMockRecorder
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.