Documentation ¶
Overview ¶
Package model is a generated GoMock package.
Package model is a generated GoMock package.
Package model is a generated GoMock package.
Index ¶
- Variables
- type Blog
- type BlogModel
- type BlogUserInfo
- type BlogUserInfoModel
- type MockBlogModel
- func (m *MockBlogModel) Delete(arg0 context.Context, arg1 int64) error
- func (m *MockBlogModel) EXPECT() *MockBlogModelMockRecorder
- func (m *MockBlogModel) FindOne(arg0 context.Context, arg1 int64) (*Blog, error)
- func (m *MockBlogModel) FindOneByUrl(arg0 context.Context, arg1 string) (*Blog, error)
- func (m *MockBlogModel) FindOneByUuid(arg0 context.Context, arg1 string) (*Blog, error)
- func (m *MockBlogModel) Insert(arg0 context.Context, arg1 *Blog) (sql.Result, error)
- func (m *MockBlogModel) ListByAppUserUuid(arg0 context.Context, arg1 string) ([]*Blog, error)
- func (m *MockBlogModel) Update(arg0 context.Context, arg1 *Blog) error
- type MockBlogModelMockRecorder
- func (mr *MockBlogModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) FindOneByUrl(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) ListByAppUserUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogModelMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type MockBlogUserInfoModel
- func (m *MockBlogUserInfoModel) Delete(arg0 context.Context, arg1 int64) error
- func (m *MockBlogUserInfoModel) EXPECT() *MockBlogUserInfoModelMockRecorder
- func (m *MockBlogUserInfoModel) FindOne(arg0 context.Context, arg1 int64) (*BlogUserInfo, error)
- func (m *MockBlogUserInfoModel) FindOneByUserUuidAndBlogUuid(arg0 context.Context, arg1, arg2 string) (*BlogUserInfo, error)
- func (m *MockBlogUserInfoModel) FindOneByUuid(arg0 context.Context, arg1 string) (*BlogUserInfo, error)
- func (m *MockBlogUserInfoModel) Insert(arg0 context.Context, arg1 *BlogUserInfo) (sql.Result, error)
- func (m *MockBlogUserInfoModel) Update(arg0 context.Context, arg1 *BlogUserInfo) error
- type MockBlogUserInfoModelMockRecorder
- func (mr *MockBlogUserInfoModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogUserInfoModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogUserInfoModelMockRecorder) FindOneByUserUuidAndBlogUuid(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockBlogUserInfoModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogUserInfoModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
- func (mr *MockBlogUserInfoModelMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type MockPageViewsModel
- func (m *MockPageViewsModel) Delete(arg0 context.Context, arg1 int64) error
- func (m *MockPageViewsModel) EXPECT() *MockPageViewsModelMockRecorder
- func (m *MockPageViewsModel) FindOne(arg0 context.Context, arg1 int64) (*PageViews, error)
- func (m *MockPageViewsModel) FindOneByBlogUuid(arg0 context.Context, arg1 string) (*PageViews, error)
- func (m *MockPageViewsModel) FindOneByUuid(arg0 context.Context, arg1 string) (*PageViews, error)
- func (m *MockPageViewsModel) Insert(arg0 context.Context, arg1 *PageViews) (sql.Result, error)
- func (m *MockPageViewsModel) Update(arg0 context.Context, arg1 *PageViews) error
- type MockPageViewsModelMockRecorder
- func (mr *MockPageViewsModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockPageViewsModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
- func (mr *MockPageViewsModelMockRecorder) FindOneByBlogUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockPageViewsModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
- func (mr *MockPageViewsModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
- func (mr *MockPageViewsModelMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type PageViews
- type PageViewsModel
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { Id int64 `db:"id"` Uuid string `db:"uuid"` AppUserUuid sql.NullString `db:"app_user_uuid"` Name sql.NullString `db:"name"` Description sql.NullString `db:"description"` Published sql.NullTime `db:"published"` Updated sql.NullTime `db:"updated"` Url sql.NullString `db:"url"` SelfLink sql.NullString `db:"self_link"` CustomMetaData sql.NullString `db:"custom_meta_data"` }
type BlogModel ¶
type BlogModel interface { FindOneByUrl(ctx context.Context, url string) (*Blog, error) ListByAppUserUuid(ctx context.Context, appUserUuid string) ([]*Blog, error) // contains filtered or unexported methods }
BlogModel is an interface to be customized, add more methods here, and implement the added methods in customBlogModel.
type BlogUserInfo ¶
type BlogUserInfo struct { Id int64 `db:"id"` Uuid string `db:"uuid"` UserUuid sql.NullString `db:"user_uuid"` BlogUuid sql.NullString `db:"blog_uuid"` PhotosAlbumKey sql.NullString `db:"photos_album_key"` HasAdminAccess sql.NullBool `db:"has_admin_access"` }
type BlogUserInfoModel ¶
type BlogUserInfoModel interface { FindOneByUserUuidAndBlogUuid(ctx context.Context, userUuid string, blogUuid string) (*BlogUserInfo, error) // contains filtered or unexported methods }
BlogUserInfoModel is an interface to be customized, add more methods here, and implement the added methods in customBlogUserInfoModel.
func NewBlogUserInfoModel ¶
func NewBlogUserInfoModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) BlogUserInfoModel
NewBlogUserInfoModel returns a model for the database table.
type MockBlogModel ¶
type MockBlogModel struct {
// contains filtered or unexported fields
}
MockBlogModel is a mock of BlogModel interface.
func NewMockBlogModel ¶
func NewMockBlogModel(ctrl *gomock.Controller) *MockBlogModel
NewMockBlogModel creates a new mock instance.
func (*MockBlogModel) Delete ¶
func (m *MockBlogModel) Delete(arg0 context.Context, arg1 int64) error
Delete mocks base method.
func (*MockBlogModel) EXPECT ¶
func (m *MockBlogModel) EXPECT() *MockBlogModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlogModel) FindOneByUrl ¶
FindOneByUrl mocks base method.
func (*MockBlogModel) FindOneByUuid ¶
FindOneByUuid mocks base method.
func (*MockBlogModel) ListByAppUserUuid ¶
ListByAppUserUuid mocks base method.
type MockBlogModelMockRecorder ¶
type MockBlogModelMockRecorder struct {
// contains filtered or unexported fields
}
MockBlogModelMockRecorder is the mock recorder for MockBlogModel.
func (*MockBlogModelMockRecorder) Delete ¶
func (mr *MockBlogModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBlogModelMockRecorder) FindOne ¶
func (mr *MockBlogModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockBlogModelMockRecorder) FindOneByUrl ¶
func (mr *MockBlogModelMockRecorder) FindOneByUrl(arg0, arg1 any) *gomock.Call
FindOneByUrl indicates an expected call of FindOneByUrl.
func (*MockBlogModelMockRecorder) FindOneByUuid ¶
func (mr *MockBlogModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
FindOneByUuid indicates an expected call of FindOneByUuid.
func (*MockBlogModelMockRecorder) Insert ¶
func (mr *MockBlogModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockBlogModelMockRecorder) ListByAppUserUuid ¶
func (mr *MockBlogModelMockRecorder) ListByAppUserUuid(arg0, arg1 any) *gomock.Call
ListByAppUserUuid indicates an expected call of ListByAppUserUuid.
type MockBlogUserInfoModel ¶
type MockBlogUserInfoModel struct {
// contains filtered or unexported fields
}
MockBlogUserInfoModel is a mock of BlogUserInfoModel interface.
func NewMockBlogUserInfoModel ¶
func NewMockBlogUserInfoModel(ctrl *gomock.Controller) *MockBlogUserInfoModel
NewMockBlogUserInfoModel creates a new mock instance.
func (*MockBlogUserInfoModel) Delete ¶
func (m *MockBlogUserInfoModel) Delete(arg0 context.Context, arg1 int64) error
Delete mocks base method.
func (*MockBlogUserInfoModel) EXPECT ¶
func (m *MockBlogUserInfoModel) EXPECT() *MockBlogUserInfoModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlogUserInfoModel) FindOne ¶
func (m *MockBlogUserInfoModel) FindOne(arg0 context.Context, arg1 int64) (*BlogUserInfo, error)
FindOne mocks base method.
func (*MockBlogUserInfoModel) FindOneByUserUuidAndBlogUuid ¶
func (m *MockBlogUserInfoModel) FindOneByUserUuidAndBlogUuid(arg0 context.Context, arg1, arg2 string) (*BlogUserInfo, error)
FindOneByUserUuidAndBlogUuid mocks base method.
func (*MockBlogUserInfoModel) FindOneByUuid ¶
func (m *MockBlogUserInfoModel) FindOneByUuid(arg0 context.Context, arg1 string) (*BlogUserInfo, error)
FindOneByUuid mocks base method.
func (*MockBlogUserInfoModel) Insert ¶
func (m *MockBlogUserInfoModel) Insert(arg0 context.Context, arg1 *BlogUserInfo) (sql.Result, error)
Insert mocks base method.
func (*MockBlogUserInfoModel) Update ¶
func (m *MockBlogUserInfoModel) Update(arg0 context.Context, arg1 *BlogUserInfo) error
Update mocks base method.
type MockBlogUserInfoModelMockRecorder ¶
type MockBlogUserInfoModelMockRecorder struct {
// contains filtered or unexported fields
}
MockBlogUserInfoModelMockRecorder is the mock recorder for MockBlogUserInfoModel.
func (*MockBlogUserInfoModelMockRecorder) Delete ¶
func (mr *MockBlogUserInfoModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBlogUserInfoModelMockRecorder) FindOne ¶
func (mr *MockBlogUserInfoModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockBlogUserInfoModelMockRecorder) FindOneByUserUuidAndBlogUuid ¶
func (mr *MockBlogUserInfoModelMockRecorder) FindOneByUserUuidAndBlogUuid(arg0, arg1, arg2 any) *gomock.Call
FindOneByUserUuidAndBlogUuid indicates an expected call of FindOneByUserUuidAndBlogUuid.
func (*MockBlogUserInfoModelMockRecorder) FindOneByUuid ¶
func (mr *MockBlogUserInfoModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
FindOneByUuid indicates an expected call of FindOneByUuid.
type MockPageViewsModel ¶
type MockPageViewsModel struct {
// contains filtered or unexported fields
}
MockPageViewsModel is a mock of PageViewsModel interface.
func NewMockPageViewsModel ¶
func NewMockPageViewsModel(ctrl *gomock.Controller) *MockPageViewsModel
NewMockPageViewsModel creates a new mock instance.
func (*MockPageViewsModel) Delete ¶
func (m *MockPageViewsModel) Delete(arg0 context.Context, arg1 int64) error
Delete mocks base method.
func (*MockPageViewsModel) EXPECT ¶
func (m *MockPageViewsModel) EXPECT() *MockPageViewsModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPageViewsModel) FindOneByBlogUuid ¶
func (m *MockPageViewsModel) FindOneByBlogUuid(arg0 context.Context, arg1 string) (*PageViews, error)
FindOneByBlogUuid mocks base method.
func (*MockPageViewsModel) FindOneByUuid ¶
FindOneByUuid mocks base method.
type MockPageViewsModelMockRecorder ¶
type MockPageViewsModelMockRecorder struct {
// contains filtered or unexported fields
}
MockPageViewsModelMockRecorder is the mock recorder for MockPageViewsModel.
func (*MockPageViewsModelMockRecorder) Delete ¶
func (mr *MockPageViewsModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPageViewsModelMockRecorder) FindOne ¶
func (mr *MockPageViewsModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockPageViewsModelMockRecorder) FindOneByBlogUuid ¶
func (mr *MockPageViewsModelMockRecorder) FindOneByBlogUuid(arg0, arg1 any) *gomock.Call
FindOneByBlogUuid indicates an expected call of FindOneByBlogUuid.
func (*MockPageViewsModelMockRecorder) FindOneByUuid ¶
func (mr *MockPageViewsModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call
FindOneByUuid indicates an expected call of FindOneByUuid.
type PageViewsModel ¶
type PageViewsModel interface {
// contains filtered or unexported methods
}
PageViewsModel is an interface to be customized, add more methods here, and implement the added methods in customPageViewsModel.
func NewPageViewsModel ¶
NewPageViewsModel returns a model for the database table.