commands

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ArgCommands

func ArgCommands() (bool, extpoints.AtexitHandler)

true is when to abort

func InitStdLog

func InitStdLog()

LogInit sets up global log

func NewHelp

func NewHelp(logout io.Writer, loggerOptions ...extpoints.SetupLog) *help

func NewLog

func NewLog(prefix string, options ...extpoints.SetupLog) *extpoints.Log

func NewWebserver

func NewWebserver(defport int) *webserver

func Parse

func Parse(fs *flag.FlagSet, arguments []string)

func ParseCommand

func ParseCommand(handlers []extpoints.CommandHandler, args []string, loggerOptions ...extpoints.SetupLog) ([]extpoints.CommandHandler, error)

Types

type Carbond

type Carbond struct {
	Log           *extpoints.Log
	ServerAddr    string
	Conn          net.Conn
	*params.Delay // Expired, Tick methods
	Failing       bool
}

func (Carbond) CloseChans

func (cd Carbond) CloseChans()

func (Carbond) Reload

func (cd Carbond) Reload()

func (*Carbond) Tack

func (cd *Carbond) Tack()

func (Carbond) WantProcs

func (cd Carbond) WantProcs() bool

type Graphite

type Graphite struct {
	Log        *extpoints.Log
	DelayFlag  flags.Delay
	ServerAddr flags.Bind
}

type Graphites

type Graphites struct{}

func (Graphites) SetupFlagSet

func (_ Graphites) SetupFlagSet(cli *flag.FlagSet) extpoints.CommandLineHandler

type Helps

type Helps struct{}

func (Helps) SetupCommand

func (_ Helps) SetupCommand(fs *flag.FlagSet, loggerOptions ...extpoints.SetupLog) (extpoints.CommandHandler, io.Writer)

type Influx

type Influx struct {
	DelayFlag flags.Delay
	URL       string
	Database  string
	Username  string
	Password  string
}

type Influxes

type Influxes struct{}

func (Influxes) SetupFlagSet

func (_ Influxes) SetupFlagSet(cli *flag.FlagSet) extpoints.CommandLineHandler

type Librato

type Librato struct {
	DelayFlag            flags.Delay
	Email, Token, Source string
}

type Libratos

type Libratos struct{}

func (Libratos) SetupFlagSet

func (_ Libratos) SetupFlagSet(cli *flag.FlagSet) extpoints.CommandLineHandler

type ProfileCPU

type ProfileCPU struct {
	Log    *extpoints.Log
	Output string
	File   *os.File
}

func (*ProfileCPU) Atexit

func (pc *ProfileCPU) Atexit()

func (*ProfileCPU) Run

func (pc *ProfileCPU) Run() (err error)

type ProfileHeap

type ProfileHeap struct {
	Log    *extpoints.Log
	Output string
	File   *os.File
}

func (*ProfileHeap) Atexit

func (ph *ProfileHeap) Atexit()

func (*ProfileHeap) Run

func (ph *ProfileHeap) Run() (err error)

type ProfilesCPU

type ProfilesCPU struct{}

func (ProfilesCPU) SetupFlagSet

func (_ ProfilesCPU) SetupFlagSet(cli *flag.FlagSet) extpoints.CommandLineHandler

type ProfilesHeap

type ProfilesHeap struct{}

func (ProfilesHeap) SetupFlagSet

func (_ ProfilesHeap) SetupFlagSet(cli *flag.FlagSet) extpoints.CommandLineHandler

Directories

Path Synopsis
generated by go-extpoints -- DO NOT EDIT
generated by go-extpoints -- DO NOT EDIT

Jump to

Keyboard shortcuts

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