package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jun 6, 2024
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
¶
func RouteInner(app *iris.Application)
RouteInner 暂时不能加权限, 只能校验请求是否为集群内部IP而来
func RouteRaft(party iris.Party)
func RouteStore(party iris.Party)
type KeyCmd struct {
Cmd string `json:"cmd,omitempty"`
Key string `json:"key,omitempty"`
Value string `json:"value,omitempty"`
Exp int64 `json:"exp,omitempty"`
}
type RaftCmd struct {
Cmd string `json:"cmd,omitempty"`
NodeId string `json:"nodeId,omitempty"`
Addr string `json:"addr,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.