config

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	DefaultSyncInterval     = durationpb.New(time.Minute)
	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(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