model

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServer

type AppServer struct {
	Db          *database.DB
	Config      foundation.ConfigStore
	Logger      foundation.Logger
	ServiceName string
}

AppServer contains all app level common dependencies

func NewAppServer

func NewAppServer(serviceName string, db *database.DB, config foundation.ConfigStore, logger foundation.Logger) *AppServer

NewAppServer instance

type Router

type Router struct {
	Router    *mux.Router
	AppRouter *mux.Router
}

Router dedicated type to reduce code refactor for router swap

func NewRouter

func NewRouter() *Router

NewRouter instance

func (*Router) MakeAppRouter

func (router *Router) MakeAppRouter(path string)

MakeAppRouter Generates a subrouter for application specific endpoints

func (*Router) SubRouter

func (router *Router) SubRouter(path string) *Router

SubRouter Generate a New Subrouter

Jump to

Keyboard shortcuts

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