pointers

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Complex

type Complex struct {
	Simple

	Caption string `json:"caption"`
	Credit  string `json:"credit"`
	// The available cropped images
	Crops          []ComplexCrops      `json:"crops"`
	Cutline        string              `json:"cutline,omitempty"`
	DatePhotoTaken time.Time           `json:"datePhotoTaken"`
	Orientation    string              `json:"orientation"`
	OriginalSize   ComplexOriginalSize `json:"originalSize"`
	// a type
	Type string `json:"type"`
	// Universal Resource Locator
	URL ComplexURL `json:"URL"`
}

func (*Complex) DecodeMsg

func (z *Complex) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Complex) EncodeMsg

func (z *Complex) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Complex) MarshalMsg

func (z *Complex) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Complex) Msgsize

func (z *Complex) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Complex) UnmarshalMsg

func (z *Complex) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ComplexCrops

type ComplexCrops struct {
	Height float64 `json:"height"`
	Name   string  `json:"name"`
	// full path to the cropped image file
	Path string `json:"path"`
	// a long
	// multi-line description
	RelativePath string  `json:"relativePath"`
	Width        float64 `json:"width"`
}

func (*ComplexCrops) DecodeMsg

func (z *ComplexCrops) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*ComplexCrops) EncodeMsg

func (z *ComplexCrops) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*ComplexCrops) MarshalMsg

func (z *ComplexCrops) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ComplexCrops) Msgsize

func (z *ComplexCrops) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ComplexCrops) UnmarshalMsg

func (z *ComplexCrops) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ComplexOriginalSize

type ComplexOriginalSize struct {
	Height float64 `json:"height"`
	Width  float64 `json:"width"`
}

func (*ComplexOriginalSize) DecodeMsg

func (z *ComplexOriginalSize) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (ComplexOriginalSize) EncodeMsg

func (z ComplexOriginalSize) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (ComplexOriginalSize) MarshalMsg

func (z ComplexOriginalSize) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ComplexOriginalSize) Msgsize

func (z ComplexOriginalSize) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ComplexOriginalSize) UnmarshalMsg

func (z *ComplexOriginalSize) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ComplexURL

type ComplexURL struct {
	// The full Canonical URL
	Absolute string          `json:"absolute"`
	Meta     *ComplexURLMeta `json:"meta,omitempty"`
	Publish  string          `json:"publish"`
}

func (*ComplexURL) DecodeMsg

func (z *ComplexURL) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*ComplexURL) EncodeMsg

func (z *ComplexURL) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*ComplexURL) MarshalMsg

func (z *ComplexURL) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ComplexURL) Msgsize

func (z *ComplexURL) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ComplexURL) UnmarshalMsg

func (z *ComplexURL) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ComplexURLMeta

type ComplexURLMeta struct {
	Description string `json:"description"`
	SiteName    string `json:"siteName"`
}

func (*ComplexURLMeta) DecodeMsg

func (z *ComplexURLMeta) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (ComplexURLMeta) EncodeMsg

func (z ComplexURLMeta) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (ComplexURLMeta) MarshalMsg

func (z ComplexURLMeta) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ComplexURLMeta) Msgsize

func (z ComplexURLMeta) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ComplexURLMeta) UnmarshalMsg

func (z *ComplexURLMeta) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Nested

type Nested struct {
	// Information related to the International Fact-Checking Network (IFCN) program
	FactCheckClaims []NestedFactCheckClaims `json:"factCheckClaims"`
}

func (*Nested) DecodeMsg

func (z *Nested) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Nested) EncodeMsg

func (z *Nested) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Nested) MarshalMsg

func (z *Nested) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Nested) Msgsize

func (z *Nested) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Nested) UnmarshalMsg

func (z *Nested) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type NestedFactCheckClaims

type NestedFactCheckClaims struct {
	// The factCheck appearanceURLs
	AppearanceURLs []*NestedFactCheckClaimsAppearanceURLs `json:"appearanceURLs,omitempty"`
	// The factCheck author
	Author string `json:"author,omitempty"`
	// The factCheck claim
	Claim string `json:"claim,omitempty"`
	// The date of the factCheck
	Date string `json:"date,omitempty"`
	// The factCheck rating
	Rating string `json:"rating,omitempty"`
}

func (*NestedFactCheckClaims) DecodeMsg

func (z *NestedFactCheckClaims) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*NestedFactCheckClaims) EncodeMsg

func (z *NestedFactCheckClaims) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*NestedFactCheckClaims) MarshalMsg

func (z *NestedFactCheckClaims) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*NestedFactCheckClaims) Msgsize

func (z *NestedFactCheckClaims) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*NestedFactCheckClaims) UnmarshalMsg

func (z *NestedFactCheckClaims) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type NestedFactCheckClaimsAppearanceURLs

type NestedFactCheckClaimsAppearanceURLs struct {
	// The original flag
	Original bool `json:"original,omitempty"`
	// The appearance url
	Url string `json:"url"`
}

func (*NestedFactCheckClaimsAppearanceURLs) DecodeMsg

func (z *NestedFactCheckClaimsAppearanceURLs) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (NestedFactCheckClaimsAppearanceURLs) EncodeMsg

func (z NestedFactCheckClaimsAppearanceURLs) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (NestedFactCheckClaimsAppearanceURLs) MarshalMsg

func (z NestedFactCheckClaimsAppearanceURLs) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (NestedFactCheckClaimsAppearanceURLs) Msgsize

func (z NestedFactCheckClaimsAppearanceURLs) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*NestedFactCheckClaimsAppearanceURLs) UnmarshalMsg

func (z *NestedFactCheckClaimsAppearanceURLs) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Nested_to_primitive added in v1.1.3

type Nested_to_primitive struct {
	Categories []Nested_to_primitiveCategories `json:"categories"`
}

type Nested_to_primitiveCategories added in v1.1.3

type Nested_to_primitiveCategories struct {
	Category    string   `json:"category,omitempty"`
	MarketTypes []string `json:"marketTypes,omitempty"`
}

type Simple

type Simple struct {
	Contributors []*SimpleContributors `json:"contributors,omitempty"`
	Height       int64                 `json:"height,omitempty"`
	SomeDateObj  *SimpleSomeDateObj    `json:"someDateObj,omitempty"`
	Type         string                `json:"type"`
	Visible      bool                  `json:"visible,omitempty"`
	Width        float64               `json:"width,omitempty"`
}

func (*Simple) DecodeMsg

func (z *Simple) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Simple) EncodeMsg

func (z *Simple) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Simple) MarshalMsg

func (z *Simple) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Simple) Msgsize

func (z *Simple) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Simple) UnmarshalMsg

func (z *Simple) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type SimpleContributors

type SimpleContributors struct {
	ContributorId string `json:"contributorId,omitempty"`
	Id            string `json:"id"`
	Name          string `json:"name"`
}

func (*SimpleContributors) DecodeMsg

func (z *SimpleContributors) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (SimpleContributors) EncodeMsg

func (z SimpleContributors) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (SimpleContributors) MarshalMsg

func (z SimpleContributors) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (SimpleContributors) Msgsize

func (z SimpleContributors) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*SimpleContributors) UnmarshalMsg

func (z *SimpleContributors) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type SimpleSomeDateObj

type SimpleSomeDateObj struct {
	Dates []*time.Time `json:"dates,omitempty"`
}

func (*SimpleSomeDateObj) DecodeMsg

func (z *SimpleSomeDateObj) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*SimpleSomeDateObj) EncodeMsg

func (z *SimpleSomeDateObj) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*SimpleSomeDateObj) MarshalMsg

func (z *SimpleSomeDateObj) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*SimpleSomeDateObj) Msgsize

func (z *SimpleSomeDateObj) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*SimpleSomeDateObj) UnmarshalMsg

func (z *SimpleSomeDateObj) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Times

type Times struct {
	NonRequiredDate *time.Time `json:"nonRequiredDate,omitempty"`
	RequiredDate    time.Time  `json:"requiredDate"`
}

func (*Times) DecodeMsg

func (z *Times) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Times) EncodeMsg

func (z *Times) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Times) MarshalMsg

func (z *Times) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Times) Msgsize

func (z *Times) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Times) UnmarshalMsg

func (z *Times) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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