Versions in this module Expand all Collapse all v0 v0.7.0 Aug 5, 2022 v0.6.0 Oct 27, 2021 Changes in this version + type Evaluation interface + DeleteAllByUserID func(ctx context.Context, userID string) error + DeleteByID func(ctx context.Context, id string) error + FindAllByReqHash func(ctx context.Context, reqHash string) (flaggio.EvaluationList, error) + FindAllByUserID func(ctx context.Context, userID string, search *string, offset, limit *int64) (*flaggio.EvaluationResults, error) + FindByID func(ctx context.Context, id string) (*flaggio.Evaluation, error) + FindByReqHashAndFlagKey func(ctx context.Context, reqHash, flagKey string) (*flaggio.Evaluation, error) + ReplaceAll func(ctx context.Context, userID, reqHash string, evals flaggio.EvaluationList) error + ReplaceOne func(ctx context.Context, userID string, eval *flaggio.Evaluation) error + type Flag interface + Create func(ctx context.Context, input flaggio.NewFlag) (string, error) + Delete func(ctx context.Context, id string) error + FindAll func(ctx context.Context, search *string, offset, limit *int64) (*flaggio.FlagResults, error) + FindByID func(ctx context.Context, id string) (*flaggio.Flag, error) + FindByKey func(ctx context.Context, key string) (*flaggio.Flag, error) + Update func(ctx context.Context, id string, input flaggio.UpdateFlag) error + type Rule interface + CreateFlagRule func(ctx context.Context, flagID string, input flaggio.NewFlagRule) (string, error) + CreateSegmentRule func(ctx context.Context, segmentID string, input flaggio.NewSegmentRule) (string, error) + DeleteFlagRule func(ctx context.Context, flagID, id string) error + DeleteSegmentRule func(ctx context.Context, segmentID, id string) error + FindFlagRuleByID func(ctx context.Context, flagIDHex, idHex string) (*flaggio.FlagRule, error) + FindSegmentRuleByID func(ctx context.Context, segmentIDHex, idHex string) (*flaggio.SegmentRule, error) + UpdateFlagRule func(ctx context.Context, flagID, id string, input flaggio.UpdateFlagRule) error + UpdateSegmentRule func(ctx context.Context, segmentID, id string, input flaggio.UpdateSegmentRule) error + type Segment interface + Create func(ctx context.Context, input flaggio.NewSegment) (string, error) + Delete func(ctx context.Context, id string) error + FindAll func(ctx context.Context, offset, limit *int64) ([]*flaggio.Segment, error) + FindByID func(ctx context.Context, id string) (*flaggio.Segment, error) + Update func(ctx context.Context, id string, input flaggio.UpdateSegment) error + type User interface + Delete func(ctx context.Context, userID string) error + FindAll func(ctx context.Context, search *string, offset, limit *int64) (*flaggio.UserResults, error) + FindByID func(ctx context.Context, id string) (*flaggio.User, error) + Replace func(ctx context.Context, userID string, userCtx flaggio.UserContext) error + type Variant interface + Create func(ctx context.Context, flagID string, input flaggio.NewVariant) (string, error) + Delete func(ctx context.Context, flagID, id string) error + FindByID func(ctx context.Context, flagIDHex, idHex string) (*flaggio.Variant, error) + Update func(ctx context.Context, flagID, id string, input flaggio.UpdateVariant) error