Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains the main controller logic.
func NewService ¶
func NewService(opts ...ServiceOption) *Service
NewService creates a new service object.
type ServiceOption ¶
type ServiceOption func(s *Service)
ServiceOption sets options in the Service.
func ErrorHandler ¶
func ErrorHandler(l emperror.Handler) ServiceOption
ErrorHandler returns a ServiceOption that sets the error handler for the service.
func Logger ¶
func Logger(l log.Logger) ServiceOption
Logger returns a ServiceOption that sets the logger for the service.
Click to show internal directories.
Click to hide internal directories.