app

package
v0.0.0-...-372bfc1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(ctx *fasthttp.RequestCtx)

func NewDataBase

func NewDataBase(connectionString string) (*pgx.ConnPool, error)

func NewRouter

func NewRouter() *router.Router

func Start

func Start() error

Types

type AppConfig

type AppConfig struct {
	SessionKey  string
	Port        string
	DatabaseURL string
}

type Config

type Config struct {
	App *AppConfig
	DB  *DataBaseConfig
}

func NewConfig

func NewConfig() *Config

type DataBaseConfig

type DataBaseConfig struct {
	// contains filtered or unexported fields
}

type Server

type Server struct {
	Router *router.Router
	Config *Config
}

func NewServer

func NewServer(config *Config) (*Server, error)

func (*Server) ConfigurateServer

func (s *Server) ConfigurateServer(pgx.ConnPool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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