daemon

package
v0.0.0-...-b3f6aa4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

func New

func New(services ...Service) *Daemon

func (*Daemon) Run

func (d *Daemon) Run(ctx context.Context) error

type HttpService

type HttpService struct {
	http.Server
}

func NewHttpService

func NewHttpService(handler http.Handler) *HttpService

func (*HttpService) Start

func (svc *HttpService) Start(ctx context.Context) error

func (*HttpService) Stop

func (svc *HttpService) Stop(ctx context.Context) error

type Service

type Service interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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