util

package
Version: v0.0.0-...-1993e3b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(e error)

func CheckErrorVerb

func CheckErrorVerb(e error, s string)

func IsAuthenticated

func IsAuthenticated(c *Config, w http.ResponseWriter, r *http.Request) bool

Types

type ApiSecure

type ApiSecure struct {
	ApiKey    string
	ApiHeader string
}

type Config

type Config struct {
	ServerHost ServerHost
	Link       Link
	ApiSecure  ApiSecure
	DBConfig   DBConfig
}

func ReadConfig

func ReadConfig() (*Config, error)

type DBConfig

type DBConfig struct {
	Driver string
	DBFile string
	DBDir  string
}
type Link struct {
	UrlPrefix string
}

type ServerHost

type ServerHost struct {
	Port string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL