command

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface{}

func UnmarshalCommand

func UnmarshalCommand(cmd *proto.Command) (Command, error)

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,
	environmentNamespace string,
	comment string,
) *FeatureCommandHandler

func (*FeatureCommandHandler) AddClause

func (*FeatureCommandHandler) AddClauseValue

func (*FeatureCommandHandler) AddPrerequisite

func (*FeatureCommandHandler) AddRule

func (*FeatureCommandHandler) AddTag

func (*FeatureCommandHandler) AddUserToVariation

func (h *FeatureCommandHandler) AddUserToVariation(ctx context.Context, cmd *proto.AddUserToVariationCommand) error

func (*FeatureCommandHandler) AddVariation

func (*FeatureCommandHandler) ArchiveFeature

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 (*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 (*FeatureCommandHandler) CreateFeature

func (*FeatureCommandHandler) DeleteClause

func (*FeatureCommandHandler) DeleteFeature

func (*FeatureCommandHandler) DeleteRule

func (*FeatureCommandHandler) DisableFeature

func (*FeatureCommandHandler) EnableFeature

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 (*FeatureCommandHandler) RemoveUserFromVariation

func (h *FeatureCommandHandler) RemoveUserFromVariation(
	ctx context.Context,
	cmd *proto.RemoveUserFromVariationCommand,
) error

func (*FeatureCommandHandler) RemoveVariation

func (*FeatureCommandHandler) RenameFeature

func (*FeatureCommandHandler) ResetSamplingSeed

func (h *FeatureCommandHandler) ResetSamplingSeed(ctx context.Context, cmd *proto.ResetSamplingSeedCommand) error

func (*FeatureCommandHandler) UnarchiveFeature

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

type Handler interface {
	Handle(ctx context.Context, cmd Command) error
}

func NewFlagTriggerCommandHandler added in v0.4.0

func NewFlagTriggerCommandHandler(
	editor *eventproto.Editor,
	flagTrigger *domain.FlagTrigger,
	publisher publisher.Publisher,
	environmentNamespace string,
) Handler

func NewSegmentCommandHandler

func NewSegmentCommandHandler(
	editor *eventproto.Editor,
	segment *domain.Segment,
	publisher publisher.Publisher,
	environmentNamespace string,
) Handler

Jump to

Keyboard shortcuts

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