package
Version:
v0.0.0-...-55db854
Opens a new window with list of versions in this module.
Published: Apr 10, 2018
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Default *Default `toml:"default"`
Meta *Meta `toml:"meta"`
REPL *REPL `toml:"repl"`
Env *Env `toml:"env"`
Server *Server `toml:"server"`
Log *Log `toml:"log"`
Request *Request `toml:"request"`
Input *Input `toml:"input"`
}
type Default struct {
ProtoPath []string `toml:"protoPath" default:""`
ProtoFile []string `toml:"protoFile" default:""`
Package string `toml:"package" default:""`
Service string `toml:"service" default:""`
}
type Env struct {
Server *Server `toml:"-"`
}
type Input struct {
PromptFormat string `default:"{ancestor}{name} ({type}) => " toml:"promptFormat"`
}
type Log struct {
Prefix string `default:"[evans] " toml:"prefix"`
}
type Meta struct {
Path string `default:"~/.config/evans/config.toml" toml:"path"`
}
type REPL struct {
Server *Server `toml:"-"`
PromptFormat string `default:"{package}.{sevice}@{addr}:{port}" toml:"promptFormat"`
Reader string `default:"stdin" toml:"reader"`
Writer string `default:"stdout" toml:"writer"`
ErrWriter string `default:"stderr" toml:"errWriter"`
ColoredOutput bool `default:"true" toml:"coloredOutput"`
ShowSplashText bool `default:"true" toml:"showSplashText"`
SplashTextPath string `default:"" toml:"splashTextPath"`
}
type Server struct {
Host string `default:"127.0.0.1" toml:"host"`
Port string `default:"50051" toml:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.