core

package
v0.0.0-...-b28dd9f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Files            Files
	Cache            int    `json:"cache"`
	CacheConnType    string `json:"cache_conn_type"`
	CacheAddress     string `json:"cache_address"`
	CachePort        string `json:"cache_port"`
	CachePassword    string `json:"cache_password"`
	Database         int    `json:"db"`
	DatabaseAddress  string `json:"db_address"`
	DatabaseUsername string `json:"db_username"`
	DatabasePassword string `json:"db_password"`
	DatabaseName     string `json:"db_name"`
	AuthTable        string `json:"auth_table"`
	AuthUserField    string `json:"auth_user_field"`
	AuthPassField    string `json:"auth_password_field"`
	AuthLevel        string `json:"auth_level_field"`
	Secret           string `json:"secret"`
	ServerAddress    string `json:"server_address"`
	ServerPort       string `json:"server_port"`
	HTTPS            int    `json:"https"`
	HTTPSOnly        int    `json:"https_only"`
	CertsDir         string `json:"certs_dir"`
	LogFile          string `json:"logfile"`
}

Config : struct of the config file

type Files

type Files struct {
	Routes string
	Config string
}

Files : struct with path to config files

type Handlers

type Handlers map[string]http.HandlerFunc

Handlers : define the handlers map type

type Route

type Route struct {
	Name        string `json:"name"`
	Method      string `json:"method"`
	Pattern     string `json:"pattern"`
	HandlerFunc string `json:"handler"`
	Level       int    `json:"auth_req"`
}

Route : struct for the routes config file

Jump to

Keyboard shortcuts

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