Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockResponse ¶
BlockResponse defines response for block operations(recv, flush)
type Config ¶
type Config struct { DataShards int ParityShards int BlockSize int // size of each block, used as hint for the flusher buffer size ListenAddr string FlushSize int FlushTime int PrivKey string AggMq *aggmq.MQ }
Config used for creating the tlogserver
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig creates a new config, using sane defaults
func (*Config) RequiredDataServers ¶
RequiredDataServers returns how many data servers are required, based on the DataShards and ParityShards values.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server defines a tlog server
func (*Server) ListenAddr ¶
ListenAddr returns the address the (tcp) server is listening on
func (*Server) ReadDecodeClientMessage ¶
ReadDecodeClientMessage reads and decodes tlog message from client
Click to show internal directories.
Click to hide internal directories.