api

package
v0.0.0-...-aff46f4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth        auth.Authenticator
	UserService users.Service
	Addr        string // Defaults to 0.0.0.0:8081
}

Config is an API server configuration.

type Server

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

Server is an instance of a GRPC server

func New

func New(conf Config) Server

New returns a API GRPC server

func (Server) Run

func (s Server) Run() error

Run starts a GRPC server and exits on error

func (Server) Shutdown

func (s Server) Shutdown(error)

Shutdown gracefully shutsdown an API server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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