server

package
v0.0.0-...-9ae7e58 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(cfg *config.Config, automigrate bool) *gorm.DB

Types

type Server

type Server struct {
	Router *mux.Router
	Repo   repository.Repository
	DB     *gorm.DB
	Cfg    *config.Config
}

func NewServer

func NewServer(Config *config.Config, DB *gorm.DB, repo repository.Repository) *Server

Jump to

Keyboard shortcuts

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