config

package
v0.0.0-...-42dca6d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const AuthGoogle = "google"

AuthGoogle is google OAuth2 authentication

View Source
const AuthNone = "none"

AuthNone is no authentication

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WebServer struct {
		Bind     string
		CertFile string
		KeyFile  string
	}
	DataDir  string // Where blog content are served
	TmpDir   string // A temporally directory
	CacheDir string // Cache directory for generated images
	Auth     struct {
		Type           string   // Type of authenticatiom, AuthGoogle or AuthNone
		GoogleClientID string   // Client id iff AuthGoogle
		AllowedEmails  []string // Allowed emails to log in iff Authgoogle
	}
}

Config is the server configurtion

Jump to

Keyboard shortcuts

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