Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(config Parameters)
Run is a ready-to run (just call it from main()) implementation of a simple seed node.
Types ¶
type Parameters ¶ added in v0.0.32
type Parameters struct {
ClusterName string `kong:"help='Cluster name',default='clusterfunk'"`
ZeroConf bool `kong:"help='ZeroConf lookups for cluster',default='true'"`
NodeID string `kong:"help='Node ID for seed node',default=''"`
SerfPort int `kong:"help='Port to use for Serf',default='0'"`
SerfJoinAddress []string `kong:"help='Join address for Serf', default=''"`
LiveView bool `kong:"help='Display live view of nodes',default='false'"`
ShowAllNodes bool `kong:"help='Show all nodes, not just nodes alive',default='false'"`
SerfSnapshotPath string `kong:"help='Serf snapshot path (for persistence)'"`
HTTP int `kong:"help='Port for embedded web status page. 0 is disabled.',default='0'"`
OpenHTTP bool `kong:"help='Open web browser on web page',default='false'"`
DNS int `kong:"help='Port for embedded DNS server 0 is disabled',default='0'"`
}
Parameters holds the configuration for a seed node
Click to show internal directories.
Click to hide internal directories.