Documentation ¶
Index ¶
- type ServiceBase
- func (sb *ServiceBase) Debugf(format string, a ...any)
- func (sb *ServiceBase) Errorf(format string, a ...any)
- func (sb *ServiceBase) Fatalf(format string, a ...any)
- func (sb *ServiceBase) Infof(format string, a ...any)
- func (sb *ServiceBase) NewError(format string, a ...any) error
- func (sb *ServiceBase) SystemErrorf(format string, a ...any)
- func (sb *ServiceBase) Warnf(format string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceBase ¶
type ServiceBase struct { // ID is used as [ID] prefix in log and error messages ID string }
ServiceBase base struct for typical service objects
func NewServiceBase ¶
func NewServiceBase(id string) ServiceBase
func (*ServiceBase) Debugf ¶
func (sb *ServiceBase) Debugf(format string, a ...any)
func (*ServiceBase) Errorf ¶
func (sb *ServiceBase) Errorf(format string, a ...any)
func (*ServiceBase) Fatalf ¶
func (sb *ServiceBase) Fatalf(format string, a ...any)
func (*ServiceBase) Infof ¶
func (sb *ServiceBase) Infof(format string, a ...any)
func (*ServiceBase) SystemErrorf ¶
func (sb *ServiceBase) SystemErrorf(format string, a ...any)
func (*ServiceBase) Warnf ¶
func (sb *ServiceBase) Warnf(format string, a ...any)
Click to show internal directories.
Click to hide internal directories.