app

package
v0.0.0-...-ed26981 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *App

func (*App) Run

func (a *App) Run() error

启动整个服务

func (*App) Stop

func (a *App) Stop() error

停止服务

type Option

type Option func(o *options)

func WithEndpoints

func WithEndpoints(endpoints []*url.URL) Option

func WithID

func WithID(id string) Option

func WithName

func WithName(name string) Option

func WithRPCServer

func WithRPCServer(server *rpcserver.Server) Option

func WithRegistrar

func WithRegistrar(registrar registry.Registrar) Option

func WithRegistrarTimeout

func WithRegistrarTimeout(registrarTimeout time.Duration) Option

func WithRestServer

func WithRestServer(server *restserver.Server) Option

func WithSigs

func WithSigs(sigs []os.Signal) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL