Documentation ¶
Index ¶
- Variables
- type InMemoryStore
- func (m *InMemoryStore) CAS(key string, value proto.Message) bool
- func (m *InMemoryStore) Context() context.Context
- func (m *InMemoryStore) Delete(key string)
- func (m *InMemoryStore) Get(key string) (proto.Message, bool)
- func (m *InMemoryStore) Keys() []string
- func (m *InMemoryStore) Len() int
- func (m *InMemoryStore) Set(key string, value proto.Message)
- type KeyValueStore
- type MonitorServer
- func (m *MonitorServer) GetBuckets(ctx context.Context, _ *types.Empty) (*types.BucketList, error)
- func (m *MonitorServer) GetKeys(ctx context.Context, bucket *types.Bucket) (*types.KeyList, error)
- func (m *MonitorServer) GetMetric(_ context.Context, key *types.Key) (*types.Metric, error)
- func (m *MonitorServer) Listen(key *types.Key, srv types.Monitor_ListenServer) error
- func (m *MonitorServer) Stream(srv types.Monitor_StreamServer) (streamError error)
- func (m *MonitorServer) Whois(ctx context.Context, req *types.WhoisRequest) (*types.WhoisResponse, error)
- type Receiver
- type StoreCreator
Constants ¶
This section is empty.
Variables ¶
View Source
var InMemoryStoreCreator inMemoryStoreCreator
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
func (*InMemoryStore) Context ¶
func (m *InMemoryStore) Context() context.Context
func (*InMemoryStore) Delete ¶
func (m *InMemoryStore) Delete(key string)
func (*InMemoryStore) Keys ¶
func (m *InMemoryStore) Keys() []string
func (*InMemoryStore) Len ¶
func (m *InMemoryStore) Len() int
type KeyValueStore ¶
type MonitorServer ¶
type MonitorServer struct { types.UnimplementedMonitorServer metrics.StatusController // contains filtered or unexported fields }
func NewMonitorServer ¶
func NewMonitorServer( ctx context.Context, conf config.MonitorSpec, storeCreator StoreCreator, ) *MonitorServer
func (*MonitorServer) GetBuckets ¶
func (m *MonitorServer) GetBuckets( ctx context.Context, _ *types.Empty, ) (*types.BucketList, error)
func (*MonitorServer) Listen ¶
func (m *MonitorServer) Listen( key *types.Key, srv types.Monitor_ListenServer, ) error
func (*MonitorServer) Stream ¶
func (m *MonitorServer) Stream( srv types.Monitor_StreamServer, ) (streamError error)
func (*MonitorServer) Whois ¶
func (m *MonitorServer) Whois( ctx context.Context, req *types.WhoisRequest, ) (*types.WhoisResponse, error)
type StoreCreator ¶
type StoreCreator interface {
NewStore(ctx context.Context) KeyValueStore
}
Click to show internal directories.
Click to hide internal directories.