Documentation
¶
Index ¶
- Constants
- type AbstractEndpoint
- type AuthEndpoint
- type BackendOpts
- type BackendStrategyOpts
- type Connections
- type EndpointName
- type EndpointOpts
- type FutureUnixTime
- type Instance
- func (instance *Instance) Init() error
- func (instance *Instance) MetaStore() backend.IMetadata
- func (instance *Instance) Opts() *Opts
- func (instance *Instance) RegisterConn(conn net.Conn)
- func (instance *Instance) RemoveConn(conn net.Conn)
- func (instance *Instance) RpcListener() net.Listener
- func (instance *Instance) SelectBackend(context backend.ContextBackend) (backend.IAbstractBackend, error)
- func (instance *Instance) ServeConn(conn net.Conn)
- func (instance *Instance) SetRpcListener(rpcListener net.Listener)
- func (instance *Instance) Shutdown() error
- func (instance *Instance) Start() (err error)
- func (instance *Instance) StartListening() error
- func (instance *Instance) Statistics() Stats
- type NoOpEndpoint
- type Opts
- type ReaderEndpoint
- type SeriesMetadataEndpoint
- type SessionId
- type SessionToken
- type Sessions
- type Stats
- type WriterEndpoint
Constants ¶
View Source
const ConnectionTimeout = rpc.DefaultTimeout
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractEndpoint ¶
type AbstractEndpoint interface {
// contains filtered or unexported methods
}
type AuthEndpoint ¶
type AuthEndpoint struct {
// contains filtered or unexported fields
}
func NewAuthEndpoint ¶
func NewAuthEndpoint() *AuthEndpoint
func (*AuthEndpoint) Execute ¶
func (endpoint *AuthEndpoint) Execute(args *types.AuthRequest, resp *types.AuthResponse) error
type BackendOpts ¶
type BackendStrategyOpts ¶
type Connections ¶
type Connections struct {
// contains filtered or unexported fields
}
func NewConnections ¶
func NewConnections() *Connections
func (*Connections) ExpiredConnections ¶
func (c *Connections) ExpiredConnections() uint64
type EndpointName ¶
type EndpointName string
func (EndpointName) String ¶
func (name EndpointName) String() string
type EndpointOpts ¶
type EndpointOpts struct {
// contains filtered or unexported fields
}
type FutureUnixTime ¶
type FutureUnixTime int64
type Instance ¶
type Instance struct { *Connections *Sessions // stats Stats // contains filtered or unexported fields }
func (*Instance) RegisterConn ¶
func (*Instance) RemoveConn ¶
func (*Instance) RpcListener ¶
func (*Instance) SelectBackend ¶
func (instance *Instance) SelectBackend(context backend.ContextBackend) (backend.IAbstractBackend, error)
func (*Instance) SetRpcListener ¶
func (*Instance) StartListening ¶
func (*Instance) Statistics ¶
type NoOpEndpoint ¶
type NoOpEndpoint struct {
// contains filtered or unexported fields
}
func NewNoOpEndpoint ¶
func NewNoOpEndpoint() *NoOpEndpoint
func (*NoOpEndpoint) Execute ¶
func (endpoint *NoOpEndpoint) Execute(args *types.ReadRequest, resp *types.ReadResponse) error
type Opts ¶
type Opts struct { rpc.OptsConnection `yaml:"connection"` TelnetPort int `yaml:"telnet_port"` TelnetHost string `yaml:"telnet_host"` Backends []BackendOpts `yaml:"backends"` BackendStrategy BackendStrategyOpts `yaml:"backendStrategy"` }
type ReaderEndpoint ¶
type ReaderEndpoint struct {
// contains filtered or unexported fields
}
func NewReaderEndpoint ¶
func NewReaderEndpoint() *ReaderEndpoint
func (*ReaderEndpoint) Execute ¶
func (endpoint *ReaderEndpoint) Execute(args *types.ReadRequest, resp *types.ReadResponse) error
type SeriesMetadataEndpoint ¶
type SeriesMetadataEndpoint struct {
// contains filtered or unexported fields
}
func NewSeriesMetadataEndpoint ¶
func NewSeriesMetadataEndpoint() *SeriesMetadataEndpoint
func (*SeriesMetadataEndpoint) Execute ¶
func (endpoint *SeriesMetadataEndpoint) Execute(args *types.SeriesMetadataRequest, resp *types.SeriesMetadataResponse) error
type SessionToken ¶
type SessionToken []byte
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
func NewSessions ¶
func NewSessions() *Sessions
func (*Sessions) ExpiredSession ¶
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func (Stats) NumAuthentications ¶
func (Stats) NumSeriesCreated ¶
func (Stats) NumSeriesInitialised ¶
func (Stats) NumValuesWritten ¶
type WriterEndpoint ¶
type WriterEndpoint struct {
// contains filtered or unexported fields
}
func NewWriterEndpoint ¶
func NewWriterEndpoint() *WriterEndpoint
func (*WriterEndpoint) Execute ¶
func (endpoint *WriterEndpoint) Execute(args *types.WriteRequest, resp *types.WriteResponse) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.