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 + func NewEvaluationRepository(redisClient *redis.Client, store repository.Evaluation) repository.Evaluation + func NewFlagRepository(redisClient *redis.Client, store repository.Flag) repository.Flag + func NewRuleRepository(redisClient *redis.Client, store repository.Rule, flagStore repository.Flag, ...) repository.Rule + func NewSegmentRepository(redisClient *redis.Client, store repository.Segment) repository.Segment + func NewVariantRepository(redisClient *redis.Client, store repository.Variant, flagStore repository.Flag) repository.Variant + type EvaluationRepository struct + func (r *EvaluationRepository) DeleteAllByUserID(ctx context.Context, userID string) error + func (r *EvaluationRepository) DeleteByID(ctx context.Context, id string) error + func (r *EvaluationRepository) FindAllByReqHash(ctx context.Context, reqHash string) (flaggio.EvaluationList, error) + func (r *EvaluationRepository) FindAllByUserID(ctx context.Context, userID string, search *string, offset, limit *int64) (*flaggio.EvaluationResults, error) + func (r *EvaluationRepository) FindByID(ctx context.Context, id string) (*flaggio.Evaluation, error) + func (r *EvaluationRepository) FindByReqHashAndFlagKey(ctx context.Context, reqHash, flagKey string) (*flaggio.Evaluation, error) + func (r *EvaluationRepository) ReplaceAll(ctx context.Context, userID, reqHash string, evals flaggio.EvaluationList) error + func (r *EvaluationRepository) ReplaceOne(ctx context.Context, userID string, eval *flaggio.Evaluation) error + type FlagRepository struct + func (r *FlagRepository) Create(ctx context.Context, input flaggio.NewFlag) (string, error) + func (r *FlagRepository) Delete(ctx context.Context, id string) error + func (r *FlagRepository) FindAll(ctx context.Context, search *string, offset, limit *int64) (*flaggio.FlagResults, error) + func (r *FlagRepository) FindByID(ctx context.Context, id string) (*flaggio.Flag, error) + func (r *FlagRepository) FindByKey(ctx context.Context, key string) (*flaggio.Flag, error) + func (r *FlagRepository) Update(ctx context.Context, id string, input flaggio.UpdateFlag) error + type RuleRepository struct + func (r *RuleRepository) CreateFlagRule(ctx context.Context, flagID string, input flaggio.NewFlagRule) (string, error) + func (r *RuleRepository) CreateSegmentRule(ctx context.Context, segmentID string, input flaggio.NewSegmentRule) (string, error) + func (r *RuleRepository) DeleteFlagRule(ctx context.Context, flagID, id string) error + func (r *RuleRepository) DeleteSegmentRule(ctx context.Context, segmentID, id string) error + func (r *RuleRepository) FindFlagRuleByID(ctx context.Context, flagIDHex, idHex string) (*flaggio.FlagRule, error) + func (r *RuleRepository) FindSegmentRuleByID(ctx context.Context, segmentIDHex, idHex string) (*flaggio.SegmentRule, error) + func (r *RuleRepository) UpdateFlagRule(ctx context.Context, flagID, id string, input flaggio.UpdateFlagRule) error + func (r *RuleRepository) UpdateSegmentRule(ctx context.Context, segmentID, id string, input flaggio.UpdateSegmentRule) error + type SegmentRepository struct + func (r *SegmentRepository) Create(ctx context.Context, input flaggio.NewSegment) (string, error) + func (r *SegmentRepository) Delete(ctx context.Context, id string) error + func (r *SegmentRepository) FindAll(ctx context.Context, offset, limit *int64) ([]*flaggio.Segment, error) + func (r *SegmentRepository) FindByID(ctx context.Context, id string) (*flaggio.Segment, error) + func (r *SegmentRepository) Update(ctx context.Context, id string, input flaggio.UpdateSegment) error + type VariantRepository struct + func (r *VariantRepository) Create(ctx context.Context, flagID string, input flaggio.NewVariant) (string, error) + func (r *VariantRepository) Delete(ctx context.Context, flagID, id string) error + func (r *VariantRepository) FindByID(ctx context.Context, flagIDHex, idHex string) (*flaggio.Variant, error) + func (r *VariantRepository) Update(ctx context.Context, flagID, id string, input flaggio.UpdateVariant) error