Documentation
¶
Index ¶
- Variables
- func PrepareService(ctx context.Context, service model.HttpServicer, buildinfo model.BuildInfo, ...) (func(), error)
- func RegisterHttpService(factory func() model.HttpServicer)
- func RunHttpServer(h http.Handler, shutdown <-chan struct{}, addr string, log *slog.Logger)
- func RunServices(ctx context.Context, buildinfo model.BuildInfo, serviceNames []string, ...) error
- type ConfigSetter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidServerRunner = errors.New("invalid server runner")
)
Functions ¶
func PrepareService ¶
func PrepareService(ctx context.Context, service model.HttpServicer, buildinfo model.BuildInfo, serverConfig configs.ServerConfiger, testConfig configs.TestConfiger, mux *chi.Mux, ) (func(), error)
func RegisterHttpService ¶
func RegisterHttpService(factory func() model.HttpServicer)
func RunHttpServer ¶
func RunServices ¶
func RunServices(ctx context.Context, buildinfo model.BuildInfo, serviceNames []string, serverConfig configs.ServerConfiger, testConfig configs.TestConfiger, ) error
Types ¶
Click to show internal directories.
Click to hide internal directories.