config

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigComment

func ConfigComment(t interface{}) ([]byte, error)

func FromFile

func FromFile(path string, def interface{}) (interface{}, error)

func FromReader

func FromReader(reader io.Reader, def interface{}) (interface{}, error)

Types

type ExportWorkerConfig

type ExportWorkerConfig struct {
	Nodes []Node
}

func DefaultExportWorkerConfig

func DefaultExportWorkerConfig() *ExportWorkerConfig

type IndexServiceConfig

type IndexServiceConfig struct {
	S3Resolver S3ResolverConfig
}

func DefaultIndexServiceConfig

func DefaultIndexServiceConfig() *IndexServiceConfig

type Node

type Node struct {
	Address   string
	TokenPath string
}

type S3ResolverConfig

type S3ResolverConfig struct {
	Endpoint      string
	Bucket        string
	AccessKeyPath string
	SecretKeyPath string
}

type URL

type URL url.URL

func (URL) MarshalText

func (u URL) MarshalText() ([]byte, error)

func (*URL) UnmarshalText

func (u *URL) UnmarshalText(text []byte) error

UnmarshalText implements interface for TOML decoding

Jump to

Keyboard shortcuts

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