Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = 7894 ProductVersion = "0.3" // protocol version! ProductName = "GoshawkDB" HeartbeatInterval = 2 * time.Second ConnectionBufferSize = 131072 )
View Source
const ( RMIdEmpty = RMId(0) KeyLen = 20 ClientLen = KeyLen - 8 )
Variables ¶
View Source
var (
VersionZero = MakeTxnId([]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
)
Functions ¶
func ConfigureSocket ¶
Types ¶
type Capability ¶
type Capability struct {
msgs.Capability
}
var MaxCapability *Capability
func NewCapability ¶
func NewCapability(c msgs.Capability) *Capability
func (*Capability) Equal ¶
func (a *Capability) Equal(b *Capability) bool
func (*Capability) String ¶
func (c *Capability) String() string
func (*Capability) Union ¶
func (a *Capability) Union(b *Capability) *Capability
type SortUInt32 ¶
type SortUInt32 []uint32
func (SortUInt32) Len ¶
func (nums SortUInt32) Len() int
func (SortUInt32) Less ¶
func (nums SortUInt32) Less(i, j int) bool
func (SortUInt32) Sort ¶
func (nums SortUInt32) Sort()
func (SortUInt32) Swap ¶
func (nums SortUInt32) Swap(i, j int)
type VarUUId ¶
type VarUUId KeyType
func MakeVarUUId ¶
func MakeVarUUIdFromStr ¶
func (VarUUId) ConnectionCount ¶
Click to show internal directories.
Click to hide internal directories.