imply

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 24 Imported by: 0

README

imply

Opinionated implementation of github.com/ajjensen13/ply

Documentation

Index

Constants

View Source
const (
	// Default means the log entry has no assigned severity level.
	Default = log.Default
	// Debug means debug or trace information.
	Debug = log.Debug
	// Info means routine information, such as ongoing status or performance.
	Info = log.Info
	// Notice means normal but significant events, such as start up, shut down, or configuration.
	Notice = log.Notice
	// Warning means events that might cause problems.
	Warning = log.Warning
	// Error means events that are likely to cause problems.
	Error = log.Error
	// Critical means events that cause more severe problems or brief outages.
	Critical = log.Critical
	// Alert means a person must take an action immediately.
	Alert = log.Alert
	// Emergency means one or more systems are unusable.
	Emergency = log.Emergency
)

Variables

This section is empty.

Functions

func Config added in v0.0.15

func Config(ctx context.Context, name string, path ...string) (interface{}, error)

Config gets a config value from the config object by name and path.

func ConfigString added in v0.0.15

func ConfigString(ctx context.Context, name string, path ...string) (string, error)

ConfigString wraps Config and converts the returned interface{} to a string.

func Init added in v0.0.15

Init wires up ctx with implied services

func Secret added in v0.0.15

func Secret(ctx context.Context, name string, path ...string) (interface{}, error)

Secret gets a secret value from the secret object by name and path.

func SecretString added in v0.0.15

func SecretString(ctx context.Context, name string, path ...string) (string, error)

SecretString wraps Secret and converts the returned interface{} to a string.

func TraceErr added in v0.0.6

func TraceErr(err error, skipCallers int) error

Types

type Severity added in v0.0.4

type Severity = log.Severity

type TracedErr added in v0.0.6

type TracedErr struct {
	// contains filtered or unexported fields
}

func (TracedErr) Error added in v0.0.6

func (e TracedErr) Error() string

func (TracedErr) ErrorDetails added in v0.0.6

func (e TracedErr) ErrorDetails() string

func (TracedErr) Unwrap added in v0.0.6

func (e TracedErr) Unwrap() error

Jump to

Keyboard shortcuts

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