Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppendEntriesRequestType string = "append_entries_request"
View Source
var AppendEntriesResponseType string = "append_entries_response"
View Source
var RequestVoteRequestType string = "request_vote_request"
View Source
var RequestVoteResponseType string = "request_vote_response"
Functions ¶
func TLCEventMapper ¶
Types ¶
type AppendEntriesRequest ¶
type AppendEntriesResponse ¶
type RedisRaftMessage ¶
type RedisRaftMessage struct {
Type string `json:"type"`
AppendEntriesRequest `json:"-"`
AppendEntriesResponse `json:"-"`
RequestVoteRequest `json:"-"`
RequestVoteResponse `json:"-"`
}
func (RedisRaftMessage) Clone ¶
func (r RedisRaftMessage) Clone() types.ParsedMessage
func (RedisRaftMessage) Marshal ¶
func (r RedisRaftMessage) Marshal() ([]byte, error)
func (RedisRaftMessage) String ¶
func (r RedisRaftMessage) String() string
type RedisRaftMessageParser ¶
type RedisRaftMessageParser struct{}
func (*RedisRaftMessageParser) Parse ¶
func (*RedisRaftMessageParser) Parse(data []byte) (types.ParsedMessage, error)
type RequestVoteRequest ¶
Click to show internal directories.
Click to hide internal directories.