types

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddingRule added in v0.11.2

type AddingRule struct {
	Value *string `json:"value,omitempty"`
	Tag   *string `json:"tag,omitempty"`
}

type AddingRules added in v0.11.2

type AddingRules []AddingRule

type CreateRulesInput added in v0.11.2

type CreateRulesInput struct {

	// Query parameters
	DryRun bool `json:"-"` // default false

	// JSON body parameter
	Add AddingRules `json:"add,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRulesInput) AccessToken added in v0.11.2

func (p *CreateRulesInput) AccessToken() string

func (*CreateRulesInput) Body added in v0.11.2

func (p *CreateRulesInput) Body() (io.Reader, error)

func (*CreateRulesInput) ParameterMap added in v0.11.2

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

func (*CreateRulesInput) ResolveEndpoint added in v0.11.2

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

func (*CreateRulesInput) SetAccessToken added in v0.11.2

func (p *CreateRulesInput) SetAccessToken(token string)

type CreateRulesOutput added in v0.11.2

type CreateRulesOutput struct {
	Data   []resources.FilterdStreamRule `json:"data"`
	Meta   resources.CreateSearchStreamRulesMeta
	Errors []resources.PartialError `json:"errors"`
}

func (*CreateRulesOutput) HasPartialError added in v0.11.2

func (r *CreateRulesOutput) HasPartialError() bool

type DeleteRulesInput added in v0.11.2

type DeleteRulesInput struct {

	// Query parameters
	DryRun bool `json:"-"` // default false

	// JSON body parameter
	Delete *DeletingRules `json:"delete,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRulesInput) AccessToken added in v0.11.2

func (p *DeleteRulesInput) AccessToken() string

func (*DeleteRulesInput) Body added in v0.11.2

func (p *DeleteRulesInput) Body() (io.Reader, error)

func (*DeleteRulesInput) ParameterMap added in v0.11.2

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

func (*DeleteRulesInput) ResolveEndpoint added in v0.11.2

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

func (*DeleteRulesInput) SetAccessToken added in v0.11.2

func (p *DeleteRulesInput) SetAccessToken(token string)

type DeleteRulesOutput added in v0.11.2

type DeleteRulesOutput struct {
	Data   []resources.FilterdStreamRule `json:"data"`
	Meta   resources.DeleteSearchStreamRulesMeta
	Errors []resources.PartialError `json:"errors"`
}

func (*DeleteRulesOutput) HasPartialError added in v0.11.2

func (r *DeleteRulesOutput) HasPartialError() bool

type DeletingRules added in v0.11.2

type DeletingRules struct {
	IDs []string `json:"ids"`
}

type ListRulesInput

type ListRulesInput struct {

	// Query parameters
	IDs []string
	// contains filtered or unexported fields
}

func (*ListRulesInput) AccessToken

func (p *ListRulesInput) AccessToken() string

func (*ListRulesInput) Body

func (p *ListRulesInput) Body() (io.Reader, error)

func (*ListRulesInput) ParameterMap

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

func (*ListRulesInput) ResolveEndpoint

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

func (*ListRulesInput) SetAccessToken

func (p *ListRulesInput) SetAccessToken(token string)

type ListRulesOutput

type ListRulesOutput struct {
	Data   []resources.FilterdStreamRule `json:"data"`
	Meta   resources.ListSearchStreamRulesMeta
	Errors []resources.PartialError `json:"errors"`
}

func (*ListRulesOutput) HasPartialError

func (r *ListRulesOutput) HasPartialError() bool

type SearchStreamBackfillMinutes added in v0.11.2

type SearchStreamBackfillMinutes int

func (SearchStreamBackfillMinutes) String added in v0.11.2

func (SearchStreamBackfillMinutes) Valid added in v0.11.2

type SearchStreamInput added in v0.11.2

type SearchStreamInput struct {

	// Query parameters
	BackfillMinutes SearchStreamBackfillMinutes
	Expansions      fields.ExpansionList
	MediaFields     fields.MediaFieldList
	PlaceFields     fields.PlaceFieldList
	PollFields      fields.PollFieldList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*SearchStreamInput) AccessToken added in v0.11.2

func (p *SearchStreamInput) AccessToken() string

func (*SearchStreamInput) Body added in v0.11.2

func (p *SearchStreamInput) Body() (io.Reader, error)

func (*SearchStreamInput) ParameterMap added in v0.11.2

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

func (*SearchStreamInput) ResolveEndpoint added in v0.11.2

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

func (*SearchStreamInput) SetAccessToken added in v0.11.2

func (p *SearchStreamInput) SetAccessToken(token string)

type SearchStreamMatchedRule added in v0.12.5

type SearchStreamMatchedRule struct {
	Tag *string `json:"tag"`
	ID  *string `json:"id"`
}

type SearchStreamOutput added in v0.11.2

type SearchStreamOutput 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"`
	MatchingRules []SearchStreamMatchedRule `json:"matching_rules,omitempty"`
	Errors        []resources.PartialError  `json:"errors,omitempty"`
}

func (*SearchStreamOutput) HasPartialError added in v0.11.2

func (r *SearchStreamOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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