server

package
v0.0.0-...-92bf345 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoDB

func NewMongoDB(logger *logrus.Logger, cfg *config.Config) (client *mongo.Client, err error)

Types

type Server

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

Server struct

func NewServer

func NewServer(config *config.Config, db mongo.Client) *Server

NewServer New Server constructor

func (*Server) Run

func (s *Server) Run(logger *logrus.Logger) error

Jump to

Keyboard shortcuts

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