package
0.0.0-20211222000705-db14c7d042cc
Repository: https://github.com/moontrade/server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Main entrypoint for the cluster node.
No description provided by the author
ReadRawMachineInfo reads the raw machine components.
RedisDial is a helper function that dials out to another Uhaha server with redis protocol and using the provded TLS config and Auth token.
Response ...
No description provided by the author
WriteRawMachineInfo writes raw components to the machine.

# Constants

Bolt is an on-disk single-file b+tree database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LevelDB is an on-disk LSM (LSM log-structured merge-tree) database.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
ErrCorrupt is returned when a data is invalid or corrupt.
ErrInvalid is returned when an operation has invalid arguments or options.
ErrNotLeader is returned when the raft leader is unknown.
No description provided by the author
ErrSyntax is returned where there was a syntax error.
ErrUnauthorized is returned when a client connection has not been authorized.
ErrUnknownCommand is returned when a command is not known.
ErrWrongNumArgs is returned when the arg count is wrong.

# Structs

Config is the configuration for managing the behavior of the application.
A Message represents a command and is in a format that is consumed by an Observer.
RawMachineInfo represents the raw components of the machine.
SendOptions ...
No description provided by the author

# Interfaces

HijackedConn is a connection that has been detached from the main service network loop.
The Machine interface is passed to every command.
Monitor represents an interface for sending and consuming command messages that are processed by a Service.
An Observer holds a channel that delivers the messages for all commands processed by a Service.
Rand is a random number interface used by Machine.
Receiver ...
Service is a client facing service.
A Snapshot is an interface that allows for Raft snapshots to be taken.

# Type aliases

The Backend database format used for storing Raft logs and meta data.
FilterArgs ...
Hijack is a function type that can be used to "hijack" a service client connection and allowing to perform I/O operations outside the standard network loop.