media

package
v0.0.0-...-06c7680 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilename

func NewFilename(filename string) string

NewFilename generates unique filename.

Types

type Permission

type Permission uint8

Permission defines the access policy for the object.

const (
	// Owner gets full control. Others have no access right.
	PRIVATE Permission = iota

	// Owner gets full control. Others have the right to read.
	PUBLIC_READ
)

type Store

type Store interface {
	Put(string, Permission, io.ReadSeeker) (string, error)
	Get(string, bool) string
	Delete(string) error
}

Store defines the interface for object storage.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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