Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CorePrefix is the http prefix core should use.
CorePrefix = "/core"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultPort ¶
DefaultPort will return the hostname with the default internal Gansoi port. If hostport already contains a port, DefaultPort will simply return that.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core describes a Gansoi core node.
type Info ¶
type Info struct { sync.RWMutex SelfName string `json:"self"` CACert []byte `json:"ca-cert"` CAKey []byte `json:"ca-key"` NodeCert []byte `json:"node-cert"` NodeKey []byte `json:"node-key"` ClusterToken string `json:"cluster-token"` // contains filtered or unexported fields }
Info stores the current list of peers.
Click to show internal directories.
Click to hide internal directories.