Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func HandleBasic ¶
func HandleBasic(w http.ResponseWriter, r *http.Request)
func HandleSlug ¶
func HandleSlug(w http.ResponseWriter, r *http.Request)
func LoadConfig ¶
func LoadConfig(path string)
Types ¶
type Config ¶
type Config struct { Origin string Redirections []Redirect Credentials DatabaseCredentials }
var Cfg Config
type DatabaseCredentials ¶
func (*DatabaseCredentials) Connect ¶
func (credentials *DatabaseCredentials) Connect()
func (*DatabaseCredentials) GenerateDSN ¶
func (credentials *DatabaseCredentials) GenerateDSN() string
Click to show internal directories.
Click to hide internal directories.