admin_open_api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnknownContentType = errors.New("unknown content type")
)

Functions

func CompressFile added in v0.0.7

func CompressFile(data map[string][]byte) ([]byte, error)

func CreateHandler added in v0.1.0

func CreateHandler() admin.CreateHandler

Types

type File added in v0.1.0

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

func (*File) IsDir added in v0.1.0

func (f *File) IsDir() bool

func (*File) ModTime added in v0.1.0

func (f *File) ModTime() time.Time

func (*File) Mode added in v0.1.0

func (f *File) Mode() fs.FileMode

func (*File) Name added in v0.1.0

func (f *File) Name() string

func (*File) Size added in v0.1.0

func (f *File) Size() int64

func (*File) Sys added in v0.1.0

func (f *File) Sys() interface{}

type IData added in v0.1.0

type IData interface {
	UnMarshal(v interface{}) error
	Encode() ([]byte, error)
}

func GetData added in v0.0.7

func GetData(req *http.Request) (IData, error)

type JsonData

type JsonData []byte

func (JsonData) Encode added in v0.1.0

func (j JsonData) Encode() ([]byte, error)

func (JsonData) Marshal

func (j JsonData) Marshal() ([]byte, error)

func (JsonData) UnMarshal

func (j JsonData) UnMarshal(v interface{}) error

type OpenAdmin

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

func NewOpenAdmin

func NewOpenAdmin(admin eosc.IAdmin) *OpenAdmin

func (*OpenAdmin) GenHandler

func (o *OpenAdmin) GenHandler() http.Handler

func (*OpenAdmin) Save

func (o *OpenAdmin) Save(w http.ResponseWriter, r *http.Request, params httprouter.Params)

type XMLData

type XMLData []byte

type YamlData added in v0.0.7

type YamlData []byte

func (YamlData) Encode added in v0.1.0

func (y YamlData) Encode() ([]byte, error)

func (YamlData) Marshal added in v0.0.7

func (y YamlData) Marshal() ([]byte, error)

func (YamlData) UnMarshal added in v0.0.7

func (y YamlData) UnMarshal(v interface{}) error

type ZipFile added in v0.1.0

type ZipFile struct {
	bytes.Buffer
}

func Compress added in v0.0.7

func Compress(data map[string][]byte) (*ZipFile, error)

压缩文件 files 文件数组,可以是不同dir下的文件或者文件夹 dest 压缩文件存放地址

func NewZipFile added in v0.1.0

func NewZipFile() *ZipFile

func (*ZipFile) Export added in v0.1.0

func (f *ZipFile) Export() []byte

Jump to

Keyboard shortcuts

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