service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SidStr

func SidStr(name string, version *semver.Version, size int) string

func Start

func Start(wg *conc.WaitGroup)

Start start all servers

func Stop

func Stop()

Stop stop all servers

Types

type Service

type Service interface {
	Name() string
	Version() *semver.Version
	OnInit() error
	OnStart() error
	OnStop() error
}

func MustInitService

func MustInitService() []Service

Jump to

Keyboard shortcuts

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