config

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// port to start the grpc adapter on
	AdapterPort uint16
	// JSON style logs
	Json bool
	// Log level - models zapcore.Level
	Level int8
	// hashKeySize used to c.
	// It is recommended to use a key with 32 or 64 bytes.
	HashKeySize IntOptions
	// The blockKey is used to encrypt the cookie value
	// Valid lengths are 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
	BlockKeySize IntOptions
}

Config contains the

func NewConfig

func NewConfig() *Config

defaultArgs returns the default configuration size

type IntOptions

type IntOptions struct {
	// Options contains Enum of supported Integers
	Options map[int]struct{}
	// Value is the selected value from the enum map
	Value int
}

IntOptions holds Integer configuration options as part of combra command line parameters

func (*IntOptions) Set

func (o *IntOptions) Set(inp string) error

Set takes the user input validates it and stores it

func (*IntOptions) String

func (o *IntOptions) String() string

String converts the core value to a string

func (*IntOptions) Type

func (o *IntOptions) Type() string

Type returns the expected command line type the user must input as a string

Jump to

Keyboard shortcuts

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