server

package
v0.0.0-...-b93ae0a Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a base server configuration.

func New

func New(port string, debug bool, client *mongo.Client, log logger.Logger, fa auth.Repository) (*Server, error)

New initialize a new server with configuration.

func (*Server) Close

func (serv *Server) Close(ctx context.Context) error

Close server resources.

func (*Server) Start

func (serv *Server) Start()

Start the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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