server

package
v1.0.1-0...-ff3196c Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = &Options{
	RPCPort:         8081,
	RESTPort:        8080,
	DefaultLanguage: "en-GB",
}

DefaultOptions provides some default options

Functions

func RunServer

func RunServer(svc *terminology.Svc, opts Options) error

RunServer runs a GRPC and a gateway REST server concurrently

Types

type Options

type Options struct {
	RPCPort         int
	RESTPort        int
	DefaultLanguage string
}

Options defines the options for a server.

Jump to

Keyboard shortcuts

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