server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Run() error
	Shutdown() error
	Addr() string
	Name() string
}

type CleanUpHandler

type CleanUpHandler func()

type Option

type Option struct {
	AppName      string
	Version      string
	BuildCommit  string
	BuildDate    string
	ShutdownSigs []os.Signal
}

type Provider

type Provider interface {
	Run() error
	RegServe(f RegServeHandler) error
}

func NewProvider

func NewProvider(opt Option) (Provider, func(), error)

type RegServeHandler

type RegServeHandler func(config.Config) (App, CleanUpHandler, error)

Jump to

Keyboard shortcuts

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