Documentation ¶
Overview ¶
Package model is a generated GoMock package.
Package model is a generated GoMock package.
Index ¶
- Variables
- type AppUser
- type AppUserModel
- type Locale
- type LocaleModel
- type MockAppUserModel
- func (m *MockAppUserModel) Delete(arg0 context.Context, arg1 int64) error
- func (m *MockAppUserModel) EXPECT() *MockAppUserModelMockRecorder
- func (m *MockAppUserModel) FindOne(arg0 context.Context, arg1 int64) (*AppUser, error)
- func (m *MockAppUserModel) FindOneByUuid(arg0 context.Context, arg1 string) (*AppUser, error)
- func (m *MockAppUserModel) Insert(arg0 context.Context, arg1 *AppUser) (sql.Result, error)
- func (m *MockAppUserModel) Update(arg0 context.Context, arg1 *AppUser) error
- type MockAppUserModelMockRecorder
- func (mr *MockAppUserModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockAppUserModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
- func (mr *MockAppUserModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockAppUserModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
- func (mr *MockAppUserModelMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type MockLocaleModel
- func (m *MockLocaleModel) Delete(arg0 context.Context, arg1 int64) error
- func (m *MockLocaleModel) EXPECT() *MockLocaleModelMockRecorder
- func (m *MockLocaleModel) FindOne(arg0 context.Context, arg1 int64) (*Locale, error)
- func (m *MockLocaleModel) FindOneByAppUserUuid(arg0 context.Context, arg1 string) (*Locale, error)
- func (m *MockLocaleModel) FindOneByUuid(arg0 context.Context, arg1 string) (*Locale, error)
- func (m *MockLocaleModel) Insert(arg0 context.Context, arg1 *Locale) (sql.Result, error)
- func (m *MockLocaleModel) Update(arg0 context.Context, arg1 *Locale) error
- type MockLocaleModelMockRecorder
- func (mr *MockLocaleModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockLocaleModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
- func (mr *MockLocaleModelMockRecorder) FindOneByAppUserUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockLocaleModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockLocaleModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
- func (mr *MockLocaleModelMockRecorder) Update(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type AppUser ¶
type AppUser struct { Id int64 `db:"id"` Uuid string `db:"uuid"` Created sql.NullTime `db:"created"` Url sql.NullString `db:"url"` SelfLink sql.NullString `db:"self_link"` DisplayName sql.NullString `db:"display_name"` About sql.NullString `db:"about"` }
type AppUserModel ¶
type AppUserModel interface {
// contains filtered or unexported methods
}
AppUserModel is an interface to be customized, add more methods here, and implement the added methods in customAppUserModel.
func NewAppUserModel ¶
NewAppUserModel returns a model for the database table.
type Locale ¶
type Locale struct { Id int64 `db:"id"` Uuid string `db:"uuid"` AppUserUuid string `db:"app_user_uuid"` Language sql.NullString `db:"language"` Country sql.NullString `db:"country"` Variant sql.NullString `db:"variant"` }
type LocaleModel ¶
type LocaleModel interface {
// contains filtered or unexported methods
}
LocaleModel is an interface to be customized, add more methods here, and implement the added methods in customLocaleModel.
func NewLocaleModel ¶
NewLocaleModel returns a model for the database table.
type MockAppUserModel ¶
type MockAppUserModel struct {
// contains filtered or unexported fields
}
MockAppUserModel is a mock of AppUserModel interface.
func NewMockAppUserModel ¶
func NewMockAppUserModel(ctrl *gomock.Controller) *MockAppUserModel
NewMockAppUserModel creates a new mock instance.
func (*MockAppUserModel) Delete ¶
func (m *MockAppUserModel) Delete(arg0 context.Context, arg1 int64) error
Delete mocks base method.
func (*MockAppUserModel) EXPECT ¶
func (m *MockAppUserModel) EXPECT() *MockAppUserModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAppUserModel) FindOneByUuid ¶
FindOneByUuid mocks base method.
type MockAppUserModelMockRecorder ¶
type MockAppUserModelMockRecorder struct {
// contains filtered or unexported fields
}
MockAppUserModelMockRecorder is the mock recorder for MockAppUserModel.
func (*MockAppUserModelMockRecorder) Delete ¶
func (mr *MockAppUserModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAppUserModelMockRecorder) FindOne ¶
func (mr *MockAppUserModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockAppUserModelMockRecorder) FindOneByUuid ¶
func (mr *MockAppUserModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
FindOneByUuid indicates an expected call of FindOneByUuid.
type MockLocaleModel ¶
type MockLocaleModel struct {
// contains filtered or unexported fields
}
MockLocaleModel is a mock of LocaleModel interface.
func NewMockLocaleModel ¶
func NewMockLocaleModel(ctrl *gomock.Controller) *MockLocaleModel
NewMockLocaleModel creates a new mock instance.
func (*MockLocaleModel) Delete ¶
func (m *MockLocaleModel) Delete(arg0 context.Context, arg1 int64) error
Delete mocks base method.
func (*MockLocaleModel) EXPECT ¶
func (m *MockLocaleModel) EXPECT() *MockLocaleModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLocaleModel) FindOneByAppUserUuid ¶
FindOneByAppUserUuid mocks base method.
func (*MockLocaleModel) FindOneByUuid ¶
FindOneByUuid mocks base method.
type MockLocaleModelMockRecorder ¶
type MockLocaleModelMockRecorder struct {
// contains filtered or unexported fields
}
MockLocaleModelMockRecorder is the mock recorder for MockLocaleModel.
func (*MockLocaleModelMockRecorder) Delete ¶
func (mr *MockLocaleModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockLocaleModelMockRecorder) FindOne ¶
func (mr *MockLocaleModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockLocaleModelMockRecorder) FindOneByAppUserUuid ¶
func (mr *MockLocaleModelMockRecorder) FindOneByAppUserUuid(arg0, arg1 any) *gomock.Call
FindOneByAppUserUuid indicates an expected call of FindOneByAppUserUuid.
func (*MockLocaleModelMockRecorder) FindOneByUuid ¶
func (mr *MockLocaleModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
FindOneByUuid indicates an expected call of FindOneByUuid.