Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultLogLevel is the default logging level. DefaultLogLevel = "warn" // DefaultLogFormat is the default format of the logger DefaultLogFormat = "text" // DefaultTermSignal is the signal to term the agent. DefaultTermSignal = syscall.SIGTERM // DefaultReloadSignal is the default signal for reload. DefaultReloadSignal = syscall.SIGHUP // DefaultKillSignal is the default signal for termination. DefaultKillSignal = syscall.SIGINT // DefaultVerbose is the default verbosity. DefaultVerbose = false // DefaultStatusAddr is the default addrs for debug listener DefaultStatusAddr = ":8443" // DefaultDebug is the default debug status. DefaultDebug = false // DefaultDataDir ... DefaultDataDir = "data" // DefaultNats ... DefaultNats = true // DefaultNatsClusterURL ... DefaultNatsClusterURL = "nats://localhost:4222" // DefaultNatsDataDir is the default directory for nats data DefaultNatsDataDir = "nats" // DefaultNatsClusterID ... DefaultNatsClusterID = "autobot" // DefaultNatsRaftLogDir ... DefaultNatsRaftLogDir = "raft" // DefaultNatsHTTPPort ... DefaultNatsHTTPPort = 8223 // DefaultNatsPort ... DefaultSNatsPort = 4223 // DefaultNatsPort ... DefaultNNatsPort = 4222 // DefaultFileChmod ... DefaultFileChmod = 0600 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // File is a config file provided File string // Verbose toggles the verbosity Verbose bool // LogLevel is the level with with to log for this config LogLevel string `mapstructure:"log_level"` // LogFormat is the format that is used for logging LogFormat string `mapstructure:"log_format"` // ReloadSignal ReloadSignal syscall.Signal // TermSignal TermSignal syscall.Signal // KillSignal KillSignal syscall.Signal // Timeout of the runtime Timeout time.Duration // StatusAddr is the addr of the debug listener StatusAddr string // Addr is the address to listen on Addr string // Debug ... Debug bool // DataDir ... DataDir string // FileChmod ... FileChmod os.FileMode // Nats ... Nats *Nats }
Config contains a configuration for Autobot
func (*Config) NatsFilestoreDir ¶
NatsFilestoreDir returns the nats data dir
func (*Config) RaftLogPath ¶
RaftLogPath returns the raft log dir
type Nats ¶
type Nats struct { // Disabked ... Disabled bool // Clustering ... Clustering bool // Bootstrap ... Bootstrap bool // ClusterPeers ... ClusterPeers []string // ClusterNodeID ... ClusterNodeID string // ClusterID ... ClusterID string // ClusterURL ... ClusterURL string // Inbox ... Inbox string // Outbox ... Outbox string // Discovery ... Discovery string // DataDir is the directory for Nats DataDir string // LogDir is the directory for the Raft logs LogDir string // HTTPPort ... HTTPPort int // SPort ... SPort int // SPort ... NPort int }
Nats ...
Click to show internal directories.
Click to hide internal directories.