Documentation
¶
Index ¶
- func GetNodeID(name string, maxNodes int, serverHost string, serverPort int) (int, error)
- func HTTPClient(w http.ResponseWriter, r *http.Request)
- func HTTPPing(w http.ResponseWriter, r *http.Request)
- func HTTPReset(w http.ResponseWriter, r *http.Request)
- func LoadClient() error
- func LoadServer() error
- func Reset(name string) error
- type Client
- type ControlPlane
- type NodeInfo
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeID ¶
* * GetNodeID * @param name string, maxNodes int, serverHost string, serverPort int * @return int, error *
func HTTPClient ¶ added in v1.1.100
func HTTPClient(w http.ResponseWriter, r *http.Request)
* * HTTPClient * @param w http.ResponseWriter * @param r *http.Request *
func HTTPPing ¶ added in v1.1.104
func HTTPPing(w http.ResponseWriter, r *http.Request)
* * HTTPReset * @param w http.ResponseWriter * @param r *http.Request *
Types ¶
type ControlPlane ¶
type ControlPlane struct {
Nodes map[int]*NodeInfo
MaxNodes int
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *ControlPlane
Click to show internal directories.
Click to hide internal directories.