Versions in this module Expand all Collapse all v1 v1.0.1 Apr 15, 2024 v1.0.0 Apr 15, 2024 Changes in this version + func NewContext(ctx context.Context, s Application) context.Context + type App struct + func New(opts ...Option) *App + func (a *App) Endpoint() []string + func (a *App) GrpcServer() *grpc.Server + func (a *App) HttpServer() *http.Server + func (a *App) ID() string + func (a *App) Metadata() map[string]string + func (a *App) Name() string + func (a *App) Run() error + func (a *App) Stop() error + func (a *App) Version() string + type Application interface + Endpoint func() []string + GrpcServer func() *grpc.Server + HttpServer func() *http.Server + ID func() string + Metadata func() map[string]string + Name func() string + Version func() string + func FromContext(ctx context.Context) (s Application, ok bool) + type Option func(o *options) + func Context(ctx context.Context) Option + func Endpoint(endpoints ...*url.URL) Option + func GrpcServer(srv *grpc.Server) Option + func HttpServer(srv *http.Server) Option + func ID(id string) Option + func Logger(logger zlog.Logger) Option + func Metadata(md map[string]string) Option + func Name(name string) Option + func Registrar(r registry.Registrar) Option + func Server(srv ...transport.Server) Option + func Signal(sigs ...os.Signal) Option + func Version(version string) Option