serve

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FSPATH = "./web/"

Variables

This section is empty.

Functions

func OpenAPI

func OpenAPI(ctx Ctx, srv OpenAPIServer, service string) error

func ServerGRPC

func ServerGRPC(ctx Ctx, addr netx.Addr, srv *grpc.Server) error

func ServerWebStatic

func ServerWebStatic(ctx Ctx, addr netx.Addr) error

Types

type Ctx

type Ctx = context.Context

type OpenAPIServer

type OpenAPIServer interface {
	HTTPListener() (net.Listener, error)
	TLSListener() (net.Listener, error)
	Serve() error
	Shutdown() error
}

Jump to

Keyboard shortcuts

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