internal

package
v0.0.0-...-9508e94 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(
	ctx context.Context,
	cfg Config,
	newServer func(cfg Config, serviceIntf interface{}) (interface{}, error),
) error

Serve starts listening for inbound requests to the service.

Types

type Config

type Config struct {
	Host string
	Port int
}

Config holds config for the service.

Jump to

Keyboard shortcuts

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