intercom

package
v0.0.0-...-dde4a86 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Message constants

Variables

This section is empty.

Functions

func RunServer

func RunServer(metaDir string)

RunServer starts the intercom server on a socket stored in the specified meta directory

Types

type EmptyMessage

type EmptyMessage struct{}

EmptyMessage with no data

type ListNodesResponse

type ListNodesResponse struct {
	Nodes []raft.Node
}

ListNodesResponse with all Nodes

type Server

type Server struct{}

Server listens on a Unix socket to respond to questions asked by external applications.

func (*Server) ConfirmUp

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

ConfirmUp is simple method that paranoid-cli uses to ping PFSD

func (*Server) ListNodes

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

ListNodes that pfsd is connected to

func (*Server) Status

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

Status provides health data for the current node.

type StatusResponse

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

StatusResponse with data about the status of pfsd

Jump to

Keyboard shortcuts

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