svc

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSecrets

func ParseSecrets(secretVar string) (map[string]string, error)

Types

type HTTPServer

type HTTPServer interface {
	ListenAndServe() error
	RegisterOnShutdown(func())
	Shutdown(context.Context) error
}

type Runner

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

func NewRunner

func NewRunner(logger *log.Logger) *Runner

func (*Runner) AddHTTPServer

func (r *Runner) AddHTTPServer(server HTTPServer)

func (*Runner) AddTCPServer

func (r *Runner) AddTCPServer(server TCPServer)

func (*Runner) AddWorker

func (r *Runner) AddWorker(server WorkerServer)

type TCPServer

type TCPServer interface {
	Serve()
	Stop()
}

type WorkerServer

type WorkerServer interface {
	Start()
	Stop()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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