metadata

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateFeatureGroupOpt

type CreateFeatureGroupOpt struct {
	types.CreateFeatureGroupOpt
	Category string
}

type CreateFeatureOpt

type CreateFeatureOpt struct {
	types.CreateFeatureOpt
	ValueType string
}

type CreateRevisionOpt

type CreateRevisionOpt struct {
	Revision    int64
	GroupName   string
	DataTable   string
	Description string
}

type GetRevisionOpt

type GetRevisionOpt struct {
	GroupName  *string
	Revision   *int64
	RevisionId *int32
}

type ListRevisionOpt

type ListRevisionOpt struct {
	GroupName  *string
	DataTables []string
}

type Store

type Store interface {
	// entity
	CreateEntity(ctx context.Context, opt types.CreateEntityOpt) error
	GetEntity(ctx context.Context, name string) (*types.Entity, error)
	ListEntity(ctx context.Context) ([]*types.Entity, error)
	UpdateEntity(ctx context.Context, opt types.UpdateEntityOpt) (int64, error)

	// feature
	CreateFeature(ctx context.Context, opt CreateFeatureOpt) error
	GetFeature(ctx context.Context, featureName string) (*types.Feature, error)
	ListFeature(ctx context.Context, opt types.ListFeatureOpt) (types.FeatureList, error)
	UpdateFeature(ctx context.Context, opt types.UpdateFeatureOpt) (int64, error)

	// feature group
	CreateFeatureGroup(ctx context.Context, opt CreateFeatureGroupOpt) error
	GetFeatureGroup(ctx context.Context, groupName string) (*types.FeatureGroup, error)
	ListFeatureGroup(ctx context.Context, entityName *string) ([]*types.FeatureGroup, error)
	UpdateFeatureGroup(ctx context.Context, opt types.UpdateFeatureGroupOpt) (int64, error)

	// revision
	CreateRevision(ctx context.Context, opt CreateRevisionOpt) error
	ListRevision(ctx context.Context, opt ListRevisionOpt) ([]*types.Revision, error)
	GetRevision(ctx context.Context, opt GetRevisionOpt) (*types.Revision, error)
	GetLatestRevision(ctx context.Context, groupName string) (*types.Revision, error)
	BuildRevisionRanges(ctx context.Context, groupName string) ([]*types.RevisionRange, error)

	io.Closer
}

Directories

Path Synopsis
Package mock_metadata is a generated GoMock package.
Package mock_metadata is a generated GoMock package.

Jump to

Keyboard shortcuts

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