Documentation
¶
Index ¶
- type Interface
- type Repository
- func (t *Repository) DeleteByFeatureId(c context.Context, tx postgres.SQLTx, featureId uuid.UUID) error
- func (t *Repository) DeleteByKeyId(c context.Context, tx postgres.SQLTx, keyId uuid.UUID) error
- func (t *Repository) DeleteByParamId(c context.Context, tx postgres.SQLTx, paramId uuid.UUID) error
- func (t *Repository) GetFeatures(c context.Context, serviceId string, page int, pageSize int, find string, ...) ([]*dto.Feature, int, error)
- func (t *Repository) GetNewByServiceName(c context.Context, serviceName string, lastVersion int64) (int64, []*dto.Feature, error)
- func (t *Repository) Init(app interfaces.IEngine, _ map[string]interface{}) error
- func (t *Repository) InsertValue(c context.Context, tx postgres.SQLTx, featureId uuid.UUID, keyId *uuid.UUID, ...) (int64, error)
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)
GetFeatures(c context.Context, serviceId string, page int, pageSize int, find string, isDeprecated bool, deprecatedTime time.Duration) ([]*dto.Feature, int, 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 (*Repository) DeleteByKeyId ¶
func (*Repository) DeleteByParamId ¶
func (*Repository) GetFeatures ¶ added in v0.5.0
func (*Repository) GetNewByServiceName ¶ added in v0.4.0
func (*Repository) Init ¶
func (t *Repository) Init(app interfaces.IEngine, _ map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.