server

package
v0.0.0-...-103f8c7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 9 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 {
	Router       *mux.Router
	Mongo        *mongo.Client
	MongoContext context.Context
}

Server struct has router and db instances

func (*Server) Initialize

func (s *Server) Initialize()

Initialize initializer server with predefined configuration

func (*Server) InitializeMongo

func (s *Server) InitializeMongo()

InitializeMongo initialize mongo db server

func (*Server) InitializeZipcode

func (s *Server) InitializeZipcode()

InitializeZipcode initialize zipcode service

func (*Server) Run

func (s *Server) Run(host string)

Run the app on it's router

Jump to

Keyboard shortcuts

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