pkg

package
v0.0.0-...-f6f9965 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handlers

func Handlers(client *ent.Client, db *sql.DB) *mux.Router

Types

type Config

type Config struct {
	Database PostgresDatabaseConfig
}

func GetConfig

func GetConfig() (Config, error)

type PostgresDatabaseConfig

type PostgresDatabaseConfig struct {
	Port     int
	User     string
	Password string
	Name     string
	Host     string
	SSLMode  string
}

func (PostgresDatabaseConfig) ConnectionString

func (p PostgresDatabaseConfig) ConnectionString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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