config

package
v0.0.0-...-6401ed0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() *sql.DB

Types

type DBConfig

type DBConfig struct {
	DB   *database.Queries
	Conn *sql.DB
}

func NewDBConfig

func NewDBConfig() *DBConfig

type ServerConfig

type ServerConfig struct {
	Port   int
	Debug  bool
	Logger bool
}

func NewServerConfig

func NewServerConfig() *ServerConfig

func (*ServerConfig) NewServer

func (c *ServerConfig) NewServer(router *chi.Mux) *http.Server

Jump to

Keyboard shortcuts

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