Documentation ¶
Overview ¶
Package metadata implements a Raft-based distributed metadata storage system. Powered by etcd.
Index ¶
Constants ¶
View Source
const ( // DefaultNamespace is the default namespace of the metadata stored in etcd. DefaultNamespace = "banyandb" // FlagEtcdEndpointsName is the default flag name for etcd endpoints. FlagEtcdEndpointsName = "etcd-endpoints" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexFilter ¶
type IndexFilter interface { // IndexRules fetches v1.IndexRule by subject defined in IndexRuleBinding IndexRules(ctx context.Context, subject *commonv1.Metadata) ([]*databasev1.IndexRule, error) // Subjects fetches Subject(s) by index rule Subjects(ctx context.Context, indexRule *databasev1.IndexRule, catalog commonv1.Catalog) ([]schema.Spec, error) }
IndexFilter provides methods to find a specific index related objects and vice versa.
type Repo ¶
type Repo interface { IndexFilter StreamRegistry() schema.Stream IndexRuleRegistry() schema.IndexRule IndexRuleBindingRegistry() schema.IndexRuleBinding MeasureRegistry() schema.Measure GroupRegistry() schema.Group TopNAggregationRegistry() schema.TopNAggregation PropertyRegistry() schema.Property RegisterHandler(string, schema.Kind, schema.EventHandler) }
Repo is the facade to interact with the metadata repository.
Directories ¶
Path | Synopsis |
---|---|
Package embeddedetcd implements an embedded etcd server.
|
Package embeddedetcd implements an embedded etcd server. |
Package embeddedserver implements an embedded meta server.
|
Package embeddedserver implements an embedded meta server. |
Package schema implements CRUD schema.
|
Package schema implements CRUD schema. |
Click to show internal directories.
Click to hide internal directories.