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
Click to show internal directories.
Click to hide internal directories.