config

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE        = "vince.json"
	DB_PATH     = "db"
	BLOCKS_PATH = "blocks"
	RAFT_PATH   = "raft"
	SECRET_KEY  = "secret_key"
)

Variables

View Source
var (
	DefaultEventsBufferSize = 10 << 10
)

Functions

func Defaults added in v0.0.21

func Defaults() *v1.Config

func Flags added in v0.0.21

func Flags(o *Options) []cli.Flag

func IsTLS added in v0.0.23

func IsTLS(o *Options) bool

func Load

func Load(base *Options, x *cli.Context) (context.Context, error)

func Logger added in v0.0.21

func Logger(env, level string) *slog.Logger

Types

type Options

type Options = v1.Config

func Get

func Get(ctx context.Context) *Options

Jump to

Keyboard shortcuts

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