request

package
v0.0.0-...-57214d0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyType

type AnyType struct {
	//ProcessGroup
	Type          string      `xml:"type,attr"`
	ID            int         `xml:"ID"`
	ExName        string      `xml:"ExName"`
	TargetFormat  string      `xml:"TargetFormat"`
	TargetQuality string      `xml:"TargetQuality"`
	IsSharpen     bool        `xml:"IsSharpen"`
	Radius        int         `xml:"Radius"`
	Sigma         int         `xml:"Sigma"`
	Channels      string      `xml:"Channels"`
	List          ProcessList `xml:"List"`
	//Cropping
	Proportion float64 `xml:"Proportion"`
	//Watermark
	Transparency float64 `xml:"Transparency"`
	Position     string  `xml:"Position"`
	X            int     `xml:"X"`
	Y            int     `xml:"Y"`
	MinWidth     int     `xml:"MinWith"` //As it's wrong in C#, we have to be wrong
	MinHeight    int     `xml:"MinHeight"`
	FileBytes    []byte  `xml:"FileBytes"`
	//Compression
	Width  int `xml:"Width"`
	Height int `xml:"Height"`
	//Conver
	//ProportionCompression
	//CustomCropping
	//SpecialGroup
	Taipe int `xml:"Type"`
}

func (*AnyType) MarshalJSON

func (mj *AnyType) MarshalJSON() ([]byte, error)

func (*AnyType) MarshalJSONBuf

func (mj *AnyType) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*AnyType) UnmarshalJSON

func (uj *AnyType) UnmarshalJSON(input []byte) error

func (*AnyType) UnmarshalJSONFFLexer

func (uj *AnyType) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type CheckItem

type CheckItem struct {
	IsOtherImage bool       `xml:"IsOtherImage"`
	Types        FormatList `xml:"Types"`
	MaxBytes     float64    `xml:"MaxBytes"`
	MinWidth     int        `xml:"MinWidth"`
	MinHeight    int        `xml:"MinHeight"`
	MaxWidth     int        `xml:"MaxWidth"`
	MaxHeight    int        `xml:"MaxHeight"`
}

type DeleteRequest

type DeleteRequest struct {
	IsDeleteAll bool   `xml:"IsDeleteAll"`
	ExPath      string `xml:"ExPath"`
	FilePath    string `xml:"FilePath"`
}

type FormatList

type FormatList struct {
	ImgFormats []string `xml:"ImgFormat"`
}
type Header struct {
	UserID          string `xml:"UserID,attr"`
	RequestID       string `xml:"RequestID,attr"`
	RequestType     string `xml:"RequestType,attr"`
	ClientIP        string `xml:"ClientIP,attr"`
	AsyncRequest    bool   `xml:"AsyncRequest,attr"`
	Timeout         int    `xml:"Timeout,attr"`
	MessagePriority int    `xml:"MessagePriority,attr"`
	AssemblyVersion string `xml:"AssemblyVersion,attr"`
	RequestBodySize int    `xml:"RequestBodySize,attr"`
	SerializeMode   string `xml:"SerializeMode,attr"`
	RouteStep       int    `xml:"RouteStep,attr"`
	Culture         string `xml:"Culture,attr"`
	Environment     string `xml:"Environment,attr"`
	ReCallType      string `xml:"ReCallType,attr"`
	ReferenceID     string `xml:"ReferenceID,attr"`
	SessionID       string `xml:"SessionID,attr"`
	SrcAppID        string `xml:"SrcAppID,attr"`
	TransNo         string `xml:"TransNo,attr"`
	UseMemoryQ      bool   `xml:"UseMemoryQ,attr"`
	Version         string `xml:"Version,attr"`
	Via             string `xml:"Via,attr"`
}

type LoadFile

type LoadFile struct {
	FilePath string `xml:"FilePath"`
	Rename   string `xml:"Rename"`
	IsSource bool   `xml:"IsSource"`
}

type LoadFileList

type LoadFileList struct {
	LoadFiles []LoadFile `xml:"LoadFile"`
}

type LoadImgRequest

type LoadImgRequest struct {
	IsSource bool   `xml:"IsSource"`
	FilePath string `xml:"FilePath"`
}

type LoadZipRequest

type LoadZipRequest struct {
	Files LoadFileList `xml:"Files"`
}

type ProcessList

type ProcessList struct {
	AnyTypes []AnyType `xml:"anyType"`
}

func (*ProcessList) MarshalJSON

func (mj *ProcessList) MarshalJSON() ([]byte, error)

func (*ProcessList) MarshalJSONBuf

func (mj *ProcessList) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*ProcessList) UnmarshalJSON

func (uj *ProcessList) UnmarshalJSON(input []byte) error

func (*ProcessList) UnmarshalJSONFFLexer

func (uj *ProcessList) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type Request

type Request struct {
	Header         Header         `xml:"Header"`
	SaveRequest    SaveRequest    `xml:"SaveRequest"`
	DeleteRequest  DeleteRequest  `xml:"DeleteRequest"`
	LoadZipRequest LoadZipRequest `xml:"LoadZipRequest"`
	LoadImgRequest LoadImgRequest `xml:"LoadImgRequest"`
}

type SaveRequest

type SaveRequest struct {
	FileBytes      []byte      `xml:"FileBytes"`
	FilePath       string      `xml:"FilePath"`
	CheckItem      CheckItem   `xml:"CheckItem"`
	OriginalFormat string      `xml:"OriginalFormat"`
	SaveType       string      `xml:"SaveType"`
	TargetFormat   string      `xml:"TargetFormat"`
	SourceSaveMode string      `xml:"SourceSaveMode"`
	TargetQuality  int         `xml:"TargetQuality"`
	ObjectID       string      `xml:"ObjectID"`
	Channel        string      `xml:"Channel"`
	StorageType    string      `xml:"StorageType"`
	Process        ProcessList `xml:"Process"`
	SourcePath     string      `xml:"SourcePath"`
	PlanID         string      `xml:"PlanID"`
	StartDateTime  string      `xml:"StartDateTime"`
	PathType       int         `xml:"PathType"`
}

Jump to

Keyboard shortcuts

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