Discover Packages
github.com/rapidwein/viewstampedreplication
server
serviceconfig
package
Version:
v0.0.0-...-fea0aa2
Opens a new window with list of versions in this module.
Published: Jun 8, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Client struct {
Id string `json:"id"`
Port int `json:"port"`
}
type Config struct {
Id int `json:"-"`
QuorumSize int `json:"quorum_size"`
Replicas []Replica `json:"replicas"`
Clients []Client `json:"clients"`
Recover bool `json:"-"`
}
type Replica struct {
Id int `json:"id"`
Primary bool `json:"primary"`
Port int `json:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.