tool

package
v0.0.0-...-f7edce5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirectory

func IsDirectory(dir string) (bool, error)

func IsExecutable

func IsExecutable(mode os.FileMode) bool

func Merge

func Merge(src []byte, dst []byte) ([]byte, error)

Recursively merges source into/over destination

func RegisterJsonTypes

func RegisterJsonTypes()

func RegisterRandomDuration

func RegisterRandomDuration()

func RegisterTimeDuration

func RegisterTimeDuration()

func TrimToNil

func TrimToNil(str string) *string

Types

type CmdLine

type CmdLine struct {
	Port            string `json:"port"`
	AgentConfigPath string `json:"config-agent"`
	MinerConfigPath string `json:"config-miner"`
	NoUpdate        bool   `json:"no-update"`
}

Contains all the variables passed in on the command line.

func NewCmdLine

func NewCmdLine() CmdLine

type ConfRiceBox

type ConfRiceBox *rice.Box

type HtmlHandlerFunc

type HtmlHandlerFunc http.HandlerFunc

func (HtmlHandlerFunc) ServeHTTP

func (f HtmlHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)

type JsonHandlerFunc

type JsonHandlerFunc http.HandlerFunc

func (JsonHandlerFunc) ServeHTTP

func (f JsonHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RandomDuration

type RandomDuration struct {
	time.Duration
}

func (*RandomDuration) Decode

func (codec *RandomDuration) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (*RandomDuration) Encode

func (codec *RandomDuration) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (*RandomDuration) IsEmpty

func (codec *RandomDuration) IsEmpty(ptr unsafe.Pointer) bool

type StaticRiceBox

type StaticRiceBox *rice.Box

type TimeDuration

type TimeDuration struct {
	time.Duration
}

func (*TimeDuration) Decode

func (codec *TimeDuration) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (*TimeDuration) Encode

func (codec *TimeDuration) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (*TimeDuration) IsEmpty

func (codec *TimeDuration) IsEmpty(ptr unsafe.Pointer) bool

Jump to

Keyboard shortcuts

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