Documentation ¶
Index ¶
- type DBRepo
- type GitCmd
- type GoCmd
- 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 DBRepo ¶ added in v1.0.1
DBRepo is an autogenerated mock type for the DBRepo type
func NewDBRepo ¶ added in v1.0.1
NewDBRepo creates a new instance of DBRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DBRepo) DeleteMigrationTable ¶ added in v1.0.1
DeleteMigrationTable provides a mock function with given fields:
func (*DBRepo) InitMigrationTable ¶ added in v1.0.1
InitMigrationTable provides a mock function with given fields:
func (*DBRepo) LoadHistory ¶ added in v1.0.1
func (_m *DBRepo) LoadHistory() ([]*sqlmigrator.MigrationDBEntry, error)
LoadHistory provides a mock function with given fields:
func (*DBRepo) PushHistory ¶ added in v1.0.1
func (_m *DBRepo) PushHistory(migration *sqlmigrator.MigrationDBEntry) error
PushHistory provides a mock function with given fields: migration
type GitCmd ¶ added in v1.0.1
GitCmd is an autogenerated mock type for the GitCmd type
func NewGitCmd ¶ added in v1.0.1
NewGitCmd creates a new instance of GitCmd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GitCmd) AddRemote ¶ added in v1.0.1
AddRemote provides a mock function with given fields: remoteName, remoteUrl
func (*GitCmd) GetRemoteOrigin ¶ added in v1.0.1
GetRemoteOrigin provides a mock function with given fields:
type GoCmd ¶ added in v1.0.1
GoCmd is an autogenerated mock type for the GoCmd type
func NewGoCmd ¶ added in v1.0.1
NewGoCmd creates a new instance of GoCmd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GoCmd) ModPackageName ¶ added in v1.0.1
ModPackageName provides a mock function with given fields:
type HandlerFunc ¶
HandlerFunc is an autogenerated mock type for the HandlerFunc type
func NewHandlerFunc ¶
func NewHandlerFunc(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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
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. The first argument is typically a *testing.T value.
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
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. The first argument is typically a *testing.T value.
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