Versions in this module Expand all Collapse all v0 v0.0.1 Jun 21, 2024 Changes in this version + var IsDebug bool + func Debug(fn func()) + func OnStartup(fn func(app *Application) error) utility.Option[Application] + func WithAddr(network, addr string) utility.Option[Application] + func WithBeforeStart(handler StartInterceptor) utility.Option[Application] + func WithDefaultCodecType(typename string) utility.Option[Application] + func WithGrpcMatcher(matcher cmux.MatchWriter) utility.Option[Application] + func WithGrpcOpts(gopts ...utility.Option[grpcx.Server]) utility.Option[Application] + func WithHttpErrEncoder(encoder httpx.ErrorEncoder) utility.Option[Application] + func WithHttpOpts(hopts ...utility.Option[httpx.Server]) utility.Option[Application] + func WithListener(listener net.Listener) utility.Option[Application] + func WithLogger(logger *slog.Logger) utility.Option[Application] + func WithMiddleware(middlewares ...middleware.Middleware) utility.Option[Application] + func WithServices(services ...types.Service) utility.Option[Application] + func WithTCPAddr(addr string) utility.Option[Application] + type Application struct + func NewApp(opts ...utility.Option[Application]) *Application + func (app *Application) Address() net.Addr + func (app *Application) RegisterService(services ...types.Service) + func (app *Application) Run(ctx context.Context) (err error) + func (app *Application) Shutdown() + type StartInterceptor func(context.Context) (context.Context, error)