server

package
v0.0.0-...-1b1fb7f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRouter

func NewUserRouter(r *mux.Router, c *mongo.Client, config *root.MongoConfig)

NewUserRouter creates users routes

Types

type Server

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

Server ...

func InitServer

func InitServer(config *root.Config, c *db.Client) *Server

InitServer ...

func (*Server) InitRouters

func (s *Server) InitRouters(client *mongo.Client, config *root.MongoConfig)

InitRouters ...

func (*Server) Start

func (s *Server) Start()

Start ...

type WelcomeResponse

type WelcomeResponse struct {
	Message string `json:"message" bson:"message"`
}

WelcomeResponse ...

Jump to

Keyboard shortcuts

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