server

package
v1.6.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Configure

func Configure(configPath, version string) error

func SetLogger

func SetLogger(l ServerLogger)

func URLDecode

func URLDecode(s string) string

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 Level

type Level int
const (
	Error   Level = 3
	Warning Level = 4
	Info    Level = 6
)

func (Level) String

func (l Level) String() string

type Read added in v1.6.10

type Read struct {
	ReadCategories bool
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(settingsPath string) (*Server, error)

func (*Server) Run

func (s *Server) Run(exit chan struct{})

type ServerLogger

type ServerLogger interface {
	Error(v ...interface{}) error
	Warning(v ...interface{}) error
	Info(v ...interface{}) error

	Errorf(format string, a ...interface{}) error
	Warningf(format string, a ...interface{}) error
	Infof(format string, a ...interface{}) error
}

type Settings

type Settings struct {
	StorageLocation string
	Port            string
	IPs             []string
	UseHttps        bool
	Username        string
	Password        []byte

	TokenSecret []byte
	// contains filtered or unexported fields
}

type Store added in v1.6.10

type Store struct {
	StoreBookmarks          bool
	StoreRejectedContent    bool
	StoreUserIDKey          bool
	StoreSignedVideo        bool
	StoreGNSSTrackRecording bool
}

type StoreAndRead

type StoreAndRead struct {
	StoreReadSystemID bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL