util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoopUntilCancel

func LoopUntilCancel(wg *sync.WaitGroup, logger *zap.Logger, intervalMs int, f func() error)

func MakeEchoErrorHandler

func MakeEchoErrorHandler(logger *zap.Logger) echo.HTTPErrorHandler

func MakeStatusErr

func MakeStatusErr(code int, message string, inner error) error

func SetupConfigFromEnv

func SetupConfigFromEnv(s interface{}) error

Types

type HttpHandleableError

type HttpHandleableError interface {
	error
	Handle(c echo.Context)
}

type StatusError

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

func (StatusError) Code

func (se StatusError) Code() int

func (StatusError) Error

func (se StatusError) Error() string

func (StatusError) Handle

func (se StatusError) Handle(c echo.Context)

Jump to

Keyboard shortcuts

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