app

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 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 NewApp

func NewApp(opts ...Option) *App

func (*App) Run

func (a *App) Run() error

Run 启动服务

func (*App) Stop

func (a *App) Stop() error

Stop 停止服务

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 WithRestServer

func WithRestServer(server *httpserver.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