mrtool

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 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) ReturnErrorIfItemNotFound

func (h *ServiceHelper) ReturnErrorIfItemNotFound(err error, entityName string) error

func (*ServiceHelper) WrapErrorForRemove

func (h *ServiceHelper) WrapErrorForRemove(err error, entityName string) error

func (*ServiceHelper) WrapErrorForSelect

func (h *ServiceHelper) WrapErrorForSelect(err error, entityName string) error

func (*ServiceHelper) WrapErrorForUpdate

func (h *ServiceHelper) WrapErrorForUpdate(err error, entityName string) error

Jump to

Keyboard shortcuts

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