config

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClientKey = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig added in v1.3.0

type BaseConfig struct {
	BaseUrl            string
	KeyID              string
	PrivateKeyFileName string
	Password           string
}

func (*BaseConfig) IsEmpty added in v1.3.0

func (c *BaseConfig) IsEmpty() bool

func (*BaseConfig) Validate added in v1.3.0

func (c *BaseConfig) Validate() error

type Config

type Config struct {
	BaseConfig     *BaseConfig
	KeyConfigs     []KeyConfig
	DefaultTimeout time.Duration
	VerboseMode    bool
	Port           int
}

type KeyConfig added in v1.3.0

type KeyConfig struct {
	ClientID string
	BaseConfig
}

func (*KeyConfig) IsEmpty added in v1.3.0

func (c *KeyConfig) IsEmpty() bool

func (*KeyConfig) Validate added in v1.3.0

func (c *KeyConfig) Validate() error

Jump to

Keyboard shortcuts

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