Documentation
¶
Index ¶
- func IsDirectory(dir string) (bool, error)
- func IsExecutable(mode os.FileMode) bool
- func Merge(src []byte, dst []byte) ([]byte, error)
- func RegisterJsonTypes()
- func RegisterRandomDuration()
- func RegisterTimeDuration()
- func TrimToNil(str string) *string
- type CmdLine
- type ConfRiceBox
- type HtmlHandlerFunc
- type JsonHandlerFunc
- type RandomDuration
- type StaticRiceBox
- type TimeDuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirectory ¶
func IsExecutable ¶
func RegisterJsonTypes ¶
func RegisterJsonTypes()
func RegisterRandomDuration ¶
func RegisterRandomDuration()
func RegisterTimeDuration ¶
func RegisterTimeDuration()
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 ¶
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)
type StaticRiceBox ¶
type StaticRiceBox *rice.Box
type TimeDuration ¶
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)
Click to show internal directories.
Click to hide internal directories.