Documentation ¶
Index ¶
- type Config
- type FSM
- type Metastore
- func (m *Metastore) AddBlock(_ context.Context, req *metastorepb.AddBlockRequest) (*metastorepb.AddBlockResponse, error)
- func (m *Metastore) ListBlocksForQuery(ctx context.Context, request *metastorepb.ListBlocksForQueryRequest) (*metastorepb.ListBlocksForQueryResponse, error)
- func (m *Metastore) Shutdown() error
- type RaftConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DataDir string `yaml:"data_dir"` Raft RaftConfig `yaml:"raft"` }
func (*Config) RegisterFlags ¶
type Metastore ¶
type Metastore struct { services.Service metastorepb.MetastoreServiceServer // contains filtered or unexported fields }
func New ¶
func New(config Config, logger log.Logger, reg prometheus.Registerer, hs health.Service) (*Metastore, error)
func (*Metastore) AddBlock ¶
func (m *Metastore) AddBlock(_ context.Context, req *metastorepb.AddBlockRequest) (*metastorepb.AddBlockResponse, error)
func (*Metastore) ListBlocksForQuery ¶
func (m *Metastore) ListBlocksForQuery( ctx context.Context, request *metastorepb.ListBlocksForQueryRequest, ) ( *metastorepb.ListBlocksForQueryResponse, error, )
type RaftConfig ¶
type RaftConfig struct { Dir string `yaml:"dir"` BootstrapPeers []string `yaml:"bootstrap_peers"` ServerID string `yaml:"server_id"` BindAddress string `yaml:"bind_address"` AdvertiseAddress string `yaml:"advertise_address"` ApplyTimeout time.Duration `yaml:"apply_timeout" doc:"hidden"` }
func (*RaftConfig) RegisterFlags ¶
func (cfg *RaftConfig) RegisterFlags(f *flag.FlagSet)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.