filemodes

package
v0.0.0-...-fc1953b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: GPL-3.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDNMode

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

func (*CDNMode) FullPath

func (cdn *CDNMode) FullPath(folder, filename string) string

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) StaticPath

func (*CDNMode) StaticPath(_ *iris.Application)

func (*CDNMode) Write

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

type FSMode

type FSMode struct{}

func (*FSMode) FullPath

func (*FSMode) FullPath(_, filename string) string

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) StaticPath

func (fs *FSMode) StaticPath(app *iris.Application)

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
	FullPath(folder, name string) string
	StaticPath(*iris.Application)
}

func GetFileMode

func GetFileMode() SaveMode

Jump to

Keyboard shortcuts

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