serv

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(service ...Service) *errors.Error

func Running

func Running()

func StartCode added in v0.0.45

func StartCode(code string) *errors.Error

Types

type Service

type Service struct {
	Code     string
	PORT     string
	Startup  func(code, port string) error
	Shutdown func(code string, ctx context.Context) error
}

Jump to

Keyboard shortcuts

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