Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIMEJSON = "application/json" MIMEHTML = "text/html" MIMEXML = "application/xml" MIMEXML2 = "text/xml" MIMEPlain = "text/plain" MIMEPOSTForm = "application/x-www-form-urlencoded" MIMEMultipartPOSTForm = "multipart/form-data" MIMEPROTOBUF = "application/x-protobuf" MIMEMSGPACK = "application/x-msgpack" MIMEMSGPACK2 = "application/msgpack" MIMEYAML = "application/x-yaml" )
View Source
const DefaultProto = "binding"
Variables ¶
View Source
var ErrUnsupportedContentType = fmt.Errorf("xbinding: 不支持的Content-Type")
Functions ¶
Types ¶
type BytesReader ¶ added in v0.1.1
type BytesReader []byte
func (BytesReader) ReadObject ¶ added in v0.1.1
func (b BytesReader) ReadObject() (any, error)
type Codec ¶
type MapReader ¶ added in v0.1.1
func (MapReader) ReadObject ¶ added in v0.1.1
type MultipartReqestInfo ¶ added in v0.1.1
type Options ¶
func NewOptions ¶
type ReaderWrapper ¶ added in v0.1.1
type ReaderWrapper struct {
Data any
}
func (*ReaderWrapper) ReadObject ¶ added in v0.1.1
func (r *ReaderWrapper) ReadObject() (any, error)
type SMapReader ¶ added in v0.1.1
func (SMapReader) ReadObject ¶ added in v0.1.1
func (b SMapReader) ReadObject() (any, error)
type XMapReader ¶ added in v0.1.1
func (XMapReader) ReadObject ¶ added in v0.1.1
func (b XMapReader) ReadObject() (any, error)
Click to show internal directories.
Click to hide internal directories.