Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyticsMetric ¶
type Config ¶
type Config struct { item.Item Name string `json:"name"` Domain string `json:"domain"` BindAddress string `json:"bind_addr"` HTTPPort string `json:"http_port"` HTTPSPort string `json:"https_port"` AdminEmail string `json:"admin_email"` ClientSecret string `json:"client_secret"` Etag string `json:"etag"` DisableCORS bool `json:"cors_disabled"` DisableGZIP bool `json:"gzip_disabled"` DisableHTTPCache bool `json:"cache_disabled"` CacheMaxAge int64 `json:"cache_max_age"` CacheInvalidate []string `json:"cache"` BackupBasicAuthUser string `json:"backup_basic_auth_user"` BackupBasicAuthPassword string `json:"backup_basic_auth_password"` }
Config represents the configurable options of the system
func (*Config) MarshalEditor ¶
MarshalEditor writes a buffer of templates to edit a Post and partially implements editor.Editable
type Credential ¶
type Credential struct { Type CredentialType `json:"type"` // TODO: value should be an interface. supporting many credential value types Value string `json:"value"` }
type CredentialHash ¶
type CredentialHash struct { UserId string `json:"user_id"` Type CredentialType `json:"type"` Value []byte `json:"value"` }
type CredentialType ¶
type CredentialType string
var CredentialTypePassword CredentialType = "password"
type FileUpload ¶
type FileUpload struct { item.Item Name string `json:"name"` Path string `json:"path"` ContentLength int64 `json:"content_length"` ContentType string `json:"content_type"` }
FileUpload represents the file uploaded to the system
func (*FileUpload) GetSearchableAttributes ¶
func (f *FileUpload) GetSearchableAttributes() map[string]reflect.Type
GetSearchableAttributes defines fields that should be indexed
func (*FileUpload) IndexContent ¶
func (f *FileUpload) IndexContent() bool
IndexContent determines if FileUpload should be indexed for searching
func (*FileUpload) MarshalEditor ¶
func (f *FileUpload) MarshalEditor(paths config.Paths) ([]byte, error)
MarshalEditor writes a buffer of templates to edit a Post and partially implements editor.Editable
func (*FileUpload) Push ¶
func (f *FileUpload) Push() []string
func (*FileUpload) String ¶
func (f *FileUpload) String() string
String partially implements item.Identifiable and overrides Item's String()
type Pagination ¶
type PasswordHash ¶
type ResponseStream ¶
Click to show internal directories.
Click to hide internal directories.