controlplane

package
v1.1.103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeID

func GetNodeID(name string, maxNodes int, serverHost string, serverPort int) (int, error)

* * 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 HTTPReset

func HTTPReset(w http.ResponseWriter, r *http.Request)

* * HTTPReset * @param w http.ResponseWriter * @param r *http.Request *

func LoadClient

func LoadClient() error

* * LoadClient * @return error *

func LoadServer

func LoadServer() error

* * LoadServer * @return error *

func Reset

func Reset(name string) error

Types

type Client

type Client int

func (*Client) Ping

func (s *Client) Ping(args et.Json, reply *string) error

* * Ping * @param args et.Json, reply *string * @return error *

type ControlPlane

type ControlPlane struct {
	Nodes    map[int]*NodeInfo
	MaxNodes int
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage() *ControlPlane

type NodeInfo

type NodeInfo struct {
	ID         int
	InstanceID string
	LastSeen   time.Time
	Service    string
	Host       string
	Port       int
}

Control Plane Structs

func NewNodeID

func NewNodeID() *NodeInfo

type Server

type Server int

func (*Server) GetNodeID

func (s *Server) GetNodeID(args et.Json, reply *int) error

* * GetNodeID * @param args et.Json, reply int * @return error *

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL