restlidata

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PagingContextRequiredFields = restlicodec.NewRequiredFields()

Functions

This section is empty.

Types

type PagingContext

type PagingContext struct {
	Start *int32

	Count *int32
}

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

func (r RawRecord) ComputeHash() fnv1a.Hash

ComputeHash for a RawRecord always returns the 0-hash

func (RawRecord) Equals

func (r RawRecord) Equals(other RawRecord) bool

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 (r RawRecord) NewInstance() RawRecord

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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