handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvHandler

type EnvHandler struct {
}

EnvHandler env handler

func (*EnvHandler) Get

func (e *EnvHandler) Get(ctx context.Context, key string) (string, error)

Get value from key

type ViperHandler

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

func NewViperHandler

func NewViperHandler(configPath string) *ViperHandler

func (*ViperHandler) Get

func (v *ViperHandler) Get(key string) string

Get value from key

Jump to

Keyboard shortcuts

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