Documentation ¶
Index ¶
- type DatabaseRepo
- func (_m *DatabaseRepo) ApplyMigration(migration *migrator.Migration) error
- func (_m *DatabaseRepo) CreateMigrationTableIfNotExists() error
- func (_m *DatabaseRepo) DeleteMigrationTable() error
- func (_m *DatabaseRepo) GetLastAppliedMigration() (*migrator.Migration, error)
- func (_m *DatabaseRepo) LoadLastAppliedMigration() (*migrator.Migration, error)
- func (_m *DatabaseRepo) LoadMigrations() ([]*migrator.Migration, error)
- type FileRepo
- func (_m *FileRepo) CreateMigrationFile(migration *migrator.Migration) error
- func (_m *FileRepo) DeleteMigrationDirectory() error
- func (_m *FileRepo) DeleteMigrationFile(migration *migrator.Migration) error
- func (_m *FileRepo) GetMigrationFilePathsByType(migrationType migrator.MigrationType) ([]string, error)
- func (_m *FileRepo) LoadMigrationQuery(migration *migrator.Migration) error
- func (_m *FileRepo) LoadMigrationsFromFile(migrationType migrator.MigrationType) ([]*migrator.Migration, error)
- func (_m *FileRepo) OpenDirectory() error
- func (_m *FileRepo) WriteMigrationToFile(migration *migrator.Migration) error
- type HandlerFunc
- type Middleware
- type Params
- type Router
- func (_m *Router) HandlerFunc(method string, path string, handler http.HandlerFunc)
- func (_m *Router) ParamsFromContext(_a0 context.Context) gsk.Params
- func (_m *Router) Router() *httprouter.Router
- func (_m *Router) ServeFiles(_a0 string, _a1 http.FileSystem)
- func (_m *Router) ServeHTTP(_a0 http.ResponseWriter, _a1 *http.Request)
- type SqlQuery
- func (_m *SqlQuery) Build() string
- func (_m *SqlQuery) DeleteFrom(table string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Fields(fields ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) From(tables ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) InsertInto(table string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Join(tables ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Limit(limit string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Offset(offset string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) On(conditions ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) OrderBy(columns ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Select(columns ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Set(values ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Update(table string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Values(values ...string) sqlBuilder.SqlQuery
- func (_m *SqlQuery) Where(conditions ...string) sqlBuilder.SqlQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseRepo ¶ added in v0.4.0
DatabaseRepo is an autogenerated mock type for the DatabaseRepo type
func NewDatabaseRepo ¶ added in v0.4.0
func NewDatabaseRepo(t mockConstructorTestingTNewDatabaseRepo) *DatabaseRepo
NewDatabaseRepo creates a new instance of DatabaseRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseRepo) ApplyMigration ¶ added in v0.4.0
func (_m *DatabaseRepo) ApplyMigration(migration *migrator.Migration) error
ApplyMigration provides a mock function with given fields: migration
func (*DatabaseRepo) CreateMigrationTableIfNotExists ¶ added in v0.4.0
func (_m *DatabaseRepo) CreateMigrationTableIfNotExists() error
CreateMigrationTableIfNotExists provides a mock function with given fields:
func (*DatabaseRepo) DeleteMigrationTable ¶ added in v0.4.0
func (_m *DatabaseRepo) DeleteMigrationTable() error
DeleteMigrationTable provides a mock function with given fields:
func (*DatabaseRepo) GetLastAppliedMigration ¶ added in v0.4.0
func (_m *DatabaseRepo) GetLastAppliedMigration() (*migrator.Migration, error)
GetLastAppliedMigration provides a mock function with given fields:
func (*DatabaseRepo) LoadLastAppliedMigration ¶ added in v0.4.0
func (_m *DatabaseRepo) LoadLastAppliedMigration() (*migrator.Migration, error)
LoadLastAppliedMigration provides a mock function with given fields:
func (*DatabaseRepo) LoadMigrations ¶ added in v0.4.0
func (_m *DatabaseRepo) LoadMigrations() ([]*migrator.Migration, error)
LoadMigrations provides a mock function with given fields:
type FileRepo ¶ added in v0.4.0
FileRepo is an autogenerated mock type for the FileRepo type
func NewFileRepo ¶ added in v0.4.0
func NewFileRepo(t mockConstructorTestingTNewFileRepo) *FileRepo
NewFileRepo creates a new instance of FileRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileRepo) CreateMigrationFile ¶ added in v0.4.0
CreateMigrationFile provides a mock function with given fields: migration
func (*FileRepo) DeleteMigrationDirectory ¶ added in v0.4.0
DeleteMigrationDirectory provides a mock function with given fields:
func (*FileRepo) DeleteMigrationFile ¶ added in v0.4.0
DeleteMigrationFile provides a mock function with given fields: migration
func (*FileRepo) GetMigrationFilePathsByType ¶ added in v0.4.0
func (_m *FileRepo) GetMigrationFilePathsByType(migrationType migrator.MigrationType) ([]string, error)
GetMigrationFilePathsByType provides a mock function with given fields: migrationType
func (*FileRepo) LoadMigrationQuery ¶ added in v0.4.0
LoadMigrationQuery provides a mock function with given fields: migration
func (*FileRepo) LoadMigrationsFromFile ¶ added in v0.4.0
func (_m *FileRepo) LoadMigrationsFromFile(migrationType migrator.MigrationType) ([]*migrator.Migration, error)
LoadMigrationsFromFile provides a mock function with given fields: migrationType
func (*FileRepo) OpenDirectory ¶ added in v0.4.0
OpenDirectory provides a mock function with given fields:
type HandlerFunc ¶
HandlerFunc is an autogenerated mock type for the HandlerFunc type
func NewHandlerFunc ¶
func NewHandlerFunc(t mockConstructorTestingTNewHandlerFunc) *HandlerFunc
NewHandlerFunc creates a new instance of HandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HandlerFunc) Execute ¶
func (_m *HandlerFunc) Execute(_a0 *gsk.Context)
Execute provides a mock function with given fields: _a0
type Middleware ¶
Middleware is an autogenerated mock type for the Middleware type
func NewMiddleware ¶
func NewMiddleware(t mockConstructorTestingTNewMiddleware) *Middleware
NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Middleware) Execute ¶
func (_m *Middleware) Execute(_a0 gsk.HandlerFunc) gsk.HandlerFunc
Execute provides a mock function with given fields: _a0
type Params ¶ added in v0.6.2
Params is an autogenerated mock type for the Params type
type Router ¶ added in v0.6.2
Router is an autogenerated mock type for the Router type
func NewRouter ¶ added in v0.6.2
func NewRouter(t mockConstructorTestingTNewRouter) *Router
NewRouter creates a new instance of Router. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Router) HandlerFunc ¶ added in v0.6.2
func (_m *Router) HandlerFunc(method string, path string, handler http.HandlerFunc)
HandlerFunc provides a mock function with given fields: method, path, handler
func (*Router) ParamsFromContext ¶ added in v0.6.2
ParamsFromContext provides a mock function with given fields: _a0
func (*Router) Router ¶ added in v0.6.2
func (_m *Router) Router() *httprouter.Router
Router provides a mock function with given fields:
func (*Router) ServeFiles ¶ added in v0.6.2
func (_m *Router) ServeFiles(_a0 string, _a1 http.FileSystem)
ServeFiles provides a mock function with given fields: _a0, _a1
type SqlQuery ¶ added in v0.6.2
SqlQuery is an autogenerated mock type for the SqlQuery type
func NewSqlQuery ¶ added in v0.6.2
func NewSqlQuery(t mockConstructorTestingTNewSqlQuery) *SqlQuery
NewSqlQuery creates a new instance of SqlQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SqlQuery) DeleteFrom ¶ added in v0.6.2
func (_m *SqlQuery) DeleteFrom(table string) sqlBuilder.SqlQuery
DeleteFrom provides a mock function with given fields: table
func (*SqlQuery) Fields ¶ added in v0.6.2
func (_m *SqlQuery) Fields(fields ...string) sqlBuilder.SqlQuery
Fields provides a mock function with given fields: fields
func (*SqlQuery) From ¶ added in v0.6.2
func (_m *SqlQuery) From(tables ...string) sqlBuilder.SqlQuery
From provides a mock function with given fields: tables
func (*SqlQuery) InsertInto ¶ added in v0.6.2
func (_m *SqlQuery) InsertInto(table string) sqlBuilder.SqlQuery
InsertInto provides a mock function with given fields: table
func (*SqlQuery) Join ¶ added in v0.6.2
func (_m *SqlQuery) Join(tables ...string) sqlBuilder.SqlQuery
Join provides a mock function with given fields: tables
func (*SqlQuery) Limit ¶ added in v0.6.2
func (_m *SqlQuery) Limit(limit string) sqlBuilder.SqlQuery
Limit provides a mock function with given fields: limit
func (*SqlQuery) Offset ¶ added in v0.6.2
func (_m *SqlQuery) Offset(offset string) sqlBuilder.SqlQuery
Offset provides a mock function with given fields: offset
func (*SqlQuery) On ¶ added in v0.6.2
func (_m *SqlQuery) On(conditions ...string) sqlBuilder.SqlQuery
On provides a mock function with given fields: conditions
func (*SqlQuery) OrderBy ¶ added in v0.6.2
func (_m *SqlQuery) OrderBy(columns ...string) sqlBuilder.SqlQuery
OrderBy provides a mock function with given fields: columns
func (*SqlQuery) Select ¶ added in v0.6.2
func (_m *SqlQuery) Select(columns ...string) sqlBuilder.SqlQuery
Select provides a mock function with given fields: columns
func (*SqlQuery) Set ¶ added in v0.6.2
func (_m *SqlQuery) Set(values ...string) sqlBuilder.SqlQuery
Set provides a mock function with given fields: values
func (*SqlQuery) Update ¶ added in v0.6.2
func (_m *SqlQuery) Update(table string) sqlBuilder.SqlQuery
Update provides a mock function with given fields: table