metajson

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaJSONBackend

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

func NewMetaJSONBackend

func NewMetaJSONBackend(storage backends.MetaStorageBackend) MetaJSONBackend

func (MetaJSONBackend) Get

func (m MetaJSONBackend) Get(key string) (metadata backends.Metadata, err error)

func (MetaJSONBackend) Put

func (m MetaJSONBackend) Put(key string, metadata *backends.Metadata) error

type MetadataJSON

type MetadataJSON struct {
	DeleteKey    string   `json:"delete_key"`
	Sha256sum    string   `json:"sha256sum"`
	Mimetype     string   `json:"mimetype"`
	Size         int64    `json:"size"`
	Expiry       int64    `json:"expiry"`
	ArchiveFiles []string `json:"archive_files,omitempty"`
}

Jump to

Keyboard shortcuts

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