server

package
v0.0.0-...-e60c9d6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 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 App

type App struct {
	ServerConfig *utils.ServerConfig
	Client       *mongo.Client
}

func NewService

func NewService(svrConfigFile *string) (*http.Server, *App)

func (*App) GetDB

func (app *App) GetDB(dbname string) *mongo.Database

func (*App) Init

func (app *App) Init(svrConfigFile *string)

Jump to

Keyboard shortcuts

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