metajson

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 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"`
	ShortURL     string   `json:"short_url"`
}

Jump to

Keyboard shortcuts

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