repo

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by gormt. DO NOT EDIT.

Package repo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseRelated

func CloseRelated()

CloseRelated 关闭全局预加载

func ConfigHistoryMgr

func ConfigHistoryMgr(ctx context.Context, db *gorm.DB) *_ConfigHistoryMgr

ConfigHistoryMgr open func

func ConfigLinkMgr

func ConfigLinkMgr(ctx context.Context, db *gorm.DB) *_ConfigLinkMgr

ConfigLinkMgr open func

func ConfigMgr

func ConfigMgr(ctx context.Context, db *gorm.DB) *_ConfigMgr

ConfigMgr open func

func NamespaceMgr

func NamespaceMgr(ctx context.Context, db *gorm.DB) *_NamespaceMgr

NamespaceMgr open func

func OpenRelated

func OpenRelated()

OpenRelated 打开全局预加载

func ProjectGroupMgr

func ProjectGroupMgr(ctx context.Context, db *gorm.DB) *_ProjectGroupMgr

ProjectGroupMgr open func

func ProjectMgr

func ProjectMgr(ctx context.Context, db *gorm.DB) *_ProjectMgr

ProjectMgr open func

func PublishConfigMgr

func PublishConfigMgr(ctx context.Context, db *gorm.DB) *_PublishConfigMgr

PublishConfigMgr open func

func PublishMgr added in v0.6.0

func PublishMgr(ctx context.Context, db *gorm.DB) *_PublishMgr

PublishMgr open func

func PublishStrategyMgr added in v0.6.0

func PublishStrategyMgr(ctx context.Context, db *gorm.DB) *_PublishStrategyMgr

PublishStrategyMgr open func

func StaffGroupRelMgr

func StaffGroupRelMgr(ctx context.Context, db *gorm.DB) *_StaffGroupRelMgr

StaffGroupRelMgr open func

func StaffMgr

func StaffMgr(ctx context.Context, db *gorm.DB) *_StaffMgr

StaffMgr open func

Types

type ConfigHistoryRepo

type ConfigHistoryRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_ConfigHistoryMgr
}

func NewConfigHistoryRepo

func NewConfigHistoryRepo() ConfigHistoryRepo

type ConfigLinkRepo

type ConfigLinkRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_ConfigLinkMgr
}

func NewConfigLinkRepo

func NewConfigLinkRepo() ConfigLinkRepo

type ConfigRepo

type ConfigRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_ConfigMgr
}

func NewConfigRepo

func NewConfigRepo() ConfigRepo

type MockPublishMgrInter added in v0.6.0

type MockPublishMgrInter struct {
	// contains filtered or unexported fields
}

MockPublishMgrInter is a mock of PublishMgrInter interface.

func NewMockPublishMgrInter added in v0.6.0

func NewMockPublishMgrInter(ctrl *gomock.Controller) *MockPublishMgrInter

NewMockPublishMgrInter creates a new mock instance.

func (*MockPublishMgrInter) Catch added in v0.6.0

func (m *MockPublishMgrInter) Catch() (model.Publish, error)

Catch mocks base method.

func (*MockPublishMgrInter) Count added in v0.6.0

func (m *MockPublishMgrInter) Count() (int64, error)

Count mocks base method.

func (*MockPublishMgrInter) CreatePublish added in v0.6.0

func (m *MockPublishMgrInter) CreatePublish(bean *model.Publish) error

CreatePublish mocks base method.

func (*MockPublishMgrInter) DeletePublish added in v0.6.0

func (m *MockPublishMgrInter) DeletePublish(bean *model.Publish) error

DeletePublish mocks base method.

func (*MockPublishMgrInter) EXPECT added in v0.6.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublishMgrInter) FetchIndexByProjectID added in v0.6.0

func (m *MockPublishMgrInter) FetchIndexByProjectID(projectID, namespaceID int, status int8) ([]*model.Publish, error)

FetchIndexByProjectID mocks base method.

func (*MockPublishMgrInter) Get added in v0.6.0

func (m *MockPublishMgrInter) Get() (model.Publish, error)

Get mocks base method.

func (*MockPublishMgrInter) GetTableName added in v0.6.0

func (m *MockPublishMgrInter) GetTableName() string

GetTableName mocks base method.

func (*MockPublishMgrInter) Gets added in v0.6.0

func (m *MockPublishMgrInter) Gets() ([]model.Publish, error)

Gets mocks base method.

func (*MockPublishMgrInter) HasRecord added in v0.6.0

func (m *MockPublishMgrInter) HasRecord() (bool, error)

HasRecord mocks base method.

func (*MockPublishMgrInter) ListPublish added in v0.6.0

func (m *MockPublishMgrInter) ListPublish(limit, offset int, sort string) ([]model.Publish, error)

ListPublish mocks base method.

func (*MockPublishMgrInter) Reset added in v0.6.0

func (m *MockPublishMgrInter) Reset() *_PublishMgr

Reset mocks base method.

func (*MockPublishMgrInter) Tx added in v0.6.0

func (m *MockPublishMgrInter) Tx(tx *gorm.DB) *_PublishMgr

Tx mocks base method.

func (*MockPublishMgrInter) UpdatePublish added in v0.6.0

func (m *MockPublishMgrInter) UpdatePublish(bean *model.Publish) error

UpdatePublish mocks base method.

func (*MockPublishMgrInter) WithCreateTime added in v0.6.0

func (m *MockPublishMgrInter) WithCreateTime(createTime interface{}, cond ...string) Option

WithCreateTime mocks base method.

func (*MockPublishMgrInter) WithID added in v0.6.0

func (m *MockPublishMgrInter) WithID(id interface{}, cond ...string) Option

WithID mocks base method.

func (*MockPublishMgrInter) WithNamespaceID added in v0.6.0

func (m *MockPublishMgrInter) WithNamespaceID(namespaceID interface{}, cond ...string) Option

WithNamespaceID mocks base method.

func (*MockPublishMgrInter) WithOptions added in v0.6.0

func (m *MockPublishMgrInter) WithOptions(opts ...Option) *_PublishMgr

WithOptions mocks base method.

func (*MockPublishMgrInter) WithPrepareStmt added in v0.6.0

func (m *MockPublishMgrInter) WithPrepareStmt()

WithPrepareStmt mocks base method.

func (*MockPublishMgrInter) WithProjectID added in v0.6.0

func (m *MockPublishMgrInter) WithProjectID(projectID interface{}, cond ...string) Option

WithProjectID mocks base method.

func (*MockPublishMgrInter) WithPublishToken added in v0.6.0

func (m *MockPublishMgrInter) WithPublishToken(publishToken interface{}, cond ...string) Option

WithPublishToken mocks base method.

func (*MockPublishMgrInter) WithSelects added in v0.6.0

func (m *MockPublishMgrInter) WithSelects(idName string, selects ...string) *_PublishMgr

WithSelects mocks base method.

func (*MockPublishMgrInter) WithStatus added in v0.6.0

func (m *MockPublishMgrInter) WithStatus(status interface{}, cond ...string) Option

WithStatus mocks base method.

func (*MockPublishMgrInter) WithUpdateTime added in v0.6.0

func (m *MockPublishMgrInter) WithUpdateTime(updateTime interface{}, cond ...string) Option

WithUpdateTime mocks base method.

type MockPublishMgrInterMockRecorder added in v0.6.0

type MockPublishMgrInterMockRecorder struct {
	// contains filtered or unexported fields
}

MockPublishMgrInterMockRecorder is the mock recorder for MockPublishMgrInter.

func (*MockPublishMgrInterMockRecorder) Catch added in v0.6.0

Catch indicates an expected call of Catch.

func (*MockPublishMgrInterMockRecorder) Count added in v0.6.0

Count indicates an expected call of Count.

func (*MockPublishMgrInterMockRecorder) CreatePublish added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) CreatePublish(bean interface{}) *gomock.Call

CreatePublish indicates an expected call of CreatePublish.

func (*MockPublishMgrInterMockRecorder) DeletePublish added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) DeletePublish(bean interface{}) *gomock.Call

DeletePublish indicates an expected call of DeletePublish.

func (*MockPublishMgrInterMockRecorder) FetchIndexByProjectID added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) FetchIndexByProjectID(projectID, namespaceID, status interface{}) *gomock.Call

FetchIndexByProjectID indicates an expected call of FetchIndexByProjectID.

func (*MockPublishMgrInterMockRecorder) Get added in v0.6.0

Get indicates an expected call of Get.

func (*MockPublishMgrInterMockRecorder) GetTableName added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) GetTableName() *gomock.Call

GetTableName indicates an expected call of GetTableName.

func (*MockPublishMgrInterMockRecorder) Gets added in v0.6.0

Gets indicates an expected call of Gets.

func (*MockPublishMgrInterMockRecorder) HasRecord added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) HasRecord() *gomock.Call

HasRecord indicates an expected call of HasRecord.

func (*MockPublishMgrInterMockRecorder) ListPublish added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) ListPublish(limit, offset, sort interface{}) *gomock.Call

ListPublish indicates an expected call of ListPublish.

func (*MockPublishMgrInterMockRecorder) Reset added in v0.6.0

Reset indicates an expected call of Reset.

func (*MockPublishMgrInterMockRecorder) Tx added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) Tx(tx interface{}) *gomock.Call

Tx indicates an expected call of Tx.

func (*MockPublishMgrInterMockRecorder) UpdatePublish added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) UpdatePublish(bean interface{}) *gomock.Call

UpdatePublish indicates an expected call of UpdatePublish.

func (*MockPublishMgrInterMockRecorder) WithCreateTime added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithCreateTime(createTime interface{}, cond ...interface{}) *gomock.Call

WithCreateTime indicates an expected call of WithCreateTime.

func (*MockPublishMgrInterMockRecorder) WithID added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithID(id interface{}, cond ...interface{}) *gomock.Call

WithID indicates an expected call of WithID.

func (*MockPublishMgrInterMockRecorder) WithNamespaceID added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithNamespaceID(namespaceID interface{}, cond ...interface{}) *gomock.Call

WithNamespaceID indicates an expected call of WithNamespaceID.

func (*MockPublishMgrInterMockRecorder) WithOptions added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithOptions(opts ...interface{}) *gomock.Call

WithOptions indicates an expected call of WithOptions.

func (*MockPublishMgrInterMockRecorder) WithPrepareStmt added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithPrepareStmt() *gomock.Call

WithPrepareStmt indicates an expected call of WithPrepareStmt.

func (*MockPublishMgrInterMockRecorder) WithProjectID added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithProjectID(projectID interface{}, cond ...interface{}) *gomock.Call

WithProjectID indicates an expected call of WithProjectID.

func (*MockPublishMgrInterMockRecorder) WithPublishToken added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithPublishToken(publishToken interface{}, cond ...interface{}) *gomock.Call

WithPublishToken indicates an expected call of WithPublishToken.

func (*MockPublishMgrInterMockRecorder) WithSelects added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithSelects(idName interface{}, selects ...interface{}) *gomock.Call

WithSelects indicates an expected call of WithSelects.

func (*MockPublishMgrInterMockRecorder) WithStatus added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithStatus(status interface{}, cond ...interface{}) *gomock.Call

WithStatus indicates an expected call of WithStatus.

func (*MockPublishMgrInterMockRecorder) WithUpdateTime added in v0.6.0

func (mr *MockPublishMgrInterMockRecorder) WithUpdateTime(updateTime interface{}, cond ...interface{}) *gomock.Call

WithUpdateTime indicates an expected call of WithUpdateTime.

type MockPublishRepo added in v0.6.0

type MockPublishRepo struct {
	// contains filtered or unexported fields
}

MockPublishRepo is a mock of PublishRepo interface.

func NewMockPublishRepo added in v0.6.0

func NewMockPublishRepo(ctrl *gomock.Controller) *MockPublishRepo

NewMockPublishRepo creates a new mock instance.

func (*MockPublishRepo) EXPECT added in v0.6.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublishRepo) Mgr added in v0.6.0

Mgr mocks base method.

type MockPublishRepoMockRecorder added in v0.6.0

type MockPublishRepoMockRecorder struct {
	// contains filtered or unexported fields
}

MockPublishRepoMockRecorder is the mock recorder for MockPublishRepo.

func (*MockPublishRepoMockRecorder) Mgr added in v0.6.0

func (mr *MockPublishRepoMockRecorder) Mgr(ctx, db interface{}) *gomock.Call

Mgr indicates an expected call of Mgr.

type NamespaceRepo

type NamespaceRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_NamespaceMgr
}

func NewNamespaceRepo

func NewNamespaceRepo() NamespaceRepo

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option overrides behavior of Connect.

type ProjectGroupRepo

type ProjectGroupRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_ProjectGroupMgr
}

func NewProjectGroupRepo

func NewProjectGroupRepo() ProjectGroupRepo

type ProjectRepo

type ProjectRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_ProjectMgr
}

func NewProjectRepo

func NewProjectRepo() ProjectRepo

type PublishConfigRepo

type PublishConfigRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_PublishConfigMgr
}

func NewPublishConfigRepo

func NewPublishConfigRepo() PublishConfigRepo

type PublishMgrInter added in v0.6.0

type PublishMgrInter interface {
	ListPublish(
		limit, offset int,
		sort string,
	) (result []model.Publish, err error)
	WithSelects(idName string, selects ...string) *_PublishMgr
	WithOptions(opts ...Option) *_PublishMgr
	GetTableName() string
	Tx(tx *gorm.DB) *_PublishMgr
	WithPrepareStmt()
	Reset() *_PublishMgr
	Get() (result model.Publish, err error)
	Gets() (results []model.Publish, err error)
	Catch() (results model.Publish, err error)
	Count() (count int64, err error)
	HasRecord() (bool, error)
	WithID(id interface{}, cond ...string) Option
	WithProjectID(projectID interface{}, cond ...string) Option
	WithNamespaceID(namespaceID interface{}, cond ...string) Option
	WithPublishToken(publishToken interface{}, cond ...string) Option
	WithStatus(status interface{}, cond ...string) Option
	WithCreateTime(createTime interface{}, cond ...string) Option
	WithUpdateTime(updateTime interface{}, cond ...string) Option
	CreatePublish(bean *model.Publish) (err error)
	UpdatePublish(bean *model.Publish) (err error)
	DeletePublish(bean *model.Publish) (err error)
	FetchIndexByProjectID(projectID int, namespaceID int, status int8) (results []*model.Publish, err error)
}

PublishMgrInter 用于 Mock Repo 层做单元测试

type PublishRepo added in v0.6.0

type PublishRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) PublishMgrInter
}

func NewPublishRepo added in v0.6.0

func NewPublishRepo() PublishRepo

type PublishStrategyRepo added in v0.6.0

type PublishStrategyRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_PublishStrategyMgr
}

func NewPublishStrategyRepo added in v0.6.0

func NewPublishStrategyRepo() PublishStrategyRepo

type StaffGroupRelRepo

type StaffGroupRelRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_StaffGroupRelMgr
}

func NewStaffGroupRelRepo

func NewStaffGroupRelRepo() StaffGroupRelRepo

type StaffRepo

type StaffRepo interface {
	Mgr(ctx context.Context, db *gorm.DB) *_StaffMgr
}

func NewStaffRepo

func NewStaffRepo() StaffRepo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL