Documentation ¶
Overview ¶
Package commonHealth ヘルスチェックタイプ
Package commonHealth ヘルスチェック ¶
Package commonHealth ヘルスチェック ¶
Package commonHealth is a generated GoMock package.
Index ¶
- type CommonHealth
- type CommonHealthEnum
- type CommonHealthMysqlRepository
- type CommonHealths
- type MockCommonHealthMysqlRepository
- func (m_2 *MockCommonHealthMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error)
- func (m *MockCommonHealthMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error)
- func (m_2 *MockCommonHealthMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *CommonHealth) error
- func (m *MockCommonHealthMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms CommonHealths) error
- func (m *MockCommonHealthMysqlRepository) EXPECT() *MockCommonHealthMysqlRepositoryMockRecorder
- func (m *MockCommonHealthMysqlRepository) Find(ctx context.Context, healthId int64) (*CommonHealth, error)
- func (m *MockCommonHealthMysqlRepository) FindList(ctx context.Context) (CommonHealths, error)
- func (m *MockCommonHealthMysqlRepository) FindOrNil(ctx context.Context, healthId int64) (*CommonHealth, error)
- func (m_2 *MockCommonHealthMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error)
- func (m *MockCommonHealthMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error)
- type MockCommonHealthMysqlRepositoryMockRecorder
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Find(ctx, healthId interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) FindOrNil(ctx, healthId interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockCommonHealthMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonHealth ¶
type CommonHealth struct { HealthId int64 Name string CommonHealthEnum CommonHealthEnum }
func NewCommonHealth ¶
func NewCommonHealth() *CommonHealth
func SetCommonHealth ¶
func SetCommonHealth(healthId int64, name string, commonHealthEnum CommonHealthEnum) *CommonHealth
type CommonHealthEnum ¶
type CommonHealthEnum int32
const ( CommonHealthEnum_CommonNone CommonHealthEnum = 0 CommonHealthEnum_CommonSuccess CommonHealthEnum = 1 )
type CommonHealthMysqlRepository ¶
type CommonHealthMysqlRepository interface { Find(ctx context.Context, healthId int64) (*CommonHealth, error) FindOrNil(ctx context.Context, healthId int64) (*CommonHealth, error) FindList(ctx context.Context) (CommonHealths, error) Create(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error) CreateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error) Update(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error) UpdateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error) Delete(ctx context.Context, tx *gorm.DB, m *CommonHealth) error DeleteList(ctx context.Context, tx *gorm.DB, ms CommonHealths) error }
type CommonHealths ¶
type CommonHealths []*CommonHealth
func NewCommonHealths ¶
func NewCommonHealths() CommonHealths
type MockCommonHealthMysqlRepository ¶
type MockCommonHealthMysqlRepository struct {
// contains filtered or unexported fields
}
MockCommonHealthMysqlRepository is a mock of CommonHealthMysqlRepository interface.
func NewMockCommonHealthMysqlRepository ¶
func NewMockCommonHealthMysqlRepository(ctrl *gomock.Controller) *MockCommonHealthMysqlRepository
NewMockCommonHealthMysqlRepository creates a new mock instance.
func (*MockCommonHealthMysqlRepository) Create ¶
func (m_2 *MockCommonHealthMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error)
Create mocks base method.
func (*MockCommonHealthMysqlRepository) CreateList ¶
func (m *MockCommonHealthMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error)
CreateList mocks base method.
func (*MockCommonHealthMysqlRepository) Delete ¶
func (m_2 *MockCommonHealthMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *CommonHealth) error
Delete mocks base method.
func (*MockCommonHealthMysqlRepository) DeleteList ¶
func (m *MockCommonHealthMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms CommonHealths) error
DeleteList mocks base method.
func (*MockCommonHealthMysqlRepository) EXPECT ¶
func (m *MockCommonHealthMysqlRepository) EXPECT() *MockCommonHealthMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommonHealthMysqlRepository) Find ¶
func (m *MockCommonHealthMysqlRepository) Find(ctx context.Context, healthId int64) (*CommonHealth, error)
Find mocks base method.
func (*MockCommonHealthMysqlRepository) FindList ¶
func (m *MockCommonHealthMysqlRepository) FindList(ctx context.Context) (CommonHealths, error)
FindList mocks base method.
func (*MockCommonHealthMysqlRepository) FindOrNil ¶
func (m *MockCommonHealthMysqlRepository) FindOrNil(ctx context.Context, healthId int64) (*CommonHealth, error)
FindOrNil mocks base method.
func (*MockCommonHealthMysqlRepository) Update ¶
func (m_2 *MockCommonHealthMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *CommonHealth) (*CommonHealth, error)
Update mocks base method.
func (*MockCommonHealthMysqlRepository) UpdateList ¶
func (m *MockCommonHealthMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms CommonHealths) (CommonHealths, error)
UpdateList mocks base method.
type MockCommonHealthMysqlRepositoryMockRecorder ¶
type MockCommonHealthMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCommonHealthMysqlRepositoryMockRecorder is the mock recorder for MockCommonHealthMysqlRepository.
func (*MockCommonHealthMysqlRepositoryMockRecorder) Create ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCommonHealthMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockCommonHealthMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCommonHealthMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockCommonHealthMysqlRepositoryMockRecorder) Find ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Find(ctx, healthId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockCommonHealthMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockCommonHealthMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) FindOrNil(ctx, healthId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockCommonHealthMysqlRepositoryMockRecorder) Update ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockCommonHealthMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockCommonHealthMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.