Documentation ¶
Index ¶
- Variables
- func FmtBytes(size float64) string
- func FmtTime(t int64) string
- type AnalyticsHTTPRequestMetadata
- type AnalyticsMetric
- type AuthToken
- type Config
- type Credential
- type CredentialHash
- type CredentialType
- type CustomizableSearchAttributes
- type FileUpload
- type Pagination
- type PasswordHash
- type Persistable
- type RecoveryKey
- type ResponseStream
- type Search
- type SearchIndexable
- type Slug
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigBuilder = func() interface{} { return new(Config) }
Functions ¶
Types ¶
type AnalyticsHTTPRequestMetadata ¶
type AnalyticsHTTPRequestMetadata struct { RequestID string `json:"request_id"` URL string `json:"url"` Method string `json:"http_method"` Origin string `json:"origin"` Proto string `json:"http_protocol"` RemoteAddr string `json:"ip_address"` Timestamp int64 `json:"timestamp"` External bool `json:"external_content"` }
func (*AnalyticsHTTPRequestMetadata) EntityName ¶
func (*AnalyticsHTTPRequestMetadata) EntityName() string
func (*AnalyticsHTTPRequestMetadata) GetRepositoryToken ¶
func (*AnalyticsHTTPRequestMetadata) GetRepositoryToken() tokens.RepositoryToken
type AnalyticsMetric ¶
type AnalyticsMetric struct { MetricID string `json:"metric_id"` Date string `json:"date"` Total int `json:"total"` Unique int `json:"unique"` }
func (*AnalyticsMetric) EntityName ¶
func (*AnalyticsMetric) EntityName() string
func (*AnalyticsMetric) GetRepositoryToken ¶
func (*AnalyticsMetric) GetRepositoryToken() tokens.RepositoryToken
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) EntityName ¶
func (*Config) GetRepositoryToken ¶
func (*Config) GetRepositoryToken() tokens.RepositoryToken
type Credential ¶
type Credential struct { Type CredentialType `json:"type"` Value string `json:"value"` }
type CredentialHash ¶
type CredentialHash struct { UserId string `json:"user_id"` Type CredentialType `json:"type"` Value []byte `json:"value"` }
func (*CredentialHash) EntityName ¶
func (*CredentialHash) EntityName() string
func (*CredentialHash) GetRepositoryToken ¶
func (*CredentialHash) GetRepositoryToken() tokens.RepositoryToken
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) EntityName ¶
func (*FileUpload) EntityName() string
func (*FileUpload) GetRepositoryToken ¶
func (*FileUpload) GetRepositoryToken() tokens.RepositoryToken
func (*FileUpload) GetTitle ¶
func (f *FileUpload) GetTitle() string
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
type Pagination ¶
type PasswordHash ¶
type Persistable ¶
type Persistable interface {
GetRepositoryToken() tokens.RepositoryToken
}
type RecoveryKey ¶
func (*RecoveryKey) EntityName ¶
func (*RecoveryKey) EntityName() string
func (*RecoveryKey) GetRepositoryToken ¶
func (*RecoveryKey) GetRepositoryToken() tokens.RepositoryToken
type ResponseStream ¶
type Search ¶
type Search struct { Query string SortOrder constants.SortOrder Pagination *Pagination }
type SearchIndexable ¶
type SearchIndexable interface {
IndexContent() bool
}
type Slug ¶
type Slug struct { EntityType string `json:"entity_type"` EntityId string `json:"entity_id"` Slug string `json:"slug"` }
func (*Slug) EntityName ¶
func (*Slug) GetRepositoryToken ¶
func (*Slug) GetRepositoryToken() tokens.RepositoryToken
type User ¶
func (*User) EntityName ¶
func (*User) GetRepositoryToken ¶
func (*User) GetRepositoryToken() tokens.RepositoryToken
Click to show internal directories.
Click to hide internal directories.