Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(w *Worker)
Option is a functional option for configuring the Worker.
func WithAddress ¶
WithAddress sets the address for the Worker. Default is ":8080".
func WithRouter ¶
func WithRouter(router chi.Router) Option
WithRouter sets the chi router for the Worker.
func WithShutdownCtx ¶
WithShutdownCtx sets the context for the Worker's shutdown timeout.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a svc.Worker implementation that uses the go-chi/chi router.
Click to show internal directories.
Click to hide internal directories.