Documentation ¶
Index ¶
- Constants
- Variables
- func GenId() string
- type AES
- type Access
- type Base
- type Bash
- type CheckSum
- type Data
- type DataMap
- type Decoder
- type DecodingPipeline
- type Deleter
- type EncodeDecoder
- type Encoder
- type EncodingPipeline
- type File
- type GoogleCloud
- type Gzip
- type HTTP
- func (h *HTTP) Decode(w http.ResponseWriter, r *http.Request, dataMap map[string]interface{}) error
- func (h *HTTP) Encode(w http.ResponseWriter, r *http.Request, id string) (map[string]interface{}, error)
- func (h *HTTP) Remove(w http.ResponseWriter, r *http.Request, dataMap map[string]interface{}) error
- type Image
- type ImageOperation
- type Inputer
- type Null
- type NullWriterCloser
- type Outputer
- type Pipeline
- type S3Bucket
- type Service
- type Size
- type Tee
Constants ¶
View Source
const GoogleCloudScope = "https://www.googleapis.com/auth/devstorage.read_write"
Variables ¶
View Source
var NoDecodindError = errors.New("No decoding pipeline defined")
View Source
var NoEncodindError = errors.New("No encoding pipeline defined")
Functions ¶
Types ¶
type AES ¶
type Data ¶
func NewDataFrom ¶
type DecodingPipeline ¶
type EncodeDecoder ¶
type EncodingPipeline ¶
func (*EncodingPipeline) GetOutputs ¶
func (ep *EncodingPipeline) GetOutputs() []string
type File ¶
type File struct { Prefix string Suffix string Dir string AllowSub bool RemoveEmpty bool Name string }
func (*File) RemoveIfEmpty ¶
type GoogleCloud ¶
type GoogleCloud struct { Prefix string Suffix string ProjectId string Bucket string Name string JsonKeyPath string Client *http.Client // contains filtered or unexported fields }
func (*GoogleCloud) GetName ¶
func (g *GoogleCloud) GetName() string
func (*GoogleCloud) NewReader ¶
func (g *GoogleCloud) NewReader(id string, d *Data) (io.ReadCloser, error)
func (*GoogleCloud) NewWriter ¶
func (g *GoogleCloud) NewWriter(id string, d *Data) (io.WriteCloser, error)
func (*GoogleCloud) Start ¶
func (g *GoogleCloud) Start() error
type HTTP ¶
type HTTP struct { Encoders []Encoder Decoders []Decoder Input Inputer Output Outputer Delete Deleter // contains filtered or unexported fields }
type Image ¶
type ImageOperation ¶
type ImageOperation int
const ( ImageThumbnail ImageOperation = iota ImageResize )
type NullWriterCloser ¶
type NullWriterCloser struct{}
func (*NullWriterCloser) Close ¶
func (nwc *NullWriterCloser) Close() error
type Pipeline ¶
type Pipeline struct { Errors []error // contains filtered or unexported fields }
func NewDecoding ¶
func NewDecoding(decoders []Decoder, r io.ReadCloser, d *Data) *Pipeline
func NewEncoding ¶
func NewEncoding(encoders []Encoder, r io.ReadCloser, d *Data) *Pipeline
type S3Bucket ¶
type S3Bucket struct { Prefix string Suffix string AccessKey string SecretKey string Domain string Bucket string Name string // contains filtered or unexported fields }
type Service ¶
type Service struct { EncodingPipe *EncodingPipeline DecodingPipe *DecodingPipeline }
type Tee ¶
func (*Tee) GetOutputs ¶
Click to show internal directories.
Click to hide internal directories.