filemodes

package
v0.0.0-...-12d2452 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID(id string) string

Types

type CDNMode

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

func (*CDNMode) Path

func (*CDNMode) Path() string

func (*CDNMode) Read

func (cdn *CDNMode) Read(path string) []byte

func (*CDNMode) Setup

func (cdn *CDNMode) Setup()

func (*CDNMode) Write

func (cdn *CDNMode) Write(data []byte, name string) (string, string)

type FSMode

type FSMode struct{}

func (*FSMode) Path

func (*FSMode) Path() string

func (*FSMode) Read

func (fs *FSMode) Read(path string) []byte

func (*FSMode) Setup

func (fs *FSMode) Setup()

func (*FSMode) Write

func (fs *FSMode) Write(data []byte, name string) (string, string)

type SaveMode

type SaveMode interface {
	Setup()
	Write([]byte, string) (string, string)
	Read(string) []byte
	Path() string
}

func GetFileMode

func GetFileMode() SaveMode

Jump to

Keyboard shortcuts

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