type FabricCADB struct { BeginTxStub func() db.FabricCATx CloseStub func() error DriverNameStub func() string ExecStub func(string, string, ...interface{}) (sql.Result, error) GetStub func(string, interface{}, string, ...interface{}) error IsInitializedStub func() bool MustBeginStub func() *sqlx.Tx NamedExecStub func(string, string, interface{}) (sql.Result, error) PingContextStub func(context.Context) error QueryxStub func(string, string, ...interface{}) (*sqlx.Rows, error) RebindStub func(string) string SelectStub func(string, interface{}, string, ...interface{}) error SetDBInitializedStub func(bool) SetMaxOpenConnsStub func(int) // contains filtered or unexported fields }
func (fake *FabricCADB) BeginTx() db.FabricCATx
func (fake *FabricCADB) BeginTxCallCount() int
func (fake *FabricCADB) BeginTxCalls(stub func() db.FabricCATx)
func (fake *FabricCADB) BeginTxReturns(result1 db.FabricCATx)
func (fake *FabricCADB) BeginTxReturnsOnCall(i int, result1 db.FabricCATx)
func (fake *FabricCADB) Close() error
func (fake *FabricCADB) CloseCallCount() int
func (fake *FabricCADB) CloseCalls(stub func() error)
func (fake *FabricCADB) CloseReturns(result1 error)
func (fake *FabricCADB) CloseReturnsOnCall(i int, result1 error)
func (fake *FabricCADB) DriverName() string
func (fake *FabricCADB) DriverNameCallCount() int
func (fake *FabricCADB) DriverNameCalls(stub func() string)
func (fake *FabricCADB) DriverNameReturns(result1 string)
func (fake *FabricCADB) DriverNameReturnsOnCall(i int, result1 string)
func (fake *FabricCADB) Exec(arg1 string, arg2 string, arg3 ...interface{}) (sql.Result, error)
func (fake *FabricCADB) ExecArgsForCall(i int) (string, string, []interface{})
func (fake *FabricCADB) ExecCallCount() int
func (fake *FabricCADB) ExecCalls(stub func(string, string, ...interface{}) (sql.Result, error))
func (fake *FabricCADB) ExecReturns(result1 sql.Result, result2 error)
func (fake *FabricCADB) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *FabricCADB) Get(arg1 string, arg2 interface{}, arg3 string, arg4 ...interface{}) error
func (fake *FabricCADB) GetArgsForCall(i int) (string, interface{}, string, []interface{})
func (fake *FabricCADB) GetCallCount() int
func (fake *FabricCADB) GetCalls(stub func(string, interface{}, string, ...interface{}) error)
func (fake *FabricCADB) GetReturns(result1 error)
func (fake *FabricCADB) GetReturnsOnCall(i int, result1 error)
func (fake *FabricCADB) Invocations() map[string][][]interface{}
func (fake *FabricCADB) IsInitialized() bool
func (fake *FabricCADB) IsInitializedCallCount() int
func (fake *FabricCADB) IsInitializedCalls(stub func() bool)
func (fake *FabricCADB) IsInitializedReturns(result1 bool)
func (fake *FabricCADB) IsInitializedReturnsOnCall(i int, result1 bool)
func (fake *FabricCADB) MustBegin() *sqlx.Tx
func (fake *FabricCADB) MustBeginCallCount() int
func (fake *FabricCADB) MustBeginCalls(stub func() *sqlx.Tx)
func (fake *FabricCADB) MustBeginReturns(result1 *sqlx.Tx)
func (fake *FabricCADB) MustBeginReturnsOnCall(i int, result1 *sqlx.Tx)
func (fake *FabricCADB) NamedExec(arg1 string, arg2 string, arg3 interface{}) (sql.Result, error)
func (fake *FabricCADB) NamedExecArgsForCall(i int) (string, string, interface{})
func (fake *FabricCADB) NamedExecCallCount() int
func (fake *FabricCADB) NamedExecCalls(stub func(string, string, interface{}) (sql.Result, error))
func (fake *FabricCADB) NamedExecReturns(result1 sql.Result, result2 error)
func (fake *FabricCADB) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *FabricCADB) PingContext(arg1 context.Context) error
func (fake *FabricCADB) PingContextArgsForCall(i int) context.Context
func (fake *FabricCADB) PingContextCallCount() int
func (fake *FabricCADB) PingContextCalls(stub func(context.Context) error)
func (fake *FabricCADB) PingContextReturns(result1 error)
func (fake *FabricCADB) PingContextReturnsOnCall(i int, result1 error)
func (fake *FabricCADB) Queryx(arg1 string, arg2 string, arg3 ...interface{}) (*sqlx.Rows, error)
func (fake *FabricCADB) QueryxArgsForCall(i int) (string, string, []interface{})
func (fake *FabricCADB) QueryxCallCount() int
func (fake *FabricCADB) QueryxCalls(stub func(string, string, ...interface{}) (*sqlx.Rows, error))
func (fake *FabricCADB) QueryxReturns(result1 *sqlx.Rows, result2 error)
func (fake *FabricCADB) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)
func (fake *FabricCADB) Rebind(arg1 string) string
func (fake *FabricCADB) RebindArgsForCall(i int) string
func (fake *FabricCADB) RebindCallCount() int
func (fake *FabricCADB) RebindCalls(stub func(string) string)
func (fake *FabricCADB) RebindReturns(result1 string)
func (fake *FabricCADB) RebindReturnsOnCall(i int, result1 string)
func (fake *FabricCADB) Select(arg1 string, arg2 interface{}, arg3 string, arg4 ...interface{}) error
func (fake *FabricCADB) SelectArgsForCall(i int) (string, interface{}, string, []interface{})
func (fake *FabricCADB) SelectCallCount() int
func (fake *FabricCADB) SelectCalls(stub func(string, interface{}, string, ...interface{}) error)
func (fake *FabricCADB) SelectReturns(result1 error)
func (fake *FabricCADB) SelectReturnsOnCall(i int, result1 error)
func (fake *FabricCADB) SetDBInitialized(arg1 bool)
func (fake *FabricCADB) SetDBInitializedArgsForCall(i int) bool
func (fake *FabricCADB) SetDBInitializedCallCount() int
func (fake *FabricCADB) SetDBInitializedCalls(stub func(bool))
func (fake *FabricCADB) SetMaxOpenConns(arg1 int)
func (fake *FabricCADB) SetMaxOpenConnsArgsForCall(i int) int
func (fake *FabricCADB) SetMaxOpenConnsCallCount() int
func (fake *FabricCADB) SetMaxOpenConnsCalls(stub func(int))
type FabricCATx struct { CommitStub func(string) error ExecStub func(string, string, ...interface{}) (sql.Result, error) GetStub func(string, interface{}, string, ...interface{}) error QueryxStub func(string, string, ...interface{}) (*sqlx.Rows, error) RebindStub func(string) string RollbackStub func(string) error SelectStub func(string, interface{}, string, ...interface{}) error // contains filtered or unexported fields }
func (fake *FabricCATx) Commit(arg1 string) error
func (fake *FabricCATx) CommitArgsForCall(i int) string
func (fake *FabricCATx) CommitCallCount() int
func (fake *FabricCATx) CommitCalls(stub func(string) error)
func (fake *FabricCATx) CommitReturns(result1 error)
func (fake *FabricCATx) CommitReturnsOnCall(i int, result1 error)
func (fake *FabricCATx) Exec(arg1 string, arg2 string, arg3 ...interface{}) (sql.Result, error)
func (fake *FabricCATx) ExecArgsForCall(i int) (string, string, []interface{})
func (fake *FabricCATx) ExecCallCount() int
func (fake *FabricCATx) ExecCalls(stub func(string, string, ...interface{}) (sql.Result, error))
func (fake *FabricCATx) ExecReturns(result1 sql.Result, result2 error)
func (fake *FabricCATx) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *FabricCATx) Get(arg1 string, arg2 interface{}, arg3 string, arg4 ...interface{}) error
func (fake *FabricCATx) GetArgsForCall(i int) (string, interface{}, string, []interface{})
func (fake *FabricCATx) GetCallCount() int
func (fake *FabricCATx) GetCalls(stub func(string, interface{}, string, ...interface{}) error)
func (fake *FabricCATx) GetReturns(result1 error)
func (fake *FabricCATx) GetReturnsOnCall(i int, result1 error)
func (fake *FabricCATx) Invocations() map[string][][]interface{}
func (fake *FabricCATx) Queryx(arg1 string, arg2 string, arg3 ...interface{}) (*sqlx.Rows, error)
func (fake *FabricCATx) QueryxArgsForCall(i int) (string, string, []interface{})
func (fake *FabricCATx) QueryxCallCount() int
func (fake *FabricCATx) QueryxCalls(stub func(string, string, ...interface{}) (*sqlx.Rows, error))
func (fake *FabricCATx) QueryxReturns(result1 *sqlx.Rows, result2 error)
func (fake *FabricCATx) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)
func (fake *FabricCATx) Rebind(arg1 string) string
func (fake *FabricCATx) RebindArgsForCall(i int) string
func (fake *FabricCATx) RebindCallCount() int
func (fake *FabricCATx) RebindCalls(stub func(string) string)
func (fake *FabricCATx) RebindReturns(result1 string)
func (fake *FabricCATx) RebindReturnsOnCall(i int, result1 string)
func (fake *FabricCATx) Rollback(arg1 string) error
func (fake *FabricCATx) RollbackArgsForCall(i int) string
func (fake *FabricCATx) RollbackCallCount() int
func (fake *FabricCATx) RollbackCalls(stub func(string) error)
func (fake *FabricCATx) RollbackReturns(result1 error)
func (fake *FabricCATx) RollbackReturnsOnCall(i int, result1 error)
func (fake *FabricCATx) Select(arg1 string, arg2 interface{}, arg3 string, arg4 ...interface{}) error
func (fake *FabricCATx) SelectArgsForCall(i int) (string, interface{}, string, []interface{})
func (fake *FabricCATx) SelectCallCount() int
func (fake *FabricCATx) SelectCalls(stub func(string, interface{}, string, ...interface{}) error)
func (fake *FabricCATx) SelectReturns(result1 error)
func (fake *FabricCATx) SelectReturnsOnCall(i int, result1 error)
type Migrator struct { CommitStub func() error MigrateAffiliationsTableStub func() error MigrateCertificatesTableStub func() error MigrateCredentialsTableStub func() error MigrateNoncesTableStub func() error MigrateRAInfoTableStub func() error MigrateUsersTableStub func() error RollbackStub func() error // contains filtered or unexported fields }
func (fake *Migrator) Commit() error
func (fake *Migrator) CommitCallCount() int
func (fake *Migrator) CommitCalls(stub func() error)
func (fake *Migrator) CommitReturns(result1 error)
func (fake *Migrator) CommitReturnsOnCall(i int, result1 error)
func (fake *Migrator) Invocations() map[string][][]interface{}
func (fake *Migrator) MigrateAffiliationsTable() error
func (fake *Migrator) MigrateAffiliationsTableCallCount() int
func (fake *Migrator) MigrateAffiliationsTableCalls(stub func() error)
func (fake *Migrator) MigrateAffiliationsTableReturns(result1 error)
func (fake *Migrator) MigrateAffiliationsTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) MigrateCertificatesTable() error
func (fake *Migrator) MigrateCertificatesTableCallCount() int
func (fake *Migrator) MigrateCertificatesTableCalls(stub func() error)
func (fake *Migrator) MigrateCertificatesTableReturns(result1 error)
func (fake *Migrator) MigrateCertificatesTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) MigrateCredentialsTable() error
func (fake *Migrator) MigrateCredentialsTableCallCount() int
func (fake *Migrator) MigrateCredentialsTableCalls(stub func() error)
func (fake *Migrator) MigrateCredentialsTableReturns(result1 error)
func (fake *Migrator) MigrateCredentialsTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) MigrateNoncesTable() error
func (fake *Migrator) MigrateNoncesTableCallCount() int
func (fake *Migrator) MigrateNoncesTableCalls(stub func() error)
func (fake *Migrator) MigrateNoncesTableReturns(result1 error)
func (fake *Migrator) MigrateNoncesTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) MigrateRAInfoTable() error
func (fake *Migrator) MigrateRAInfoTableCallCount() int
func (fake *Migrator) MigrateRAInfoTableCalls(stub func() error)
func (fake *Migrator) MigrateRAInfoTableReturns(result1 error)
func (fake *Migrator) MigrateRAInfoTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) MigrateUsersTable() error
func (fake *Migrator) MigrateUsersTableCallCount() int
func (fake *Migrator) MigrateUsersTableCalls(stub func() error)
func (fake *Migrator) MigrateUsersTableReturns(result1 error)
func (fake *Migrator) MigrateUsersTableReturnsOnCall(i int, result1 error)
func (fake *Migrator) Rollback() error
func (fake *Migrator) RollbackCallCount() int
func (fake *Migrator) RollbackCalls(stub func() error)
func (fake *Migrator) RollbackReturns(result1 error)
func (fake *Migrator) RollbackReturnsOnCall(i int, result1 error)
Result is an autogenerated mock type for the Result type
type Result struct { mock.Mock }
func (_m *Result) LastInsertId() (int64, error)
LastInsertId provides a mock function with given fields:
func (_m *Result) RowsAffected() (int64, error)
RowsAffected provides a mock function with given fields:
type SqlxDB struct { CloseStub func() error DriverNameStub func() string ExecStub func(string, ...interface{}) (sql.Result, error) GetStub func(interface{}, string, ...interface{}) error MustBeginStub func() *sqlx.Tx NamedExecStub func(string, interface{}) (sql.Result, error) PingContextStub func(context.Context) error QueryxStub func(string, ...interface{}) (*sqlx.Rows, error) RebindStub func(string) string SelectStub func(interface{}, string, ...interface{}) error SetMaxOpenConnsStub func(int) // contains filtered or unexported fields }
func (fake *SqlxDB) Close() error
func (fake *SqlxDB) CloseCallCount() int
func (fake *SqlxDB) CloseCalls(stub func() error)
func (fake *SqlxDB) CloseReturns(result1 error)
func (fake *SqlxDB) CloseReturnsOnCall(i int, result1 error)
func (fake *SqlxDB) DriverName() string
func (fake *SqlxDB) DriverNameCallCount() int
func (fake *SqlxDB) DriverNameCalls(stub func() string)
func (fake *SqlxDB) DriverNameReturns(result1 string)
func (fake *SqlxDB) DriverNameReturnsOnCall(i int, result1 string)
func (fake *SqlxDB) Exec(arg1 string, arg2 ...interface{}) (sql.Result, error)
func (fake *SqlxDB) ExecArgsForCall(i int) (string, []interface{})
func (fake *SqlxDB) ExecCallCount() int
func (fake *SqlxDB) ExecCalls(stub func(string, ...interface{}) (sql.Result, error))
func (fake *SqlxDB) ExecReturns(result1 sql.Result, result2 error)
func (fake *SqlxDB) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *SqlxDB) Get(arg1 interface{}, arg2 string, arg3 ...interface{}) error
func (fake *SqlxDB) GetArgsForCall(i int) (interface{}, string, []interface{})
func (fake *SqlxDB) GetCallCount() int
func (fake *SqlxDB) GetCalls(stub func(interface{}, string, ...interface{}) error)
func (fake *SqlxDB) GetReturns(result1 error)
func (fake *SqlxDB) GetReturnsOnCall(i int, result1 error)
func (fake *SqlxDB) Invocations() map[string][][]interface{}
func (fake *SqlxDB) MustBegin() *sqlx.Tx
func (fake *SqlxDB) MustBeginCallCount() int
func (fake *SqlxDB) MustBeginCalls(stub func() *sqlx.Tx)
func (fake *SqlxDB) MustBeginReturns(result1 *sqlx.Tx)
func (fake *SqlxDB) MustBeginReturnsOnCall(i int, result1 *sqlx.Tx)
func (fake *SqlxDB) NamedExec(arg1 string, arg2 interface{}) (sql.Result, error)
func (fake *SqlxDB) NamedExecArgsForCall(i int) (string, interface{})
func (fake *SqlxDB) NamedExecCallCount() int
func (fake *SqlxDB) NamedExecCalls(stub func(string, interface{}) (sql.Result, error))
func (fake *SqlxDB) NamedExecReturns(result1 sql.Result, result2 error)
func (fake *SqlxDB) NamedExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *SqlxDB) PingContext(arg1 context.Context) error
func (fake *SqlxDB) PingContextArgsForCall(i int) context.Context
func (fake *SqlxDB) PingContextCallCount() int
func (fake *SqlxDB) PingContextCalls(stub func(context.Context) error)
func (fake *SqlxDB) PingContextReturns(result1 error)
func (fake *SqlxDB) PingContextReturnsOnCall(i int, result1 error)
func (fake *SqlxDB) Queryx(arg1 string, arg2 ...interface{}) (*sqlx.Rows, error)
func (fake *SqlxDB) QueryxArgsForCall(i int) (string, []interface{})
func (fake *SqlxDB) QueryxCallCount() int
func (fake *SqlxDB) QueryxCalls(stub func(string, ...interface{}) (*sqlx.Rows, error))
func (fake *SqlxDB) QueryxReturns(result1 *sqlx.Rows, result2 error)
func (fake *SqlxDB) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)
func (fake *SqlxDB) Rebind(arg1 string) string
func (fake *SqlxDB) RebindArgsForCall(i int) string
func (fake *SqlxDB) RebindCallCount() int
func (fake *SqlxDB) RebindCalls(stub func(string) string)
func (fake *SqlxDB) RebindReturns(result1 string)
func (fake *SqlxDB) RebindReturnsOnCall(i int, result1 string)
func (fake *SqlxDB) Select(arg1 interface{}, arg2 string, arg3 ...interface{}) error
func (fake *SqlxDB) SelectArgsForCall(i int) (interface{}, string, []interface{})
func (fake *SqlxDB) SelectCallCount() int
func (fake *SqlxDB) SelectCalls(stub func(interface{}, string, ...interface{}) error)
func (fake *SqlxDB) SelectReturns(result1 error)
func (fake *SqlxDB) SelectReturnsOnCall(i int, result1 error)
func (fake *SqlxDB) SetMaxOpenConns(arg1 int)
func (fake *SqlxDB) SetMaxOpenConnsArgsForCall(i int) int
func (fake *SqlxDB) SetMaxOpenConnsCallCount() int
func (fake *SqlxDB) SetMaxOpenConnsCalls(stub func(int))
type SqlxTx struct { CommitStub func() error ExecStub func(string, ...interface{}) (sql.Result, error) GetStub func(interface{}, string, ...interface{}) error QueryxStub func(string, ...interface{}) (*sqlx.Rows, error) RebindStub func(string) string RollbackStub func() error SelectStub func(interface{}, string, ...interface{}) error // contains filtered or unexported fields }
func (fake *SqlxTx) Commit() error
func (fake *SqlxTx) CommitCallCount() int
func (fake *SqlxTx) CommitCalls(stub func() error)
func (fake *SqlxTx) CommitReturns(result1 error)
func (fake *SqlxTx) CommitReturnsOnCall(i int, result1 error)
func (fake *SqlxTx) Exec(arg1 string, arg2 ...interface{}) (sql.Result, error)
func (fake *SqlxTx) ExecArgsForCall(i int) (string, []interface{})
func (fake *SqlxTx) ExecCallCount() int
func (fake *SqlxTx) ExecCalls(stub func(string, ...interface{}) (sql.Result, error))
func (fake *SqlxTx) ExecReturns(result1 sql.Result, result2 error)
func (fake *SqlxTx) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
func (fake *SqlxTx) Get(arg1 interface{}, arg2 string, arg3 ...interface{}) error
func (fake *SqlxTx) GetArgsForCall(i int) (interface{}, string, []interface{})
func (fake *SqlxTx) GetCallCount() int
func (fake *SqlxTx) GetCalls(stub func(interface{}, string, ...interface{}) error)
func (fake *SqlxTx) GetReturns(result1 error)
func (fake *SqlxTx) GetReturnsOnCall(i int, result1 error)
func (fake *SqlxTx) Invocations() map[string][][]interface{}
func (fake *SqlxTx) Queryx(arg1 string, arg2 ...interface{}) (*sqlx.Rows, error)
func (fake *SqlxTx) QueryxArgsForCall(i int) (string, []interface{})
func (fake *SqlxTx) QueryxCallCount() int
func (fake *SqlxTx) QueryxCalls(stub func(string, ...interface{}) (*sqlx.Rows, error))
func (fake *SqlxTx) QueryxReturns(result1 *sqlx.Rows, result2 error)
func (fake *SqlxTx) QueryxReturnsOnCall(i int, result1 *sqlx.Rows, result2 error)
func (fake *SqlxTx) Rebind(arg1 string) string
func (fake *SqlxTx) RebindArgsForCall(i int) string
func (fake *SqlxTx) RebindCallCount() int
func (fake *SqlxTx) RebindCalls(stub func(string) string)
func (fake *SqlxTx) RebindReturns(result1 string)
func (fake *SqlxTx) RebindReturnsOnCall(i int, result1 string)
func (fake *SqlxTx) Rollback() error
func (fake *SqlxTx) RollbackCallCount() int
func (fake *SqlxTx) RollbackCalls(stub func() error)
func (fake *SqlxTx) RollbackReturns(result1 error)
func (fake *SqlxTx) RollbackReturnsOnCall(i int, result1 error)
func (fake *SqlxTx) Select(arg1 interface{}, arg2 string, arg3 ...interface{}) error
func (fake *SqlxTx) SelectArgsForCall(i int) (interface{}, string, []interface{})
func (fake *SqlxTx) SelectCallCount() int
func (fake *SqlxTx) SelectCalls(stub func(interface{}, string, ...interface{}) error)
func (fake *SqlxTx) SelectReturns(result1 error)
func (fake *SqlxTx) SelectReturnsOnCall(i int, result1 error)