Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeClient
- func (fake *FakeClient) AddUniqueIndex(arg1 string, arg2 ...string) (db.Client, error)
- func (fake *FakeClient) AddUniqueIndexArgsForCall(i int) (string, []string)
- func (fake *FakeClient) AddUniqueIndexCallCount() int
- func (fake *FakeClient) AddUniqueIndexCalls(stub func(string, ...string) (db.Client, error))
- func (fake *FakeClient) AddUniqueIndexReturns(result1 db.Client, result2 error)
- func (fake *FakeClient) AddUniqueIndexReturnsOnCall(i int, result1 db.Client, result2 error)
- func (fake *FakeClient) AutoMigrate(arg1 ...interface{}) error
- func (fake *FakeClient) AutoMigrateArgsForCall(i int) []interface{}
- func (fake *FakeClient) AutoMigrateCallCount() int
- func (fake *FakeClient) AutoMigrateCalls(stub func(...interface{}) error)
- func (fake *FakeClient) AutoMigrateReturns(result1 error)
- func (fake *FakeClient) AutoMigrateReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Begin() db.Client
- func (fake *FakeClient) BeginCallCount() int
- func (fake *FakeClient) BeginCalls(stub func() db.Client)
- func (fake *FakeClient) BeginReturns(result1 db.Client)
- func (fake *FakeClient) BeginReturnsOnCall(i int, result1 db.Client)
- func (fake *FakeClient) Close() error
- func (fake *FakeClient) CloseCallCount() int
- func (fake *FakeClient) CloseCalls(stub func() error)
- func (fake *FakeClient) CloseReturns(result1 error)
- func (fake *FakeClient) CloseReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Commit() error
- func (fake *FakeClient) CommitCallCount() int
- func (fake *FakeClient) CommitCalls(stub func() error)
- func (fake *FakeClient) CommitReturns(result1 error)
- func (fake *FakeClient) CommitReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Create(arg1 interface{}) (int64, error)
- func (fake *FakeClient) CreateArgsForCall(i int) interface{}
- func (fake *FakeClient) CreateCallCount() int
- func (fake *FakeClient) CreateCalls(stub func(interface{}) (int64, error))
- func (fake *FakeClient) CreateReturns(result1 int64, result2 error)
- func (fake *FakeClient) CreateReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *FakeClient) Delete(arg1 interface{}, arg2 ...interface{}) (int64, error)
- func (fake *FakeClient) DeleteArgsForCall(i int) (interface{}, []interface{})
- func (fake *FakeClient) DeleteCallCount() int
- func (fake *FakeClient) DeleteCalls(stub func(interface{}, ...interface{}) (int64, error))
- func (fake *FakeClient) DeleteReturns(result1 int64, result2 error)
- func (fake *FakeClient) DeleteReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *FakeClient) Dialect() gorm.Dialect
- func (fake *FakeClient) DialectCallCount() int
- func (fake *FakeClient) DialectCalls(stub func() gorm.Dialect)
- func (fake *FakeClient) DialectReturns(result1 gorm.Dialect)
- func (fake *FakeClient) DialectReturnsOnCall(i int, result1 gorm.Dialect)
- func (fake *FakeClient) DropColumn(arg1 string) error
- func (fake *FakeClient) DropColumnArgsForCall(i int) string
- func (fake *FakeClient) DropColumnCallCount() int
- func (fake *FakeClient) DropColumnCalls(stub func(string) error)
- func (fake *FakeClient) DropColumnReturns(result1 error)
- func (fake *FakeClient) DropColumnReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Exec(arg1 string, arg2 ...interface{}) int64
- func (fake *FakeClient) ExecArgsForCall(i int) (string, []interface{})
- func (fake *FakeClient) ExecCallCount() int
- func (fake *FakeClient) ExecCalls(stub func(string, ...interface{}) int64)
- func (fake *FakeClient) ExecReturns(result1 int64)
- func (fake *FakeClient) ExecReturnsOnCall(i int, result1 int64)
- func (fake *FakeClient) Find(arg1 interface{}, arg2 ...interface{}) error
- func (fake *FakeClient) FindArgsForCall(i int) (interface{}, []interface{})
- func (fake *FakeClient) FindCallCount() int
- func (fake *FakeClient) FindCalls(stub func(interface{}, ...interface{}) error)
- func (fake *FakeClient) FindReturns(result1 error)
- func (fake *FakeClient) FindReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) First(arg1 interface{}, arg2 ...interface{}) error
- func (fake *FakeClient) FirstArgsForCall(i int) (interface{}, []interface{})
- func (fake *FakeClient) FirstCallCount() int
- func (fake *FakeClient) FirstCalls(stub func(interface{}, ...interface{}) error)
- func (fake *FakeClient) FirstReturns(result1 error)
- func (fake *FakeClient) FirstReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) HasTable(arg1 interface{}) bool
- func (fake *FakeClient) HasTableArgsForCall(i int) interface{}
- func (fake *FakeClient) HasTableCallCount() int
- func (fake *FakeClient) HasTableCalls(stub func(interface{}) bool)
- func (fake *FakeClient) HasTableReturns(result1 bool)
- func (fake *FakeClient) HasTableReturnsOnCall(i int, result1 bool)
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- func (fake *FakeClient) Model(arg1 interface{}) db.Client
- func (fake *FakeClient) ModelArgsForCall(i int) interface{}
- func (fake *FakeClient) ModelCallCount() int
- func (fake *FakeClient) ModelCalls(stub func(interface{}) db.Client)
- func (fake *FakeClient) ModelReturns(result1 db.Client)
- func (fake *FakeClient) ModelReturnsOnCall(i int, result1 db.Client)
- func (fake *FakeClient) RemoveIndex(arg1 string) (db.Client, error)
- func (fake *FakeClient) RemoveIndexArgsForCall(i int) string
- func (fake *FakeClient) RemoveIndexCallCount() int
- func (fake *FakeClient) RemoveIndexCalls(stub func(string) (db.Client, error))
- func (fake *FakeClient) RemoveIndexReturns(result1 db.Client, result2 error)
- func (fake *FakeClient) RemoveIndexReturnsOnCall(i int, result1 db.Client, result2 error)
- func (fake *FakeClient) Rollback() error
- func (fake *FakeClient) RollbackCallCount() int
- func (fake *FakeClient) RollbackCalls(stub func() error)
- func (fake *FakeClient) RollbackReturns(result1 error)
- func (fake *FakeClient) RollbackReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Rows(arg1 string) (*sql.Rows, error)
- func (fake *FakeClient) RowsArgsForCall(i int) string
- func (fake *FakeClient) RowsCallCount() int
- func (fake *FakeClient) RowsCalls(stub func(string) (*sql.Rows, error))
- func (fake *FakeClient) RowsReturns(result1 *sql.Rows, result2 error)
- func (fake *FakeClient) RowsReturnsOnCall(i int, result1 *sql.Rows, result2 error)
- func (fake *FakeClient) Save(arg1 interface{}) (int64, error)
- func (fake *FakeClient) SaveArgsForCall(i int) interface{}
- func (fake *FakeClient) SaveCallCount() int
- func (fake *FakeClient) SaveCalls(stub func(interface{}) (int64, error))
- func (fake *FakeClient) SaveReturns(result1 int64, result2 error)
- func (fake *FakeClient) SaveReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *FakeClient) Update(arg1 ...interface{}) (int64, error)
- func (fake *FakeClient) UpdateArgsForCall(i int) []interface{}
- func (fake *FakeClient) UpdateCallCount() int
- func (fake *FakeClient) UpdateCalls(stub func(...interface{}) (int64, error))
- func (fake *FakeClient) UpdateReturns(result1 int64, result2 error)
- func (fake *FakeClient) UpdateReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *FakeClient) Where(arg1 interface{}, arg2 ...interface{}) db.Client
- func (fake *FakeClient) WhereArgsForCall(i int) (interface{}, []interface{})
- func (fake *FakeClient) WhereCallCount() int
- func (fake *FakeClient) WhereCalls(stub func(interface{}, ...interface{}) db.Client)
- func (fake *FakeClient) WhereReturns(result1 db.Client)
- func (fake *FakeClient) WhereReturnsOnCall(i int, result1 db.Client)
- type FakeDB
- func (fake *FakeDB) CancelWatches()
- func (fake *FakeDB) CancelWatchesCallCount() int
- func (fake *FakeDB) CancelWatchesCalls(stub func())
- func (fake *FakeDB) DeleteRoute(arg1 models.Route) error
- func (fake *FakeDB) DeleteRouteArgsForCall(i int) models.Route
- func (fake *FakeDB) DeleteRouteCallCount() int
- func (fake *FakeDB) DeleteRouteCalls(stub func(models.Route) error)
- func (fake *FakeDB) DeleteRouteReturns(result1 error)
- func (fake *FakeDB) DeleteRouteReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) DeleteRouterGroup(arg1 string) error
- func (fake *FakeDB) DeleteRouterGroupArgsForCall(i int) string
- func (fake *FakeDB) DeleteRouterGroupCallCount() int
- func (fake *FakeDB) DeleteRouterGroupCalls(stub func(string) error)
- func (fake *FakeDB) DeleteRouterGroupReturns(result1 error)
- func (fake *FakeDB) DeleteRouterGroupReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) DeleteTcpRouteMapping(arg1 models.TcpRouteMapping) error
- func (fake *FakeDB) DeleteTcpRouteMappingArgsForCall(i int) models.TcpRouteMapping
- func (fake *FakeDB) DeleteTcpRouteMappingCallCount() int
- func (fake *FakeDB) DeleteTcpRouteMappingCalls(stub func(models.TcpRouteMapping) error)
- func (fake *FakeDB) DeleteTcpRouteMappingReturns(result1 error)
- func (fake *FakeDB) DeleteTcpRouteMappingReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) Invocations() map[string][][]interface{}
- func (fake *FakeDB) LockRouterGroupReads()
- func (fake *FakeDB) LockRouterGroupReadsCallCount() int
- func (fake *FakeDB) LockRouterGroupReadsCalls(stub func())
- func (fake *FakeDB) LockRouterGroupWrites()
- func (fake *FakeDB) LockRouterGroupWritesCallCount() int
- func (fake *FakeDB) LockRouterGroupWritesCalls(stub func())
- func (fake *FakeDB) ReadFilteredTcpRouteMappings(arg1 string, arg2 []string) ([]models.TcpRouteMapping, error)
- func (fake *FakeDB) ReadFilteredTcpRouteMappingsArgsForCall(i int) (string, []string)
- func (fake *FakeDB) ReadFilteredTcpRouteMappingsCallCount() int
- func (fake *FakeDB) ReadFilteredTcpRouteMappingsCalls(stub func(string, []string) ([]models.TcpRouteMapping, error))
- func (fake *FakeDB) ReadFilteredTcpRouteMappingsReturns(result1 []models.TcpRouteMapping, result2 error)
- func (fake *FakeDB) ReadFilteredTcpRouteMappingsReturnsOnCall(i int, result1 []models.TcpRouteMapping, result2 error)
- func (fake *FakeDB) ReadRouterGroup(arg1 string) (models.RouterGroup, error)
- func (fake *FakeDB) ReadRouterGroupArgsForCall(i int) string
- func (fake *FakeDB) ReadRouterGroupByName(arg1 string) (models.RouterGroup, error)
- func (fake *FakeDB) ReadRouterGroupByNameArgsForCall(i int) string
- func (fake *FakeDB) ReadRouterGroupByNameCallCount() int
- func (fake *FakeDB) ReadRouterGroupByNameCalls(stub func(string) (models.RouterGroup, error))
- func (fake *FakeDB) ReadRouterGroupByNameReturns(result1 models.RouterGroup, result2 error)
- func (fake *FakeDB) ReadRouterGroupByNameReturnsOnCall(i int, result1 models.RouterGroup, result2 error)
- func (fake *FakeDB) ReadRouterGroupCallCount() int
- func (fake *FakeDB) ReadRouterGroupCalls(stub func(string) (models.RouterGroup, error))
- func (fake *FakeDB) ReadRouterGroupReturns(result1 models.RouterGroup, result2 error)
- func (fake *FakeDB) ReadRouterGroupReturnsOnCall(i int, result1 models.RouterGroup, result2 error)
- func (fake *FakeDB) ReadRouterGroups() (models.RouterGroups, error)
- func (fake *FakeDB) ReadRouterGroupsCallCount() int
- func (fake *FakeDB) ReadRouterGroupsCalls(stub func() (models.RouterGroups, error))
- func (fake *FakeDB) ReadRouterGroupsReturns(result1 models.RouterGroups, result2 error)
- func (fake *FakeDB) ReadRouterGroupsReturnsOnCall(i int, result1 models.RouterGroups, result2 error)
- func (fake *FakeDB) ReadRoutes() ([]models.Route, error)
- func (fake *FakeDB) ReadRoutesCallCount() int
- func (fake *FakeDB) ReadRoutesCalls(stub func() ([]models.Route, error))
- func (fake *FakeDB) ReadRoutesReturns(result1 []models.Route, result2 error)
- func (fake *FakeDB) ReadRoutesReturnsOnCall(i int, result1 []models.Route, result2 error)
- func (fake *FakeDB) ReadTcpRouteMappings() ([]models.TcpRouteMapping, error)
- func (fake *FakeDB) ReadTcpRouteMappingsCallCount() int
- func (fake *FakeDB) ReadTcpRouteMappingsCalls(stub func() ([]models.TcpRouteMapping, error))
- func (fake *FakeDB) ReadTcpRouteMappingsReturns(result1 []models.TcpRouteMapping, result2 error)
- func (fake *FakeDB) ReadTcpRouteMappingsReturnsOnCall(i int, result1 []models.TcpRouteMapping, result2 error)
- func (fake *FakeDB) SaveRoute(arg1 models.Route) error
- func (fake *FakeDB) SaveRouteArgsForCall(i int) models.Route
- func (fake *FakeDB) SaveRouteCallCount() int
- func (fake *FakeDB) SaveRouteCalls(stub func(models.Route) error)
- func (fake *FakeDB) SaveRouteReturns(result1 error)
- func (fake *FakeDB) SaveRouteReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) SaveRouterGroup(arg1 models.RouterGroup) error
- func (fake *FakeDB) SaveRouterGroupArgsForCall(i int) models.RouterGroup
- func (fake *FakeDB) SaveRouterGroupCallCount() int
- func (fake *FakeDB) SaveRouterGroupCalls(stub func(models.RouterGroup) error)
- func (fake *FakeDB) SaveRouterGroupReturns(result1 error)
- func (fake *FakeDB) SaveRouterGroupReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) SaveTcpRouteMapping(arg1 models.TcpRouteMapping) error
- func (fake *FakeDB) SaveTcpRouteMappingArgsForCall(i int) models.TcpRouteMapping
- func (fake *FakeDB) SaveTcpRouteMappingCallCount() int
- func (fake *FakeDB) SaveTcpRouteMappingCalls(stub func(models.TcpRouteMapping) error)
- func (fake *FakeDB) SaveTcpRouteMappingReturns(result1 error)
- func (fake *FakeDB) SaveTcpRouteMappingReturnsOnCall(i int, result1 error)
- func (fake *FakeDB) UnlockRouterGroupReads()
- func (fake *FakeDB) UnlockRouterGroupReadsCallCount() int
- func (fake *FakeDB) UnlockRouterGroupReadsCalls(stub func())
- func (fake *FakeDB) UnlockRouterGroupWrites()
- func (fake *FakeDB) UnlockRouterGroupWritesCallCount() int
- func (fake *FakeDB) UnlockRouterGroupWritesCalls(stub func())
- func (fake *FakeDB) WatchChanges(arg1 string) (<-chan db.Event, <-chan error, context.CancelFunc)
- func (fake *FakeDB) WatchChangesArgsForCall(i int) string
- func (fake *FakeDB) WatchChangesCallCount() int
- func (fake *FakeDB) WatchChangesCalls(stub func(string) (<-chan db.Event, <-chan error, context.CancelFunc))
- func (fake *FakeDB) WatchChangesReturns(result1 <-chan db.Event, result2 <-chan error, result3 context.CancelFunc)
- func (fake *FakeDB) WatchChangesReturnsOnCall(i int, result1 <-chan db.Event, result2 <-chan error, ...)
- type MySQLAdapter
- func (fake *MySQLAdapter) Invocations() map[string][][]interface{}
- func (fake *MySQLAdapter) RegisterTLSConfig(arg1 string, arg2 *tls.Config) error
- func (fake *MySQLAdapter) RegisterTLSConfigArgsForCall(i int) (string, *tls.Config)
- func (fake *MySQLAdapter) RegisterTLSConfigCallCount() int
- func (fake *MySQLAdapter) RegisterTLSConfigCalls(stub func(string, *tls.Config) error)
- func (fake *MySQLAdapter) RegisterTLSConfigReturns(result1 error)
- func (fake *MySQLAdapter) RegisterTLSConfigReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { AddUniqueIndexStub func(string, ...string) (db.Client, error) AutoMigrateStub func(...interface{}) error BeginStub func() db.Client CloseStub func() error CommitStub func() error CreateStub func(interface{}) (int64, error) DeleteStub func(interface{}, ...interface{}) (int64, error) DialectStub func() gorm.Dialect DropColumnStub func(string) error ExecStub func(string, ...interface{}) int64 FindStub func(interface{}, ...interface{}) error FirstStub func(interface{}, ...interface{}) error HasTableStub func(interface{}) bool ModelStub func(interface{}) db.Client RemoveIndexStub func(string) (db.Client, error) RollbackStub func() error RowsStub func(string) (*sql.Rows, error) SaveStub func(interface{}) (int64, error) UpdateStub func(...interface{}) (int64, error) WhereStub func(interface{}, ...interface{}) db.Client // contains filtered or unexported fields }
func (*FakeClient) AddUniqueIndex ¶
func (*FakeClient) AddUniqueIndexArgsForCall ¶
func (fake *FakeClient) AddUniqueIndexArgsForCall(i int) (string, []string)
func (*FakeClient) AddUniqueIndexCallCount ¶
func (fake *FakeClient) AddUniqueIndexCallCount() int
func (*FakeClient) AddUniqueIndexCalls ¶
func (*FakeClient) AddUniqueIndexReturns ¶
func (fake *FakeClient) AddUniqueIndexReturns(result1 db.Client, result2 error)
func (*FakeClient) AddUniqueIndexReturnsOnCall ¶
func (fake *FakeClient) AddUniqueIndexReturnsOnCall(i int, result1 db.Client, result2 error)
func (*FakeClient) AutoMigrate ¶
func (fake *FakeClient) AutoMigrate(arg1 ...interface{}) error
func (*FakeClient) AutoMigrateArgsForCall ¶
func (fake *FakeClient) AutoMigrateArgsForCall(i int) []interface{}
func (*FakeClient) AutoMigrateCallCount ¶
func (fake *FakeClient) AutoMigrateCallCount() int
func (*FakeClient) AutoMigrateCalls ¶
func (fake *FakeClient) AutoMigrateCalls(stub func(...interface{}) error)
func (*FakeClient) AutoMigrateReturns ¶
func (fake *FakeClient) AutoMigrateReturns(result1 error)
func (*FakeClient) AutoMigrateReturnsOnCall ¶
func (fake *FakeClient) AutoMigrateReturnsOnCall(i int, result1 error)
func (*FakeClient) Begin ¶
func (fake *FakeClient) Begin() db.Client
func (*FakeClient) BeginCallCount ¶
func (fake *FakeClient) BeginCallCount() int
func (*FakeClient) BeginCalls ¶
func (fake *FakeClient) BeginCalls(stub func() db.Client)
func (*FakeClient) BeginReturns ¶
func (fake *FakeClient) BeginReturns(result1 db.Client)
func (*FakeClient) BeginReturnsOnCall ¶
func (fake *FakeClient) BeginReturnsOnCall(i int, result1 db.Client)
func (*FakeClient) Close ¶
func (fake *FakeClient) Close() error
func (*FakeClient) CloseCallCount ¶
func (fake *FakeClient) CloseCallCount() int
func (*FakeClient) CloseCalls ¶
func (fake *FakeClient) CloseCalls(stub func() error)
func (*FakeClient) CloseReturns ¶
func (fake *FakeClient) CloseReturns(result1 error)
func (*FakeClient) CloseReturnsOnCall ¶
func (fake *FakeClient) CloseReturnsOnCall(i int, result1 error)
func (*FakeClient) Commit ¶
func (fake *FakeClient) Commit() error
func (*FakeClient) CommitCallCount ¶
func (fake *FakeClient) CommitCallCount() int
func (*FakeClient) CommitCalls ¶
func (fake *FakeClient) CommitCalls(stub func() error)
func (*FakeClient) CommitReturns ¶
func (fake *FakeClient) CommitReturns(result1 error)
func (*FakeClient) CommitReturnsOnCall ¶
func (fake *FakeClient) CommitReturnsOnCall(i int, result1 error)
func (*FakeClient) Create ¶
func (fake *FakeClient) Create(arg1 interface{}) (int64, error)
func (*FakeClient) CreateArgsForCall ¶
func (fake *FakeClient) CreateArgsForCall(i int) interface{}
func (*FakeClient) CreateCallCount ¶
func (fake *FakeClient) CreateCallCount() int
func (*FakeClient) CreateCalls ¶
func (fake *FakeClient) CreateCalls(stub func(interface{}) (int64, error))
func (*FakeClient) CreateReturns ¶
func (fake *FakeClient) CreateReturns(result1 int64, result2 error)
func (*FakeClient) CreateReturnsOnCall ¶
func (fake *FakeClient) CreateReturnsOnCall(i int, result1 int64, result2 error)
func (*FakeClient) Delete ¶
func (fake *FakeClient) Delete(arg1 interface{}, arg2 ...interface{}) (int64, error)
func (*FakeClient) DeleteArgsForCall ¶
func (fake *FakeClient) DeleteArgsForCall(i int) (interface{}, []interface{})
func (*FakeClient) DeleteCallCount ¶
func (fake *FakeClient) DeleteCallCount() int
func (*FakeClient) DeleteCalls ¶
func (fake *FakeClient) DeleteCalls(stub func(interface{}, ...interface{}) (int64, error))
func (*FakeClient) DeleteReturns ¶
func (fake *FakeClient) DeleteReturns(result1 int64, result2 error)
func (*FakeClient) DeleteReturnsOnCall ¶
func (fake *FakeClient) DeleteReturnsOnCall(i int, result1 int64, result2 error)
func (*FakeClient) Dialect ¶
func (fake *FakeClient) Dialect() gorm.Dialect
func (*FakeClient) DialectCallCount ¶
func (fake *FakeClient) DialectCallCount() int
func (*FakeClient) DialectCalls ¶
func (fake *FakeClient) DialectCalls(stub func() gorm.Dialect)
func (*FakeClient) DialectReturns ¶
func (fake *FakeClient) DialectReturns(result1 gorm.Dialect)
func (*FakeClient) DialectReturnsOnCall ¶
func (fake *FakeClient) DialectReturnsOnCall(i int, result1 gorm.Dialect)
func (*FakeClient) DropColumn ¶
func (fake *FakeClient) DropColumn(arg1 string) error
func (*FakeClient) DropColumnArgsForCall ¶
func (fake *FakeClient) DropColumnArgsForCall(i int) string
func (*FakeClient) DropColumnCallCount ¶
func (fake *FakeClient) DropColumnCallCount() int
func (*FakeClient) DropColumnCalls ¶
func (fake *FakeClient) DropColumnCalls(stub func(string) error)
func (*FakeClient) DropColumnReturns ¶
func (fake *FakeClient) DropColumnReturns(result1 error)
func (*FakeClient) DropColumnReturnsOnCall ¶
func (fake *FakeClient) DropColumnReturnsOnCall(i int, result1 error)
func (*FakeClient) Exec ¶
func (fake *FakeClient) Exec(arg1 string, arg2 ...interface{}) int64
func (*FakeClient) ExecArgsForCall ¶
func (fake *FakeClient) ExecArgsForCall(i int) (string, []interface{})
func (*FakeClient) ExecCallCount ¶
func (fake *FakeClient) ExecCallCount() int
func (*FakeClient) ExecCalls ¶
func (fake *FakeClient) ExecCalls(stub func(string, ...interface{}) int64)
func (*FakeClient) ExecReturns ¶
func (fake *FakeClient) ExecReturns(result1 int64)
func (*FakeClient) ExecReturnsOnCall ¶
func (fake *FakeClient) ExecReturnsOnCall(i int, result1 int64)
func (*FakeClient) Find ¶
func (fake *FakeClient) Find(arg1 interface{}, arg2 ...interface{}) error
func (*FakeClient) FindArgsForCall ¶
func (fake *FakeClient) FindArgsForCall(i int) (interface{}, []interface{})
func (*FakeClient) FindCallCount ¶
func (fake *FakeClient) FindCallCount() int
func (*FakeClient) FindCalls ¶
func (fake *FakeClient) FindCalls(stub func(interface{}, ...interface{}) error)
func (*FakeClient) FindReturns ¶
func (fake *FakeClient) FindReturns(result1 error)
func (*FakeClient) FindReturnsOnCall ¶
func (fake *FakeClient) FindReturnsOnCall(i int, result1 error)
func (*FakeClient) First ¶
func (fake *FakeClient) First(arg1 interface{}, arg2 ...interface{}) error
func (*FakeClient) FirstArgsForCall ¶
func (fake *FakeClient) FirstArgsForCall(i int) (interface{}, []interface{})
func (*FakeClient) FirstCallCount ¶
func (fake *FakeClient) FirstCallCount() int
func (*FakeClient) FirstCalls ¶
func (fake *FakeClient) FirstCalls(stub func(interface{}, ...interface{}) error)
func (*FakeClient) FirstReturns ¶
func (fake *FakeClient) FirstReturns(result1 error)
func (*FakeClient) FirstReturnsOnCall ¶
func (fake *FakeClient) FirstReturnsOnCall(i int, result1 error)
func (*FakeClient) HasTable ¶
func (fake *FakeClient) HasTable(arg1 interface{}) bool
func (*FakeClient) HasTableArgsForCall ¶
func (fake *FakeClient) HasTableArgsForCall(i int) interface{}
func (*FakeClient) HasTableCallCount ¶
func (fake *FakeClient) HasTableCallCount() int
func (*FakeClient) HasTableCalls ¶
func (fake *FakeClient) HasTableCalls(stub func(interface{}) bool)
func (*FakeClient) HasTableReturns ¶
func (fake *FakeClient) HasTableReturns(result1 bool)
func (*FakeClient) HasTableReturnsOnCall ¶
func (fake *FakeClient) HasTableReturnsOnCall(i int, result1 bool)
func (*FakeClient) Invocations ¶
func (fake *FakeClient) Invocations() map[string][][]interface{}
func (*FakeClient) Model ¶
func (fake *FakeClient) Model(arg1 interface{}) db.Client
func (*FakeClient) ModelArgsForCall ¶
func (fake *FakeClient) ModelArgsForCall(i int) interface{}
func (*FakeClient) ModelCallCount ¶
func (fake *FakeClient) ModelCallCount() int
func (*FakeClient) ModelCalls ¶
func (fake *FakeClient) ModelCalls(stub func(interface{}) db.Client)
func (*FakeClient) ModelReturns ¶
func (fake *FakeClient) ModelReturns(result1 db.Client)
func (*FakeClient) ModelReturnsOnCall ¶
func (fake *FakeClient) ModelReturnsOnCall(i int, result1 db.Client)
func (*FakeClient) RemoveIndex ¶
func (fake *FakeClient) RemoveIndex(arg1 string) (db.Client, error)
func (*FakeClient) RemoveIndexArgsForCall ¶
func (fake *FakeClient) RemoveIndexArgsForCall(i int) string
func (*FakeClient) RemoveIndexCallCount ¶
func (fake *FakeClient) RemoveIndexCallCount() int
func (*FakeClient) RemoveIndexCalls ¶
func (fake *FakeClient) RemoveIndexCalls(stub func(string) (db.Client, error))
func (*FakeClient) RemoveIndexReturns ¶
func (fake *FakeClient) RemoveIndexReturns(result1 db.Client, result2 error)
func (*FakeClient) RemoveIndexReturnsOnCall ¶
func (fake *FakeClient) RemoveIndexReturnsOnCall(i int, result1 db.Client, result2 error)
func (*FakeClient) Rollback ¶
func (fake *FakeClient) Rollback() error
func (*FakeClient) RollbackCallCount ¶
func (fake *FakeClient) RollbackCallCount() int
func (*FakeClient) RollbackCalls ¶
func (fake *FakeClient) RollbackCalls(stub func() error)
func (*FakeClient) RollbackReturns ¶
func (fake *FakeClient) RollbackReturns(result1 error)
func (*FakeClient) RollbackReturnsOnCall ¶
func (fake *FakeClient) RollbackReturnsOnCall(i int, result1 error)
func (*FakeClient) RowsArgsForCall ¶
func (fake *FakeClient) RowsArgsForCall(i int) string
func (*FakeClient) RowsCallCount ¶
func (fake *FakeClient) RowsCallCount() int
func (*FakeClient) RowsCalls ¶
func (fake *FakeClient) RowsCalls(stub func(string) (*sql.Rows, error))
func (*FakeClient) RowsReturns ¶
func (fake *FakeClient) RowsReturns(result1 *sql.Rows, result2 error)
func (*FakeClient) RowsReturnsOnCall ¶
func (fake *FakeClient) RowsReturnsOnCall(i int, result1 *sql.Rows, result2 error)
func (*FakeClient) Save ¶
func (fake *FakeClient) Save(arg1 interface{}) (int64, error)
func (*FakeClient) SaveArgsForCall ¶
func (fake *FakeClient) SaveArgsForCall(i int) interface{}
func (*FakeClient) SaveCallCount ¶
func (fake *FakeClient) SaveCallCount() int
func (*FakeClient) SaveCalls ¶
func (fake *FakeClient) SaveCalls(stub func(interface{}) (int64, error))
func (*FakeClient) SaveReturns ¶
func (fake *FakeClient) SaveReturns(result1 int64, result2 error)
func (*FakeClient) SaveReturnsOnCall ¶
func (fake *FakeClient) SaveReturnsOnCall(i int, result1 int64, result2 error)
func (*FakeClient) Update ¶
func (fake *FakeClient) Update(arg1 ...interface{}) (int64, error)
func (*FakeClient) UpdateArgsForCall ¶
func (fake *FakeClient) UpdateArgsForCall(i int) []interface{}
func (*FakeClient) UpdateCallCount ¶
func (fake *FakeClient) UpdateCallCount() int
func (*FakeClient) UpdateCalls ¶
func (fake *FakeClient) UpdateCalls(stub func(...interface{}) (int64, error))
func (*FakeClient) UpdateReturns ¶
func (fake *FakeClient) UpdateReturns(result1 int64, result2 error)
func (*FakeClient) UpdateReturnsOnCall ¶
func (fake *FakeClient) UpdateReturnsOnCall(i int, result1 int64, result2 error)
func (*FakeClient) Where ¶
func (fake *FakeClient) Where(arg1 interface{}, arg2 ...interface{}) db.Client
func (*FakeClient) WhereArgsForCall ¶
func (fake *FakeClient) WhereArgsForCall(i int) (interface{}, []interface{})
func (*FakeClient) WhereCallCount ¶
func (fake *FakeClient) WhereCallCount() int
func (*FakeClient) WhereCalls ¶
func (fake *FakeClient) WhereCalls(stub func(interface{}, ...interface{}) db.Client)
func (*FakeClient) WhereReturns ¶
func (fake *FakeClient) WhereReturns(result1 db.Client)
func (*FakeClient) WhereReturnsOnCall ¶
func (fake *FakeClient) WhereReturnsOnCall(i int, result1 db.Client)
type FakeDB ¶
type FakeDB struct { CancelWatchesStub func() DeleteRouteStub func(models.Route) error DeleteRouterGroupStub func(string) error DeleteTcpRouteMappingStub func(models.TcpRouteMapping) error LockRouterGroupReadsStub func() LockRouterGroupWritesStub func() ReadFilteredTcpRouteMappingsStub func(string, []string) ([]models.TcpRouteMapping, error) ReadRouterGroupStub func(string) (models.RouterGroup, error) ReadRouterGroupByNameStub func(string) (models.RouterGroup, error) ReadRouterGroupsStub func() (models.RouterGroups, error) ReadRoutesStub func() ([]models.Route, error) ReadTcpRouteMappingsStub func() ([]models.TcpRouteMapping, error) SaveRouteStub func(models.Route) error SaveRouterGroupStub func(models.RouterGroup) error SaveTcpRouteMappingStub func(models.TcpRouteMapping) error UnlockRouterGroupReadsStub func() UnlockRouterGroupWritesStub func() WatchChangesStub func(string) (<-chan db.Event, <-chan error, context.CancelFunc) // contains filtered or unexported fields }
func (*FakeDB) CancelWatches ¶
func (fake *FakeDB) CancelWatches()
func (*FakeDB) CancelWatchesCallCount ¶
func (*FakeDB) CancelWatchesCalls ¶
func (fake *FakeDB) CancelWatchesCalls(stub func())
func (*FakeDB) DeleteRouteArgsForCall ¶
func (*FakeDB) DeleteRouteCallCount ¶
func (*FakeDB) DeleteRouteCalls ¶
func (*FakeDB) DeleteRouteReturns ¶
func (*FakeDB) DeleteRouteReturnsOnCall ¶
func (*FakeDB) DeleteRouterGroup ¶
func (*FakeDB) DeleteRouterGroupArgsForCall ¶
func (*FakeDB) DeleteRouterGroupCallCount ¶
func (*FakeDB) DeleteRouterGroupCalls ¶
func (*FakeDB) DeleteRouterGroupReturns ¶
func (*FakeDB) DeleteRouterGroupReturnsOnCall ¶
func (*FakeDB) DeleteTcpRouteMapping ¶
func (fake *FakeDB) DeleteTcpRouteMapping(arg1 models.TcpRouteMapping) error
func (*FakeDB) DeleteTcpRouteMappingArgsForCall ¶
func (fake *FakeDB) DeleteTcpRouteMappingArgsForCall(i int) models.TcpRouteMapping
func (*FakeDB) DeleteTcpRouteMappingCallCount ¶
func (*FakeDB) DeleteTcpRouteMappingCalls ¶
func (fake *FakeDB) DeleteTcpRouteMappingCalls(stub func(models.TcpRouteMapping) error)
func (*FakeDB) DeleteTcpRouteMappingReturns ¶
func (*FakeDB) DeleteTcpRouteMappingReturnsOnCall ¶
func (*FakeDB) Invocations ¶
func (*FakeDB) LockRouterGroupReads ¶
func (fake *FakeDB) LockRouterGroupReads()
func (*FakeDB) LockRouterGroupReadsCallCount ¶
func (*FakeDB) LockRouterGroupReadsCalls ¶
func (fake *FakeDB) LockRouterGroupReadsCalls(stub func())
func (*FakeDB) LockRouterGroupWrites ¶
func (fake *FakeDB) LockRouterGroupWrites()
func (*FakeDB) LockRouterGroupWritesCallCount ¶
func (*FakeDB) LockRouterGroupWritesCalls ¶
func (fake *FakeDB) LockRouterGroupWritesCalls(stub func())
func (*FakeDB) ReadFilteredTcpRouteMappings ¶
func (*FakeDB) ReadFilteredTcpRouteMappingsArgsForCall ¶
func (*FakeDB) ReadFilteredTcpRouteMappingsCallCount ¶
func (*FakeDB) ReadFilteredTcpRouteMappingsCalls ¶
func (*FakeDB) ReadFilteredTcpRouteMappingsReturns ¶
func (fake *FakeDB) ReadFilteredTcpRouteMappingsReturns(result1 []models.TcpRouteMapping, result2 error)
func (*FakeDB) ReadFilteredTcpRouteMappingsReturnsOnCall ¶
func (fake *FakeDB) ReadFilteredTcpRouteMappingsReturnsOnCall(i int, result1 []models.TcpRouteMapping, result2 error)
func (*FakeDB) ReadRouterGroup ¶
func (fake *FakeDB) ReadRouterGroup(arg1 string) (models.RouterGroup, error)
func (*FakeDB) ReadRouterGroupArgsForCall ¶
func (*FakeDB) ReadRouterGroupByName ¶
func (fake *FakeDB) ReadRouterGroupByName(arg1 string) (models.RouterGroup, error)
func (*FakeDB) ReadRouterGroupByNameArgsForCall ¶
func (*FakeDB) ReadRouterGroupByNameCallCount ¶
func (*FakeDB) ReadRouterGroupByNameCalls ¶
func (fake *FakeDB) ReadRouterGroupByNameCalls(stub func(string) (models.RouterGroup, error))
func (*FakeDB) ReadRouterGroupByNameReturns ¶
func (fake *FakeDB) ReadRouterGroupByNameReturns(result1 models.RouterGroup, result2 error)
func (*FakeDB) ReadRouterGroupByNameReturnsOnCall ¶
func (fake *FakeDB) ReadRouterGroupByNameReturnsOnCall(i int, result1 models.RouterGroup, result2 error)
func (*FakeDB) ReadRouterGroupCallCount ¶
func (*FakeDB) ReadRouterGroupCalls ¶
func (fake *FakeDB) ReadRouterGroupCalls(stub func(string) (models.RouterGroup, error))
func (*FakeDB) ReadRouterGroupReturns ¶
func (fake *FakeDB) ReadRouterGroupReturns(result1 models.RouterGroup, result2 error)
func (*FakeDB) ReadRouterGroupReturnsOnCall ¶
func (fake *FakeDB) ReadRouterGroupReturnsOnCall(i int, result1 models.RouterGroup, result2 error)
func (*FakeDB) ReadRouterGroups ¶
func (fake *FakeDB) ReadRouterGroups() (models.RouterGroups, error)
func (*FakeDB) ReadRouterGroupsCallCount ¶
func (*FakeDB) ReadRouterGroupsCalls ¶
func (fake *FakeDB) ReadRouterGroupsCalls(stub func() (models.RouterGroups, error))
func (*FakeDB) ReadRouterGroupsReturns ¶
func (fake *FakeDB) ReadRouterGroupsReturns(result1 models.RouterGroups, result2 error)
func (*FakeDB) ReadRouterGroupsReturnsOnCall ¶
func (fake *FakeDB) ReadRouterGroupsReturnsOnCall(i int, result1 models.RouterGroups, result2 error)
func (*FakeDB) ReadRoutesCallCount ¶
func (*FakeDB) ReadRoutesCalls ¶
func (*FakeDB) ReadRoutesReturns ¶
func (*FakeDB) ReadRoutesReturnsOnCall ¶
func (*FakeDB) ReadTcpRouteMappings ¶
func (fake *FakeDB) ReadTcpRouteMappings() ([]models.TcpRouteMapping, error)
func (*FakeDB) ReadTcpRouteMappingsCallCount ¶
func (*FakeDB) ReadTcpRouteMappingsCalls ¶
func (fake *FakeDB) ReadTcpRouteMappingsCalls(stub func() ([]models.TcpRouteMapping, error))
func (*FakeDB) ReadTcpRouteMappingsReturns ¶
func (fake *FakeDB) ReadTcpRouteMappingsReturns(result1 []models.TcpRouteMapping, result2 error)
func (*FakeDB) ReadTcpRouteMappingsReturnsOnCall ¶
func (fake *FakeDB) ReadTcpRouteMappingsReturnsOnCall(i int, result1 []models.TcpRouteMapping, result2 error)
func (*FakeDB) SaveRouteCallCount ¶
func (*FakeDB) SaveRouteReturns ¶
func (*FakeDB) SaveRouteReturnsOnCall ¶
func (*FakeDB) SaveRouterGroup ¶
func (fake *FakeDB) SaveRouterGroup(arg1 models.RouterGroup) error
func (*FakeDB) SaveRouterGroupArgsForCall ¶
func (fake *FakeDB) SaveRouterGroupArgsForCall(i int) models.RouterGroup
func (*FakeDB) SaveRouterGroupCallCount ¶
func (*FakeDB) SaveRouterGroupCalls ¶
func (fake *FakeDB) SaveRouterGroupCalls(stub func(models.RouterGroup) error)
func (*FakeDB) SaveRouterGroupReturns ¶
func (*FakeDB) SaveRouterGroupReturnsOnCall ¶
func (*FakeDB) SaveTcpRouteMapping ¶
func (fake *FakeDB) SaveTcpRouteMapping(arg1 models.TcpRouteMapping) error
func (*FakeDB) SaveTcpRouteMappingArgsForCall ¶
func (fake *FakeDB) SaveTcpRouteMappingArgsForCall(i int) models.TcpRouteMapping
func (*FakeDB) SaveTcpRouteMappingCallCount ¶
func (*FakeDB) SaveTcpRouteMappingCalls ¶
func (fake *FakeDB) SaveTcpRouteMappingCalls(stub func(models.TcpRouteMapping) error)
func (*FakeDB) SaveTcpRouteMappingReturns ¶
func (*FakeDB) SaveTcpRouteMappingReturnsOnCall ¶
func (*FakeDB) UnlockRouterGroupReads ¶
func (fake *FakeDB) UnlockRouterGroupReads()
func (*FakeDB) UnlockRouterGroupReadsCallCount ¶
func (*FakeDB) UnlockRouterGroupReadsCalls ¶
func (fake *FakeDB) UnlockRouterGroupReadsCalls(stub func())
func (*FakeDB) UnlockRouterGroupWrites ¶
func (fake *FakeDB) UnlockRouterGroupWrites()
func (*FakeDB) UnlockRouterGroupWritesCallCount ¶
func (*FakeDB) UnlockRouterGroupWritesCalls ¶
func (fake *FakeDB) UnlockRouterGroupWritesCalls(stub func())
func (*FakeDB) WatchChanges ¶
func (*FakeDB) WatchChangesArgsForCall ¶
func (*FakeDB) WatchChangesCallCount ¶
func (*FakeDB) WatchChangesCalls ¶
func (*FakeDB) WatchChangesReturns ¶
func (*FakeDB) WatchChangesReturnsOnCall ¶
type MySQLAdapter ¶
type MySQLAdapter struct { RegisterTLSConfigStub func(string, *tls.Config) error // contains filtered or unexported fields }
func (*MySQLAdapter) Invocations ¶
func (fake *MySQLAdapter) Invocations() map[string][][]interface{}
func (*MySQLAdapter) RegisterTLSConfig ¶
func (fake *MySQLAdapter) RegisterTLSConfig(arg1 string, arg2 *tls.Config) error
func (*MySQLAdapter) RegisterTLSConfigArgsForCall ¶
func (fake *MySQLAdapter) RegisterTLSConfigArgsForCall(i int) (string, *tls.Config)
func (*MySQLAdapter) RegisterTLSConfigCallCount ¶
func (fake *MySQLAdapter) RegisterTLSConfigCallCount() int
func (*MySQLAdapter) RegisterTLSConfigCalls ¶
func (fake *MySQLAdapter) RegisterTLSConfigCalls(stub func(string, *tls.Config) error)
func (*MySQLAdapter) RegisterTLSConfigReturns ¶
func (fake *MySQLAdapter) RegisterTLSConfigReturns(result1 error)
func (*MySQLAdapter) RegisterTLSConfigReturnsOnCall ¶
func (fake *MySQLAdapter) RegisterTLSConfigReturnsOnCall(i int, result1 error)
Click to show internal directories.
Click to hide internal directories.