Documentation ¶
Index ¶
Constants ¶
View Source
const ( // None defines to run http server only None sslMode = iota // Static defines to run both https and http server. Redirect http to https Static // Auto defines to run both https and http server. Redirect http to https. Https server with autocert support Auto )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Migrator ¶
type Migrator struct { Cache cache.LoadingCache NativeImporter migrator.Importer DisqusImporter migrator.Importer WordPressImporter migrator.Importer NativeExporter migrator.Exporter KeyStore KeyStore // contains filtered or unexported fields }
Migrator rest with import and export controllers
type Rest ¶
type Rest struct { Version string DataService *service.DataStore Authenticator *auth.Service Cache cache.LoadingCache ImageProxy *proxy.Image CommentFormatter *store.CommentFormatter Migrator *Migrator NotifyService *notify.Service WebRoot string RemarkURL string ReadOnlyAge int ScoreThresholds struct { Low int Critical int } UpdateLimiter float64 SSLConfig SSLConfig // contains filtered or unexported fields }
Rest is a rest access server
Click to show internal directories.
Click to hide internal directories.