server

package
v0.0.0-...-e10a309 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router() interfaces.IRouter

Router is a func to initialize route struct

func Run

func Run(conf *resources.AppConfig, dbObj map[string]interfaces.IDatabase, redisdb map[string]interfaces.IRedis) *http.Server

Run for running service (initializes both GRPC and HTTP server)

func ServiceInject

func ServiceInject(
	config *resources.AppConfig,
	dbObj map[string]interfaces.IDatabase,
	redisdb map[string]interfaces.IRedis,
) *controllers.KvotheController

ServiceInject is for injecting dependencies into each layer of service (from top to bottom : controller -> service -> repository)

Types

This section is empty.

Jump to

Keyboard shortcuts

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