svc

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeEnvironment

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

func NewRuntimeEnvironment

func NewRuntimeEnvironment(name string) *RuntimeEnvironment

func (*RuntimeEnvironment) Run

func (e *RuntimeEnvironment) Run(svcs ...Service)

type Service

type Service interface {
	Route(router *srv.PrefixRouter)
	RunCtx(ctx context.Context, env env.Env) error
	Shutdown()
}

Directories

Path Synopsis
_examples

Jump to

Keyboard shortcuts

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