Documentation ¶
Index ¶
- func ServerInterceptor() grpc.ServerOption
- type Addresses
- type Check
- type Client
- type Cluster
- func (c *Cluster) Classifier(ksid []byte) ([]string, gobol.Error)
- func (c *Cluster) Meta(nodeID string, metas []*pb.Meta) error
- func (c *Cluster) MetaClassifier(ksid []byte) (string, gobol.Error)
- func (c *Cluster) Read(ksid, tsid string, start, end int64) ([]*pb.Point, gobol.Error)
- func (c *Cluster) SelfID() string
- func (c *Cluster) Stop()
- func (c *Cluster) Write(nodes []string, pts []*pb.Point)
- type Conf
- type Config
- type Consul
- type ConsulConfig
- type GrpcServer
- type Health
- type KV
- type Local
- type Node
- type Service
- type TagAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerInterceptor ¶
func ServerInterceptor() grpc.ServerOption
Types ¶
type Check ¶
type Check struct { Node string `json:"Node"` CheckID string `json:"CheckID"` Name string `json:"Name"` Status string `json:"Status"` Notes string `json:"Notes"` Output string `json:"Output"` ServiceID string `json:"ServiceID"` ServiceName string `json:"ServiceName"` CreateIndex int `json:"CreateIndex"` ModifyIndex int `json:"ModifyIndex"` }
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) MetaClassifier ¶
type Config ¶
type Config struct { Consul ConsulConfig //gRPC port Port int //Ticker interval to check cluster changes CheckInterval string //Time, in seconds, to wait before applying cluster changes to consistency hashing ApplyWait int64 GrpcWriteTimeout string GrpcReadTimeout string GrpcMetaTimeout string GrpcMaxServerConn int64 GrpcBurstServerConn int MaxListenerConn int LogPath string }
type ConsulConfig ¶
type ConsulConfig struct { //Consul agent adrress without the scheme Address string //Consul agent port Port int //Location of consul agent cert file Cert string //Location of consul agent key file Key string //Location of consul agent CA file CA string //Name of the service to be probed on consul Service string //Tag of the service Tag string // Token of the service Token string // Protocol of the service Protocol string }
type GrpcServer ¶
type GrpcServer interface { Write(stream pb.Timeseries_WriteServer) error Read(q *pb.Query, stream pb.Timeseries_ReadServer) error WriteMeta(stream pb.Timeseries_WriteMetaServer) error Stop() }
Click to show internal directories.
Click to hide internal directories.