service

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, c Creator)

Register is used to register a service.

Types

type Creator added in v0.16.0

type Creator func(args ...string) (Service, error)

Creator is a function to create services.

type Service

type Service interface{ Run() }

Service is a server that can be run.

func New added in v0.16.0

func New(s string) (Service, error)

New calls the registered creator to create services.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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