mrtool

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHelper

type AppHelper struct {
	Logger mrcore.Logger
}

func NewAppHelper

func NewAppHelper(logger mrcore.Logger) *AppHelper

func (*AppHelper) Close

func (h *AppHelper) Close(c io.Closer)

func (*AppHelper) ExitOnError

func (h *AppHelper) ExitOnError(err error)

func (*AppHelper) GracefulShutdown

func (h *AppHelper) GracefulShutdown(cancel context.CancelFunc)

type ServiceHelper

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

func NewServiceHelper

func NewServiceHelper() *ServiceHelper

func (*ServiceHelper) Caller added in v0.7.0

func (h *ServiceHelper) Caller(skip int) *ServiceHelper

func (*ServiceHelper) IsNotFoundError added in v0.9.6

func (h *ServiceHelper) IsNotFoundError(err error) bool

func (*ServiceHelper) WrapErrorEntityFailed added in v0.9.1

func (h *ServiceHelper) WrapErrorEntityFailed(err error, entityName string, entityData any) error

func (*ServiceHelper) WrapErrorEntityNotFoundOrFailed added in v0.9.1

func (h *ServiceHelper) WrapErrorEntityNotFoundOrFailed(err error, entityName string, entityData any) error

func (*ServiceHelper) WrapErrorFailed added in v0.9.1

func (h *ServiceHelper) WrapErrorFailed(err error, source string) error

Jump to

Keyboard shortcuts

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