Documentation ¶
Overview ¶
Package masterAction アクション
Package masterAction アクション ¶
Package masterAction is a generated GoMock package.
Index ¶
- type MasterAction
- type MasterActionMysqlRepository
- type MasterActions
- type MockMasterActionMysqlRepository
- func (m_2 *MockMasterActionMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error)
- func (m_2 *MockMasterActionMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterAction) error
- func (m *MockMasterActionMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterActions) error
- func (m *MockMasterActionMysqlRepository) EXPECT() *MockMasterActionMysqlRepositoryMockRecorder
- func (m *MockMasterActionMysqlRepository) Find(ctx context.Context, masterActionId int64) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindByMasterActionStepEnum(ctx context.Context, ...) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindByMasterActionStepEnumAndTargetId(ctx context.Context, ...) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindList(ctx context.Context) (MasterActions, error)
- func (m *MockMasterActionMysqlRepository) FindListByMasterActionStepEnum(ctx context.Context, ...) (MasterActions, error)
- func (m *MockMasterActionMysqlRepository) FindListByMasterActionStepEnumAndTargetId(ctx context.Context, ...) (MasterActions, error)
- func (m *MockMasterActionMysqlRepository) FindListByTargetId(ctx context.Context, targetId *int64) (MasterActions, error)
- func (m *MockMasterActionMysqlRepository) FindOrNil(ctx context.Context, masterActionId int64) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnum(ctx context.Context, ...) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnumAndTargetId(ctx context.Context, ...) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) FindOrNilByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error)
- func (m_2 *MockMasterActionMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error)
- func (m *MockMasterActionMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error)
- type MockMasterActionMysqlRepositoryMockRecorder
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) Find(ctx, masterActionId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByTargetId(ctx, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByTargetId(ctx, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNil(ctx, masterActionId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByTargetId(ctx, targetId interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterActionMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterAction ¶
type MasterAction struct { MasterActionId int64 Name string MasterActionStepEnum masterActionStep.MasterActionStepEnum MasterActionTriggerEnum masterActionTrigger.MasterActionTriggerEnum TargetId *int64 TriggerMasterActionId *int64 Expiration *int32 }
func NewMasterAction ¶
func NewMasterAction() *MasterAction
func SetMasterAction ¶
func SetMasterAction(masterActionId int64, name string, masterActionStepEnum masterActionStep.MasterActionStepEnum, masterActionTriggerEnum masterActionTrigger.MasterActionTriggerEnum, targetId *int64, triggerMasterActionId *int64, expiration *int32) *MasterAction
type MasterActionMysqlRepository ¶
type MasterActionMysqlRepository interface { Find(ctx context.Context, masterActionId int64) (*MasterAction, error) FindOrNil(ctx context.Context, masterActionId int64) (*MasterAction, error) FindByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (*MasterAction, error) FindByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error) FindByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (*MasterAction, error) FindOrNilByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (*MasterAction, error) FindOrNilByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error) FindOrNilByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (*MasterAction, error) FindList(ctx context.Context) (MasterActions, error) FindListByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (MasterActions, error) FindListByTargetId(ctx context.Context, targetId *int64) (MasterActions, error) FindListByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (MasterActions, error) Create(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error) CreateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error) Update(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error) Delete(ctx context.Context, tx *gorm.DB, m *MasterAction) error DeleteList(ctx context.Context, tx *gorm.DB, ms MasterActions) error }
type MasterActions ¶
type MasterActions []*MasterAction
func NewMasterActions ¶
func NewMasterActions() MasterActions
type MockMasterActionMysqlRepository ¶
type MockMasterActionMysqlRepository struct {
// contains filtered or unexported fields
}
MockMasterActionMysqlRepository is a mock of MasterActionMysqlRepository interface.
func NewMockMasterActionMysqlRepository ¶
func NewMockMasterActionMysqlRepository(ctrl *gomock.Controller) *MockMasterActionMysqlRepository
NewMockMasterActionMysqlRepository creates a new mock instance.
func (*MockMasterActionMysqlRepository) Create ¶
func (m_2 *MockMasterActionMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error)
Create mocks base method.
func (*MockMasterActionMysqlRepository) CreateList ¶
func (m *MockMasterActionMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error)
CreateList mocks base method.
func (*MockMasterActionMysqlRepository) Delete ¶
func (m_2 *MockMasterActionMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterAction) error
Delete mocks base method.
func (*MockMasterActionMysqlRepository) DeleteList ¶
func (m *MockMasterActionMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterActions) error
DeleteList mocks base method.
func (*MockMasterActionMysqlRepository) EXPECT ¶
func (m *MockMasterActionMysqlRepository) EXPECT() *MockMasterActionMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMasterActionMysqlRepository) Find ¶
func (m *MockMasterActionMysqlRepository) Find(ctx context.Context, masterActionId int64) (*MasterAction, error)
Find mocks base method.
func (*MockMasterActionMysqlRepository) FindByMasterActionStepEnum ¶
func (m *MockMasterActionMysqlRepository) FindByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (*MasterAction, error)
FindByMasterActionStepEnum mocks base method.
func (*MockMasterActionMysqlRepository) FindByMasterActionStepEnumAndTargetId ¶
func (m *MockMasterActionMysqlRepository) FindByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (*MasterAction, error)
FindByMasterActionStepEnumAndTargetId mocks base method.
func (*MockMasterActionMysqlRepository) FindByTargetId ¶
func (m *MockMasterActionMysqlRepository) FindByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error)
FindByTargetId mocks base method.
func (*MockMasterActionMysqlRepository) FindList ¶
func (m *MockMasterActionMysqlRepository) FindList(ctx context.Context) (MasterActions, error)
FindList mocks base method.
func (*MockMasterActionMysqlRepository) FindListByMasterActionStepEnum ¶
func (m *MockMasterActionMysqlRepository) FindListByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (MasterActions, error)
FindListByMasterActionStepEnum mocks base method.
func (*MockMasterActionMysqlRepository) FindListByMasterActionStepEnumAndTargetId ¶
func (m *MockMasterActionMysqlRepository) FindListByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (MasterActions, error)
FindListByMasterActionStepEnumAndTargetId mocks base method.
func (*MockMasterActionMysqlRepository) FindListByTargetId ¶
func (m *MockMasterActionMysqlRepository) FindListByTargetId(ctx context.Context, targetId *int64) (MasterActions, error)
FindListByTargetId mocks base method.
func (*MockMasterActionMysqlRepository) FindOrNil ¶
func (m *MockMasterActionMysqlRepository) FindOrNil(ctx context.Context, masterActionId int64) (*MasterAction, error)
FindOrNil mocks base method.
func (*MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnum ¶
func (m *MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnum(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum) (*MasterAction, error)
FindOrNilByMasterActionStepEnum mocks base method.
func (*MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnumAndTargetId ¶
func (m *MockMasterActionMysqlRepository) FindOrNilByMasterActionStepEnumAndTargetId(ctx context.Context, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) (*MasterAction, error)
FindOrNilByMasterActionStepEnumAndTargetId mocks base method.
func (*MockMasterActionMysqlRepository) FindOrNilByTargetId ¶
func (m *MockMasterActionMysqlRepository) FindOrNilByTargetId(ctx context.Context, targetId *int64) (*MasterAction, error)
FindOrNilByTargetId mocks base method.
func (*MockMasterActionMysqlRepository) Update ¶
func (m_2 *MockMasterActionMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterAction) (*MasterAction, error)
Update mocks base method.
func (*MockMasterActionMysqlRepository) UpdateList ¶
func (m *MockMasterActionMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterActions) (MasterActions, error)
UpdateList mocks base method.
type MockMasterActionMysqlRepositoryMockRecorder ¶
type MockMasterActionMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockMasterActionMysqlRepositoryMockRecorder is the mock recorder for MockMasterActionMysqlRepository.
func (*MockMasterActionMysqlRepositoryMockRecorder) Create ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockMasterActionMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockMasterActionMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMasterActionMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockMasterActionMysqlRepositoryMockRecorder) Find ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) Find(ctx, masterActionId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnum ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
FindByMasterActionStepEnum indicates an expected call of FindByMasterActionStepEnum.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnumAndTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
FindByMasterActionStepEnumAndTargetId indicates an expected call of FindByMasterActionStepEnumAndTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindByTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindByTargetId(ctx, targetId interface{}) *gomock.Call
FindByTargetId indicates an expected call of FindByTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnum ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
FindListByMasterActionStepEnum indicates an expected call of FindListByMasterActionStepEnum.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnumAndTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
FindListByMasterActionStepEnumAndTargetId indicates an expected call of FindListByMasterActionStepEnumAndTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindListByTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindListByTargetId(ctx, targetId interface{}) *gomock.Call
FindListByTargetId indicates an expected call of FindListByTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNil(ctx, masterActionId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnum ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnum(ctx, masterActionStepEnum interface{}) *gomock.Call
FindOrNilByMasterActionStepEnum indicates an expected call of FindOrNilByMasterActionStepEnum.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnumAndTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByMasterActionStepEnumAndTargetId(ctx, masterActionStepEnum, targetId interface{}) *gomock.Call
FindOrNilByMasterActionStepEnumAndTargetId indicates an expected call of FindOrNilByMasterActionStepEnumAndTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByTargetId ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) FindOrNilByTargetId(ctx, targetId interface{}) *gomock.Call
FindOrNilByTargetId indicates an expected call of FindOrNilByTargetId.
func (*MockMasterActionMysqlRepositoryMockRecorder) Update ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockMasterActionMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockMasterActionMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.