config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Dir string `json:"dir" yaml:"dir"`
}

type ErrorHandling

type ErrorHandling struct {
	New  ErrorOptions     `json:"new,omitempty" yaml:"new,omitempty"`
	Join ErrorOptions     `json:"join,omitempty" yaml:"join,omitempty"`
	Wrap WrapErrorOptions `json:"wrap,omitempty" yaml:"wrap,omitempty"`
}

func (ErrorHandling) MapToOptions added in v0.3.0

func (h ErrorHandling) MapToOptions() di.ErrorHandling

type ErrorOptions added in v0.3.0

type ErrorOptions struct {
	Pkg  string `json:"pkg,omitempty" yaml:"pkg,omitempty"`
	Func string `json:"func,omitempty" yaml:"func,omitempty"`
}

type Factories added in v0.3.0

type Factories struct {
	ReturnError *bool `json:"returnError,omitempty" yaml:"returnError,omitempty"`
}

func (Factories) MapToOptions added in v0.3.0

func (f Factories) MapToOptions() di.FactoriesParameters

type Parameters

type Parameters struct {
	Version       string        `json:"version" yaml:"version"`
	Container     Container     `json:"container" yaml:"container"`
	Factories     Factories     `json:"factories,omitempty" yaml:"factories,omitempty"`
	ErrorHandling ErrorHandling `json:"errorHandling,omitempty" yaml:"errorHandling,omitempty"`
}

func Init

func Init() (*Parameters, error)

func Load

func Load() (*Parameters, error)

type WrapErrorOptions added in v0.3.0

type WrapErrorOptions struct {
	Pkg  string `json:"pkg,omitempty" yaml:"pkg,omitempty"`
	Func string `json:"func,omitempty" yaml:"func,omitempty"`
	Verb string `json:"verb,omitempty" yaml:"verb,omitempty"`
}

Jump to

Keyboard shortcuts

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