raftcmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func SerfCommands

func SerfCommands() sprint.Command

Types

type ClientProvider

type ClientProvider interface {
	DoWithClient(func(cli *client.RPCClient) error) error
}

type MemberOutput

type MemberOutput struct {
	Name   string            `json:"name"`
	Addr   string            `json:"addr"`
	Port   uint16            `json:"port"`
	Tags   map[string]string `json:"tags"`
	Status string            `json:"status"`
	Proto  map[string]uint8  `json:"protocol"`
	// contains filtered or unexported fields
}

type MembersContainer

type MembersContainer struct {
	Members []*MemberOutput `json:"members"`
}

func (MembersContainer) String

func (t MembersContainer) String() string

type SerfCommand

type SerfCommand interface {

	/**
	Full description of the command
	*/
	Help() string

	SubCommand() string

	Run(prov ClientProvider, args []string) error

	/**
	One line description of the command
	*/
	Synopsis() string
}

func SerfEventCommand

func SerfEventCommand() SerfCommand

func SerfInfoCommand

func SerfInfoCommand() SerfCommand

func SerfJoinCommand

func SerfJoinCommand() SerfCommand

func SerfLeaveCommand

func SerfLeaveCommand() SerfCommand

func SerfMembersCommand

func SerfMembersCommand() SerfCommand

func SerfMonitorCommand

func SerfMonitorCommand() SerfCommand

func SerfReachabilityCommand

func SerfReachabilityCommand() SerfCommand

func SerfRttCommand

func SerfRttCommand() SerfCommand

func SerfTagsCommand

func SerfTagsCommand() SerfCommand

func SerfVersionCommand

func SerfVersionCommand() SerfCommand

Jump to

Keyboard shortcuts

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