Documentation ¶
Index ¶
- type Command
- type FeatureCommandHandler
- func (h *FeatureCommandHandler) AddClause(ctx context.Context, cmd *proto.AddClauseCommand) error
- func (h *FeatureCommandHandler) AddClauseValue(ctx context.Context, cmd *proto.AddClauseValueCommand) error
- func (h *FeatureCommandHandler) AddPrerequisite(ctx context.Context, cmd *proto.AddPrerequisiteCommand) error
- func (h *FeatureCommandHandler) AddRule(ctx context.Context, cmd *proto.AddRuleCommand) error
- func (h *FeatureCommandHandler) AddTag(ctx context.Context, cmd *proto.AddTagCommand) error
- func (h *FeatureCommandHandler) AddUserToVariation(ctx context.Context, cmd *proto.AddUserToVariationCommand) error
- func (h *FeatureCommandHandler) AddVariation(ctx context.Context, cmd *proto.AddVariationCommand) error
- func (h *FeatureCommandHandler) ArchiveFeature(ctx context.Context, cmd *proto.ArchiveFeatureCommand) error
- func (h *FeatureCommandHandler) ChangeClauseAttribute(ctx context.Context, cmd *proto.ChangeClauseAttributeCommand) error
- func (h *FeatureCommandHandler) ChangeClauseOperator(ctx context.Context, cmd *proto.ChangeClauseOperatorCommand) error
- func (h *FeatureCommandHandler) ChangeDefaultStrategy(ctx context.Context, cmd *proto.ChangeDefaultStrategyCommand) error
- func (h *FeatureCommandHandler) ChangeDescription(ctx context.Context, cmd *proto.ChangeDescriptionCommand) error
- func (h *FeatureCommandHandler) ChangeFixedStrategy(ctx context.Context, cmd *proto.ChangeFixedStrategyCommand) error
- func (h *FeatureCommandHandler) ChangeOffVariation(ctx context.Context, cmd *proto.ChangeOffVariationCommand) error
- func (h *FeatureCommandHandler) ChangePrerequisiteVariation(ctx context.Context, cmd *proto.ChangePrerequisiteVariationCommand) error
- func (h *FeatureCommandHandler) ChangeRolloutStrategy(ctx context.Context, cmd *proto.ChangeRolloutStrategyCommand) error
- func (h *FeatureCommandHandler) ChangeRuleStrategy(ctx context.Context, cmd *proto.ChangeRuleStrategyCommand) error
- func (h *FeatureCommandHandler) ChangeRulesOrder(ctx context.Context, cmd *proto.ChangeRulesOrderCommand) error
- func (h *FeatureCommandHandler) ChangeVariationDescription(ctx context.Context, cmd *proto.ChangeVariationDescriptionCommand) error
- func (h *FeatureCommandHandler) ChangeVariationName(ctx context.Context, cmd *proto.ChangeVariationNameCommand) error
- func (h *FeatureCommandHandler) ChangeVariationValue(ctx context.Context, cmd *proto.ChangeVariationValueCommand) error
- func (h *FeatureCommandHandler) CloneFeature(ctx context.Context, cmd *proto.CloneFeatureCommand) error
- func (h *FeatureCommandHandler) CreateFeature(ctx context.Context, cmd *proto.CreateFeatureCommand) error
- func (h *FeatureCommandHandler) DeleteClause(ctx context.Context, cmd *proto.DeleteClauseCommand) error
- func (h *FeatureCommandHandler) DeleteFeature(ctx context.Context, cmd *proto.DeleteFeatureCommand) error
- func (h *FeatureCommandHandler) DeleteRule(ctx context.Context, cmd *proto.DeleteRuleCommand) error
- func (h *FeatureCommandHandler) DisableFeature(ctx context.Context, cmd *proto.DisableFeatureCommand) error
- func (h *FeatureCommandHandler) EnableFeature(ctx context.Context, cmd *proto.EnableFeatureCommand) error
- func (h *FeatureCommandHandler) Handle(ctx context.Context, cmd Command) error
- func (h *FeatureCommandHandler) IncrementFeatureVersion(ctx context.Context, cmd *proto.IncrementFeatureVersionCommand) error
- func (h *FeatureCommandHandler) RemoveClauseValue(ctx context.Context, cmd *proto.RemoveClauseValueCommand) error
- func (h *FeatureCommandHandler) RemovePrerequisite(ctx context.Context, cmd *proto.RemovePrerequisiteCommand) error
- func (h *FeatureCommandHandler) RemoveTag(ctx context.Context, cmd *proto.RemoveTagCommand) error
- func (h *FeatureCommandHandler) RemoveUserFromVariation(ctx context.Context, cmd *proto.RemoveUserFromVariationCommand) error
- func (h *FeatureCommandHandler) RemoveVariation(ctx context.Context, cmd *proto.RemoveVariationCommand) error
- func (h *FeatureCommandHandler) RenameFeature(ctx context.Context, cmd *proto.RenameFeatureCommand) error
- func (h *FeatureCommandHandler) ResetSamplingSeed(ctx context.Context, cmd *proto.ResetSamplingSeedCommand) error
- func (h *FeatureCommandHandler) UnarchiveFeature(ctx context.Context, cmd *proto.UnarchiveFeatureCommand) error
- type FeatureEventFactory
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureCommandHandler ¶
type FeatureCommandHandler struct { Events []*eventproto.Event // contains filtered or unexported fields }
func NewEmptyFeatureCommandHandler ¶
func NewEmptyFeatureCommandHandler() *FeatureCommandHandler
for unit test
func NewFeatureCommandHandler ¶
func NewFeatureCommandHandler( editor *eventproto.Editor, feature *domain.Feature, environmentId string, comment string, ) (*FeatureCommandHandler, error)
func (*FeatureCommandHandler) AddClause ¶
func (h *FeatureCommandHandler) AddClause(ctx context.Context, cmd *proto.AddClauseCommand) error
func (*FeatureCommandHandler) AddClauseValue ¶
func (h *FeatureCommandHandler) AddClauseValue(ctx context.Context, cmd *proto.AddClauseValueCommand) error
func (*FeatureCommandHandler) AddPrerequisite ¶
func (h *FeatureCommandHandler) AddPrerequisite(ctx context.Context, cmd *proto.AddPrerequisiteCommand) error
func (*FeatureCommandHandler) AddRule ¶
func (h *FeatureCommandHandler) AddRule(ctx context.Context, cmd *proto.AddRuleCommand) error
func (*FeatureCommandHandler) AddTag ¶
func (h *FeatureCommandHandler) AddTag(ctx context.Context, cmd *proto.AddTagCommand) error
func (*FeatureCommandHandler) AddUserToVariation ¶
func (h *FeatureCommandHandler) AddUserToVariation(ctx context.Context, cmd *proto.AddUserToVariationCommand) error
func (*FeatureCommandHandler) AddVariation ¶
func (h *FeatureCommandHandler) AddVariation(ctx context.Context, cmd *proto.AddVariationCommand) error
func (*FeatureCommandHandler) ArchiveFeature ¶
func (h *FeatureCommandHandler) ArchiveFeature(ctx context.Context, cmd *proto.ArchiveFeatureCommand) error
func (*FeatureCommandHandler) ChangeClauseAttribute ¶
func (h *FeatureCommandHandler) ChangeClauseAttribute( ctx context.Context, cmd *proto.ChangeClauseAttributeCommand, ) error
func (*FeatureCommandHandler) ChangeClauseOperator ¶
func (h *FeatureCommandHandler) ChangeClauseOperator( ctx context.Context, cmd *proto.ChangeClauseOperatorCommand, ) error
func (*FeatureCommandHandler) ChangeDefaultStrategy ¶
func (h *FeatureCommandHandler) ChangeDefaultStrategy( ctx context.Context, cmd *proto.ChangeDefaultStrategyCommand, ) error
func (*FeatureCommandHandler) ChangeDescription ¶
func (h *FeatureCommandHandler) ChangeDescription(ctx context.Context, cmd *proto.ChangeDescriptionCommand) error
func (*FeatureCommandHandler) ChangeFixedStrategy ¶
func (h *FeatureCommandHandler) ChangeFixedStrategy( ctx context.Context, cmd *proto.ChangeFixedStrategyCommand, ) error
func (*FeatureCommandHandler) ChangeOffVariation ¶
func (h *FeatureCommandHandler) ChangeOffVariation(ctx context.Context, cmd *proto.ChangeOffVariationCommand) error
func (*FeatureCommandHandler) ChangePrerequisiteVariation ¶
func (h *FeatureCommandHandler) ChangePrerequisiteVariation( ctx context.Context, cmd *proto.ChangePrerequisiteVariationCommand, ) error
func (*FeatureCommandHandler) ChangeRolloutStrategy ¶
func (h *FeatureCommandHandler) ChangeRolloutStrategy( ctx context.Context, cmd *proto.ChangeRolloutStrategyCommand, ) error
func (*FeatureCommandHandler) ChangeRuleStrategy ¶
func (h *FeatureCommandHandler) ChangeRuleStrategy(ctx context.Context, cmd *proto.ChangeRuleStrategyCommand) error
func (*FeatureCommandHandler) ChangeRulesOrder ¶ added in v0.4.0
func (h *FeatureCommandHandler) ChangeRulesOrder(ctx context.Context, cmd *proto.ChangeRulesOrderCommand) error
func (*FeatureCommandHandler) ChangeVariationDescription ¶
func (h *FeatureCommandHandler) ChangeVariationDescription( ctx context.Context, cmd *proto.ChangeVariationDescriptionCommand, ) error
func (*FeatureCommandHandler) ChangeVariationName ¶
func (h *FeatureCommandHandler) ChangeVariationName( ctx context.Context, cmd *proto.ChangeVariationNameCommand, ) error
func (*FeatureCommandHandler) ChangeVariationValue ¶
func (h *FeatureCommandHandler) ChangeVariationValue( ctx context.Context, cmd *proto.ChangeVariationValueCommand, ) error
func (*FeatureCommandHandler) CloneFeature ¶
func (h *FeatureCommandHandler) CloneFeature(ctx context.Context, cmd *proto.CloneFeatureCommand) error
func (*FeatureCommandHandler) CreateFeature ¶
func (h *FeatureCommandHandler) CreateFeature(ctx context.Context, cmd *proto.CreateFeatureCommand) error
func (*FeatureCommandHandler) DeleteClause ¶
func (h *FeatureCommandHandler) DeleteClause(ctx context.Context, cmd *proto.DeleteClauseCommand) error
func (*FeatureCommandHandler) DeleteFeature ¶
func (h *FeatureCommandHandler) DeleteFeature(ctx context.Context, cmd *proto.DeleteFeatureCommand) error
func (*FeatureCommandHandler) DeleteRule ¶
func (h *FeatureCommandHandler) DeleteRule(ctx context.Context, cmd *proto.DeleteRuleCommand) error
func (*FeatureCommandHandler) DisableFeature ¶
func (h *FeatureCommandHandler) DisableFeature(ctx context.Context, cmd *proto.DisableFeatureCommand) error
func (*FeatureCommandHandler) EnableFeature ¶
func (h *FeatureCommandHandler) EnableFeature(ctx context.Context, cmd *proto.EnableFeatureCommand) error
func (*FeatureCommandHandler) Handle ¶
func (h *FeatureCommandHandler) Handle(ctx context.Context, cmd Command) error
func (*FeatureCommandHandler) IncrementFeatureVersion ¶
func (h *FeatureCommandHandler) IncrementFeatureVersion( ctx context.Context, cmd *proto.IncrementFeatureVersionCommand, ) error
func (*FeatureCommandHandler) RemoveClauseValue ¶
func (h *FeatureCommandHandler) RemoveClauseValue(ctx context.Context, cmd *proto.RemoveClauseValueCommand) error
func (*FeatureCommandHandler) RemovePrerequisite ¶
func (h *FeatureCommandHandler) RemovePrerequisite(ctx context.Context, cmd *proto.RemovePrerequisiteCommand) error
func (*FeatureCommandHandler) RemoveTag ¶
func (h *FeatureCommandHandler) RemoveTag(ctx context.Context, cmd *proto.RemoveTagCommand) error
func (*FeatureCommandHandler) RemoveUserFromVariation ¶
func (h *FeatureCommandHandler) RemoveUserFromVariation( ctx context.Context, cmd *proto.RemoveUserFromVariationCommand, ) error
func (*FeatureCommandHandler) RemoveVariation ¶
func (h *FeatureCommandHandler) RemoveVariation(ctx context.Context, cmd *proto.RemoveVariationCommand) error
func (*FeatureCommandHandler) RenameFeature ¶
func (h *FeatureCommandHandler) RenameFeature(ctx context.Context, cmd *proto.RenameFeatureCommand) error
func (*FeatureCommandHandler) ResetSamplingSeed ¶
func (h *FeatureCommandHandler) ResetSamplingSeed(ctx context.Context, cmd *proto.ResetSamplingSeedCommand) error
func (*FeatureCommandHandler) UnarchiveFeature ¶
func (h *FeatureCommandHandler) UnarchiveFeature(ctx context.Context, cmd *proto.UnarchiveFeatureCommand) error
type FeatureEventFactory ¶
type FeatureEventFactory struct {
// contains filtered or unexported fields
}
func (*FeatureEventFactory) CreateEvent ¶
func (s *FeatureEventFactory) CreateEvent( eventType eventproto.Event_Type, event proto.Message, ) (*domainproto.Event, error)
type Handler ¶
func NewFlagTriggerCommandHandler ¶ added in v0.4.0
func NewFlagTriggerCommandHandler( editor *eventproto.Editor, flagTrigger *domain.FlagTrigger, publisher publisher.Publisher, environmentID string, ) (Handler, error)
Click to show internal directories.
Click to hide internal directories.