daemons

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admin = &goes.Goes{
	NAME:  "daemon",
	USAGE: "daemon COMMAND",
	APROPOS: lang.Alt{
		lang.EnUS: "daemon admin",
	},
	ByName: map[string]cmd.Cmd{
		"log":     Log{},
		"restart": Restart{},
		"start":   Start{},
		"status":  Status{},
		"stop":    Stop{},
	},
}

Functions

This section is empty.

Types

type Daemons

type Daemons struct {
	// contains filtered or unexported fields
}

func (*Daemons) List

func (d *Daemons) List(args struct{}, reply *string) error

func (*Daemons) Log

func (d *Daemons) Log(args []string, reply *string) error

func (*Daemons) Restart

func (d *Daemons) Restart(pids []int, reply *struct{}) error

func (*Daemons) Start

func (d *Daemons) Start(args []string, reply *struct{}) error

func (*Daemons) Stop

func (d *Daemons) Stop(pids []int, reply *struct{}) error

type Log

type Log struct{}

func (Log) Apropos

func (Log) Apropos() lang.Alt

func (Log) Main

func (Log) Main(args ...string) error

func (Log) String

func (Log) String() string

func (Log) Usage

func (Log) Usage() string

type Restart

type Restart struct{}

func (Restart) Apropos

func (Restart) Apropos() lang.Alt

func (Restart) Main

func (Restart) Main(args ...string) error

func (Restart) String

func (Restart) String() string

func (Restart) Usage

func (Restart) Usage() string

type Server

type Server struct {
	// Machines list goes command + args for daemons that run from start,
	// including redisd.  Note that dependent daemons should wait on a
	// respective redis key, e.g.
	//	redis.Hwait(redis.DefaultHash, "redis.ready", "true", TIMEOUT)
	// or
	//	redis.IsReady()
	Init [][]string
	Daemons
}

func (*Server) Apropos

func (*Server) Apropos() lang.Alt

func (*Server) Goes

func (c *Server) Goes(g *goes.Goes)

func (*Server) Kind

func (*Server) Kind() cmd.Kind

func (*Server) Main

func (c *Server) Main(args ...string) error

func (*Server) String

func (*Server) String() string

func (*Server) Usage

func (*Server) Usage() string

type Start

type Start struct{}

func (Start) Apropos

func (Start) Apropos() lang.Alt

func (Start) Main

func (Start) Main(args ...string) error

func (Start) String

func (Start) String() string

func (Start) Usage

func (Start) Usage() string

type Status

type Status struct{}

func (Status) Apropos

func (Status) Apropos() lang.Alt

func (Status) Main

func (Status) Main(args ...string) error

func (Status) String

func (Status) String() string

func (Status) Usage

func (Status) Usage() string

type Stop

type Stop struct{}

func (Stop) Apropos

func (Stop) Apropos() lang.Alt

func (Stop) Main

func (Stop) Main(args ...string) error

func (Stop) String

func (Stop) String() string

func (Stop) Usage

func (Stop) Usage() string

Jump to

Keyboard shortcuts

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