Documentation ¶
Index ¶
- func Delete(db gorp.SqlExecutor, id int64) error
- func Exists(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, ...) bool
- func Init(m *gorpmapper.Mapper)
- func Insert(m *gorpmapper.Mapper, db gorp.SqlExecutor, f *sdk.Feature) error
- func InvalidateCache(ctx context.Context, name sdk.FeatureName)
- func IsEnabled(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, ...) (exists bool, enabled bool)
- func LoadAll(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor) ([]sdk.Feature, error)
- func LoadByName(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, ...) (sdk.Feature, error)
- func Update(m *gorpmapper.Mapper, db gorp.SqlExecutor, f *sdk.Feature) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exists ¶
func Exists(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, name sdk.FeatureName) bool
func Init ¶
func Init(m *gorpmapper.Mapper)
func Insert ¶
func Insert(m *gorpmapper.Mapper, db gorp.SqlExecutor, f *sdk.Feature) error
func InvalidateCache ¶
func InvalidateCache(ctx context.Context, name sdk.FeatureName)
func IsEnabled ¶
func IsEnabled(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, name sdk.FeatureName, vars map[string]string) (exists bool, enabled bool)
func LoadAll ¶
func LoadAll(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor) ([]sdk.Feature, error)
func LoadByName ¶
func LoadByName(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecutor, name sdk.FeatureName) (sdk.Feature, error)
func Update ¶
func Update(m *gorpmapper.Mapper, db gorp.SqlExecutor, f *sdk.Feature) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.