service

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.2.0

func Run(services ...Command)

Types

type App added in v0.2.1

type App interface {
	lifecycle.Lifecycle
	Command
	AppInfo
	Flags(flags ...cli.Flag)
	Middleware(middleware.Middleware)
	Dix(regs ...interface{})
}

type AppInfo added in v0.2.2

type AppInfo interface {
	Options() Options
}

type Close added in v0.2.2

type Close interface {
	Close()
}

type Command added in v0.2.0

type Command interface {
	Command() *cli.Command
}

type Flags added in v0.2.2

type Flags interface {
	Flags() []cli.Flag
}

type Init added in v0.2.2

type Init interface {
	Init()
}

type Options

type Options struct {
	Id        string            `json:"id,omitempty"`
	Name      string            `json:"name,omitempty"`
	Version   string            `json:"version,omitempty"`
	Port      int               `json:"port,omitempty"`
	Addr      string            `json:"addr,omitempty"`
	Advertise string            `json:"advertise,omitempty"`
	Metadata  map[string]string `json:"metadata,omitempty"`
}

type Service

type Service interface {
	App
}

type WebHandler added in v0.2.2

type WebHandler interface {
	Router(r fiber.Router)
}

Jump to

Keyboard shortcuts

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