Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App interface { ListenAndServe() error Propose(ctx context.Context, command raft.Command) error WithTransportAuth(tag string, auth Auth) App OnCommit(func(...raft.Entry)) App gin.IRoutes }
func NewApp ¶
func NewApp(raftCfg raft.RaftConfig, loopCfg raft.LoopConfig, addr map[raft.NodeId]string) App
Click to show internal directories.
Click to hide internal directories.