mrinit

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version added in v0.19.0

func Version() string

Version - возвращает версию приложения из внешнего окружения.

Types

type ErrorManager

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

ErrorManager - comment struct.

func NewErrorManager

func NewErrorManager(extra mrerr.ProtoExtra) *ErrorManager

NewErrorManager - создаёт объект ErrorManager.

func (*ErrorManager) Register

func (e *ErrorManager) Register(item ManagedError)

Register - comment method.

func (*ErrorManager) RegisterList

func (e *ErrorManager) RegisterList(items []ManagedError)

RegisterList - comment method.

type ManagedError

type ManagedError struct {
	Err           *mrerr.ProtoAppError
	WithCaller    bool
	WithOnCreated bool
}

ManagedError - comment struct.

func ManagedHttpErrors

func ManagedHttpErrors() []ManagedError

ManagedHttpErrors - comment func.

func ManagedInternalErrors

func ManagedInternalErrors() []ManagedError

ManagedInternalErrors - comment func.

func ManagedStorageErrors

func ManagedStorageErrors() []ManagedError

ManagedStorageErrors - comment func.

func ManagedUseCaseErrors

func ManagedUseCaseErrors() []ManagedError

ManagedUseCaseErrors - comment func.

func WrapProto

func WrapProto(proto *mrerr.ProtoAppError) ManagedError

WrapProto - comment func.

func WrapProtoExtra

func WrapProtoExtra(proto *mrerr.ProtoAppError, withCaller, withOnCreated bool) ManagedError

WrapProtoExtra - comment func.

func WrapProtoExtraDisabled

func WrapProtoExtraDisabled(proto *mrerr.ProtoAppError) ManagedError

WrapProtoExtraDisabled - comment func.

func WrapProtoExtraEnabled

func WrapProtoExtraEnabled(proto *mrerr.ProtoAppError) ManagedError

WrapProtoExtraEnabled - comment func.

func WrapProtoList

func WrapProtoList(protos []*mrerr.ProtoAppError) []ManagedError

WrapProtoList - comment func.

Jump to

Keyboard shortcuts

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