config

package
v0.0.0-...-703b195 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr string `short:"a" long:"addr" description:"Listen address for pub/sub clients" default:"127.0.0.1:8119"`

	AdminAddr string `long:"admin-addr" description:"Listen address for admin endpoints" default:"127.0.0.1:8229"`

	CommitLogInMemory    bool   `long:"commitlog.inmemory" description:"Whether the commit log should be in-memory only"`
	CommitLogDir         string `long:"commitlog.dir" description:"The directory to store the commit log segments if persisted" default:"./data"`
	CommitLogSegmentSize uint64 `long:"commitlog.segment-size" description:"The size of the commit log segments to use (default 128MB)" default:"134217728"`

	Verbose bool `short:"v" long:"verbose" description:"Show verbose debug information"`
}

func ParseConfig

func ParseConfig() (Config, error)

func (Config) MarshalLogObject

func (c Config) MarshalLogObject(e zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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