config

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE        = "vince.json"
	META_PATH   = "meta"
	BLOCKS_PATH = "blocks"
)

Variables

View Source
var (
	DefaultSyncInterval = durationpb.New(time.Minute)
)

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