jupiter

package module
v0.0.0-...-d6ac821 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

Application is the framework's instance, it contains the servers, workers, client and configuration settings. Create an instance of Application, by using &Application{}

func (*Application) Defer

func (app *Application) Defer(fns ...func() error)

func (*Application) GracefulStop

func (app *Application) GracefulStop(ctx context.Context) (err error)

GracefulStop application after necessary cleanup

func (*Application) Run

func (app *Application) Run() error

Run run application

func (*Application) Schedule

func (app *Application) Schedule(w worker.Worker) error

func (*Application) Serve

func (app *Application) Serve(s server.Server) error

func (*Application) SetGovernor

func (app *Application) SetGovernor(addr string)

SetGovernor governor 127.0.0.1:9990 as default governor addr

func (*Application) SetRegistry

func (app *Application) SetRegistry(reg registry.Registry)

SetRegistry set customize registry

func (*Application) SetSignalHooker

func (app *Application) SetSignalHooker(hook func(*Application))

SetSignalHooker set signal hooker

func (*Application) Startup

func (app *Application) Startup(fns ...func() error) error

func (*Application) Stop

func (app *Application) Stop() (err error)

Stop application immediately after necessary cleanup

Jump to

Keyboard shortcuts

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