config

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer(args []string, funcs ...Option) (srv *server.Server)

CreateServer create server from config flags. Returns nil on version or help command

func NewImagor

func NewImagor(
	fs *flag.FlagSet, cb func() (*zap.Logger, bool), funcs ...Option,
) *imagor.Imagor

NewImagor create imagor from config flags

Types

type CIDRSliceFlag added in v1.2.4

type CIDRSliceFlag []*net.IPNet

CIDRSliceFlag is a flag type which support comma separated CIDR expressions.

func (*CIDRSliceFlag) Get added in v1.2.4

func (s *CIDRSliceFlag) Get() any

Get implements flag.Getter interface

func (*CIDRSliceFlag) Set added in v1.2.4

func (s *CIDRSliceFlag) Set(value string) error

Set implements flag.Setter interface

func (*CIDRSliceFlag) String added in v1.2.4

func (s *CIDRSliceFlag) String() string

String implements flag.Setter interface

type Option added in v1.3.3

type Option func(fs *flag.FlagSet, cb func() (logger *zap.Logger, isDebug bool)) imagor.Option

Option flag based config option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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