Documentation ¶
Index ¶
- Variables
- type PagingContext
- func (p *PagingContext) ComputeHash() fnv1a.Hash
- func (p *PagingContext) DecodeQueryParams(reader restlicodec.QueryParamsReader) (err error)
- func (p *PagingContext) EncodeQueryParams() (rawQuery string, err error)
- func (p *PagingContext) Equals(other *PagingContext) bool
- func (p *PagingContext) MarshalFields(keyWriter func(string) restlicodec.Writer) (err error)
- func (p *PagingContext) NewInstance() *PagingContext
- func (p *PagingContext) UnmarshalField(reader restlicodec.Reader, field string) (found bool, err error)
- type RawRecord
- func (r RawRecord) ComputeHash() fnv1a.Hash
- func (r RawRecord) Equals(other RawRecord) bool
- func (r RawRecord) MarshalRestLi(writer restlicodec.Writer) error
- func (r RawRecord) NewInstance() RawRecord
- func (r *RawRecord) UnmarshalRestLi(reader restlicodec.Reader) error
- func (r *RawRecord) UnmarshalTo(obj restlicodec.Unmarshaler) error
Constants ¶
This section is empty.
Variables ¶
var PagingContextRequiredFields = restlicodec.NewRequiredFields()
Functions ¶
This section is empty.
Types ¶
type PagingContext ¶
func NewPagingContext ¶
func NewPagingContext(start, count int32) PagingContext
func (*PagingContext) ComputeHash ¶
func (p *PagingContext) ComputeHash() fnv1a.Hash
func (*PagingContext) DecodeQueryParams ¶
func (p *PagingContext) DecodeQueryParams(reader restlicodec.QueryParamsReader) (err error)
func (*PagingContext) EncodeQueryParams ¶
func (p *PagingContext) EncodeQueryParams() (rawQuery string, err error)
func (*PagingContext) Equals ¶
func (p *PagingContext) Equals(other *PagingContext) bool
func (*PagingContext) MarshalFields ¶
func (p *PagingContext) MarshalFields(keyWriter func(string) restlicodec.Writer) (err error)
func (*PagingContext) NewInstance ¶
func (p *PagingContext) NewInstance() *PagingContext
func (*PagingContext) UnmarshalField ¶
func (p *PagingContext) UnmarshalField(reader restlicodec.Reader, field string) (found bool, err error)
type RawRecord ¶
type RawRecord map[string]interface{}
RawRecord is a container for arbitrary data. Because it gets parsed from raw JSON without any extra type information, it is expected that there will be unknown side effects, such as floats turning into integers or vice versa. This is designed to fill the gap for Java's DataMap-backed implementation of rest.li that supports untyped messages. To attempt deserialization into a know/real rest.li object, use the UnmarshalTo method Use at your own risk!
func (RawRecord) ComputeHash ¶
ComputeHash for a RawRecord always returns the 0-hash
func (RawRecord) Equals ¶
Equals for a RawRecord always returns false, unless it is being compared with itself
func (RawRecord) MarshalRestLi ¶
func (r RawRecord) MarshalRestLi(writer restlicodec.Writer) error
func (RawRecord) NewInstance ¶
func (*RawRecord) UnmarshalRestLi ¶
func (r *RawRecord) UnmarshalRestLi(reader restlicodec.Reader) error
func (*RawRecord) UnmarshalTo ¶
func (r *RawRecord) UnmarshalTo(obj restlicodec.Unmarshaler) error
UnmarshalTo attempts to deserialize this RawRecord into the given object by serializing it first to JSON then calling the given object's unmarshal method