server

package module
v0.0.0-...-2610577 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 8 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 {
	HTTP  *api.HTTPConfig
	DB    *db.Config
	Email *email.Config
}

Config contains server configuration.

type Server

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

Server is the api server.

func New

func New(
	ctx context.Context,
	cfg *Config,
) (*Server, error)

New creates new api server.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve starts the server.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully stops the server.

Directories

Path Synopsis
api
cmd
articles/v1
Package articles is a reverse proxy.
Package articles is a reverse proxy.
codes/v1
Package codes is a reverse proxy.
Package codes is a reverse proxy.
feeds/v1
Package feeds is a reverse proxy.
Package feeds is a reverse proxy.
google/longrunning
Package longrunning is a reverse proxy.
Package longrunning is a reverse proxy.
sources/v1
Package sources is a reverse proxy.
Package sources is a reverse proxy.
tokens/v1
Package tokens is a reverse proxy.
Package tokens is a reverse proxy.
jwt
db

Jump to

Keyboard shortcuts

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