app

package
v0.0.0-...-95af001 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 6 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(name string) *App

func (*App) AddWorkers

func (c *App) AddWorkers(services ...Worker) *App

func (*App) Run

func (s *App) Run()

func (*App) Start

func (c *App) Start() error

func (*App) Stop

func (c *App) Stop()

type Worker

type Worker interface {
	Start() error
	Stop()
}

Jump to

Keyboard shortcuts

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