intercom

package
v0.0.0-...-1a6bc1e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_NETWORKOFF string = "Networking disabled"
)

Variables

Functions

func RunServer

func RunServer(metaDir string)

Types

type EmptyMessage

type EmptyMessage struct{}

type IntercomServer

type IntercomServer struct{}

func (*IntercomServer) ConfirmUp

func (s *IntercomServer) ConfirmUp(req *EmptyMessage, resp *EmptyMessage) error

Literally just a method for paranoid-cli to ping PFSD

func (*IntercomServer) ListNodes

func (s *IntercomServer) ListNodes(req *EmptyMessage, resp *ListNodesResponse) error

func (*IntercomServer) Status

func (s *IntercomServer) Status(req *EmptyMessage, resp *StatusResponse) error

Provides health data for the current node.

type ListNodesResponse

type ListNodesResponse struct {
	Nodes []raft.Node
}

type StatusResponse

type StatusResponse struct {
	Uptime    time.Duration
	Status    string
	TLSActive bool
	Port      int
}

Jump to

Keyboard shortcuts

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