Documentation
¶
Index ¶
- Constants
- func Configure(configPath, version string) error
- func SetLogger(l ServerLogger)
- func URLDecode(s string) string
- type Capability
- type Config
- type DefaultLogger
- func (l DefaultLogger) Error(v ...interface{}) error
- func (l DefaultLogger) Errorf(format string, a ...interface{}) error
- func (l DefaultLogger) Info(v ...interface{}) error
- func (l DefaultLogger) Infof(format string, a ...interface{}) error
- func (l DefaultLogger) Warning(v ...interface{}) error
- func (l DefaultLogger) Warningf(format string, a ...interface{}) error
- type Level
- type Read
- type Server
- type ServerLogger
- type Settings
- type Store
- type StoreAndRead
Constants ¶
View Source
const ( UserNameTag = "X-Auth-User" PasswordTag = "X-Auth-Key" TokenTag = "X-Auth-Token" StorageUrlTag = "X-Storage-Url" RootAuthEndpoint = "/auth/v1.0" RootStorageEndpoint = "/v1.0/abc" ContainerMeta = "X-Container-Meta-" ObjectMeta = "X-Object-Meta-" )
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l ServerLogger)
Types ¶
type Capability ¶
type Capability struct { Read `json:"Read"` Store `json:"Store"` StoreAndRead `json:"StoreAndRead"` }
type Config ¶
type Config struct { ConnectionFileVersion string `json:"ConnectionFileVersion"` SiteName string `json:"SiteName"` ApplicationName string `json:"ApplicationName"` ApplicationVersion string `json:"ApplicationVersion"` // ApplicationUsersAllowed int `json:"ApplicationUsersAllowed"` // ApplicationDevicesAllowed int `json:"ApplicationDevicesAllowed"` // NTPServer string `json:"NTPServer"` AuthenticationTokenURI []string `json:"AuthenticationTokenURI"` HTTPSCertificate []string `json:"HTTPSCertificate,omitempty"` // AxisMSSAPIVersion string `json:"AxisMSSAPIVersion"` BlobAPI string `json:"BlobAPI"` BlobAPIKey string `json:"BlobAPIKey"` BlobAPIUserName string `json:"BlobAPIUserName"` ContainerType string `json:"ContainerType"` // VideoEncoding string `json:"VideoEncoding"` WantEncryption bool `json:"WantEncryption"` PublicKey string `json:"PublicKey"` PublicKeyId string `json:"PublicKeyId"` FullStoreAndReadSupport bool `json:"FullStoreAndReadSupport"` }
Config represents the contents of the connection file used to configure the SCU
type DefaultLogger ¶
type DefaultLogger struct{}
func (DefaultLogger) Error ¶
func (l DefaultLogger) Error(v ...interface{}) error
func (DefaultLogger) Errorf ¶
func (l DefaultLogger) Errorf(format string, a ...interface{}) error
func (DefaultLogger) Info ¶
func (l DefaultLogger) Info(v ...interface{}) error
func (DefaultLogger) Infof ¶
func (l DefaultLogger) Infof(format string, a ...interface{}) error
func (DefaultLogger) Warning ¶
func (l DefaultLogger) Warning(v ...interface{}) error
func (DefaultLogger) Warningf ¶
func (l DefaultLogger) Warningf(format string, a ...interface{}) error
type ServerLogger ¶
type StoreAndRead ¶
type StoreAndRead struct {
StoreReadSystemID bool
}
Click to show internal directories.
Click to hide internal directories.