types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SampleStreamBackfillMinutes

type SampleStreamBackfillMinutes int

func (SampleStreamBackfillMinutes) String

func (SampleStreamBackfillMinutes) Valid

type SampleStreamInput

type SampleStreamInput struct {
	// Query parameters
	BackfillMinutes SampleStreamBackfillMinutes
	Expansions      fields.ExpansionList
	MediaFields     fields.MediaFieldList
	PlaceFields     fields.PlaceFieldList
	PollFields      fields.PollFieldList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
}

func (*SampleStreamInput) Body

func (p *SampleStreamInput) Body() io.Reader

func (*SampleStreamInput) ContentType

func (p *SampleStreamInput) ContentType() string

func (*SampleStreamInput) ParameterMap

func (p *SampleStreamInput) ParameterMap() map[string]string

func (*SampleStreamInput) ResolveEndpoint

func (p *SampleStreamInput) ResolveEndpoint(endpointBase string) string

type SampleStreamOutput

type SampleStreamOutput struct {
	Data     resources.Tweet `json:"data"`
	Includes struct {
		Users  []resources.User  `json:"users,omitempty"`
		Tweets []resources.Tweet `json:"tweets,omitempty"`
		Places []resources.Place `json:"places,omitempty"`
		Media  []resources.Media `json:"media,omitempty"`
		Polls  []resources.Poll  `json:"polls,omitempty"`
	} `json:"includes,omitempty"`
	Errors []resources.PartialError `json:"errors,omitempty"`
}

func (*SampleStreamOutput) HasPartialError

func (r *SampleStreamOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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