ActivationValuesRepository

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	InsertValue(c context.Context, tx postgres.SQLTx, featureId uuid.UUID, keyId *uuid.UUID, paramId *uuid.UUID, value int) (int64, error)

	GetNewByServiceName(c context.Context, serviceName string, lastVersion int64) (int64, []*dto.Feature, error)

	DeleteByFeatureId(c context.Context, tx postgres.SQLTx, featureId uuid.UUID) error
	DeleteByKeyId(c context.Context, tx postgres.SQLTx, keyId uuid.UUID) error
	DeleteByParamId(c context.Context, tx postgres.SQLTx, paramId uuid.UUID) error
}

type Repository

type Repository struct {
	repository.Mock
	// contains filtered or unexported fields
}

func New

func New(name string) *Repository

func NewForTest added in v0.4.1

func NewForTest(db postgres.IPostgres, cache redis.IRedis, logger interfaces.ILogger) *Repository

func (*Repository) DeleteByFeatureId

func (t *Repository) DeleteByFeatureId(c context.Context, tx postgres.SQLTx, featureId uuid.UUID) error

func (*Repository) DeleteByKeyId

func (t *Repository) DeleteByKeyId(c context.Context, tx postgres.SQLTx, keyId uuid.UUID) error

func (*Repository) DeleteByParamId

func (t *Repository) DeleteByParamId(c context.Context, tx postgres.SQLTx, paramId uuid.UUID) error

func (*Repository) GetNewByServiceName added in v0.4.0

func (t *Repository) GetNewByServiceName(c context.Context, serviceName string, lastVersion int64) (int64, []*dto.Feature, error)

func (*Repository) Init

func (t *Repository) Init(app interfaces.IEngine, _ map[string]interface{}) error

func (*Repository) InsertValue

func (t *Repository) InsertValue(c context.Context, tx postgres.SQLTx, featureId uuid.UUID, keyId *uuid.UUID, paramId *uuid.UUID, value int) (int64, error)

Jump to

Keyboard shortcuts

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