config

package
v0.0.0-...-70c7f13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCookies

func GetCookies() []*http.Cookie

Types

type Config

type Config struct {
	Databases       map[string]*Database
	ServerAddress   string
	Redis           *Redis
	ProxyServerAddr string
}

func LoadConfig

func LoadConfig() *Config
type Cookie struct {
	Name     string `json:"name"`
	Value    string `json:"value"`
	HttpOnly bool   `json:"httpOnly"`
}

type Database

type Database struct {
	Name   string
	Source string
}

type Redis

type Redis struct {
	Address  string
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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