Documentation ¶
Index ¶
- type AppHelper
- type ServiceHelper
- func (h *ServiceHelper) Caller(skip int) *ServiceHelper
- func (h *ServiceHelper) ReturnErrorIfItemNotFound(err error, entityName string) error
- func (h *ServiceHelper) WrapErrorForRemove(err error, entityName string) error
- func (h *ServiceHelper) WrapErrorForSelect(err error, entityName string) error
- func (h *ServiceHelper) WrapErrorForUpdate(err error, entityName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppHelper ¶
func NewAppHelper ¶
func (*AppHelper) ExitOnError ¶
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
Click to show internal directories.
Click to hide internal directories.