package
0.0.0-20190424025805-13d8ce4561ea
Repository: https://github.com/flike/kingbus.git
Documentation: pkg.go.dev

# Functions

BytesToString implements bytes to string.
DecodeBinlogEvent decode raft entry to binlog event.
DirExist check the dir if exist.
EncodeBinlogEvent encode binlog event to data.
ExistLog check log file if exist.
GetIndexName get the index file name by segment name.
GetIndexPath get index path by log path.
IsBinlogEvent check the raft entry is binlog event.
IsDirWriteable check dir if writeable.
MustMarshal execute occur error will panic.
MustUnmarshal execute occur error will panic.
NewBroadcast creates a new broadcast.
NewResp create a Resp.
NewUniformSample constructs a new uniform sample with the given reservoir size.
ReadDir reads the directory named by dirname and returns a list of directory entries sorted by filename.
SendRequest send PUT request to leader.
StringToBytes implements string to bytes.
No description provided by the author

# Constants

MasterGtidPurgedType is master gtid_purged flag.
MasterInfoType is master info flag.
MySQLBinlogEventType is mysql binlog event flag.
NodeAttributesType for update the node admin url.
PrivateDirMode grants owner to make/remove files inside the directory.
PrivateFileMode grants owner to read/write a file.
No description provided by the author
No description provided by the author
No description provided by the author
SyncerArgsType is syncer start args flag.

# Variables

IndexSuffix is the index file name suffix.
LogSuffix is the log file name suffix.

# Structs

Broadcast allows to send a signal to all listeners.
Resp is the response return to client.
UniformSample is a metric sample.

# Interfaces

Marshaler implements stuct to byte.
Unmarshaler implements byte to struct.