Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContentTypeJSON = "application/json"
)
Variables ¶
View Source
var (
ErrLoginNeeded = errors.New("需要登录")
)
View Source
var (
NumberCodec = &numberCodec{}
)
Functions ¶
func RegisterDecoder ¶
func RegisterDecoder(d Decoder)
Types ¶
type Decoder ¶
type Decoder interface { // Typically: ContentType MineType() string Decode(data []byte, into Object) (err error) }
func NegotiateDecoder ¶
type ObjectMeta ¶
func (ObjectMeta) Error ¶
func (rm ObjectMeta) Error() string
func (ObjectMeta) RetMessage ¶
func (rm ObjectMeta) RetMessage() string
func (ObjectMeta) Retcode ¶
func (rm ObjectMeta) Retcode() Retcode
type TimeRFC3339 ¶
type TimeRFC3339 string
"2006-01-02T15:04:05Z07:00"
func (TimeRFC3339) Time ¶
func (t TimeRFC3339) Time() time.Time
type UnixTimestamp ¶
unixTimeStamp in second
func (UnixTimestamp) Time ¶
func (ut UnixTimestamp) Time() time.Time
Click to show internal directories.
Click to hide internal directories.