types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListAllInput

type ListAllInput struct {

	// Path parameters
	Query       string
	StartTime   *time.Time
	EndTime     *time.Time
	SinceID     string
	UntilID     string
	Granularity TweetCountsGranularity
	NextToken   string
	// contains filtered or unexported fields
}

func (*ListAllInput) AccessToken

func (p *ListAllInput) AccessToken() string

func (*ListAllInput) Body

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

func (*ListAllInput) ParameterMap

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

func (*ListAllInput) ResolveEndpoint

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

func (*ListAllInput) SetAccessToken

func (p *ListAllInput) SetAccessToken(token string)

type ListAllOutput

type ListAllOutput struct {
	Data   []resources.TweetCount      `json:"data"`
	Meta   resources.TweetCountAllMeta `json:"meta"`
	Errors []resources.PartialError    `json:"errors"`
}

func (*ListAllOutput) HasPartialError

func (r *ListAllOutput) HasPartialError() bool

type ListRecentInput

type ListRecentInput struct {

	// Path parameters
	Query       string
	StartTime   *time.Time
	EndTime     *time.Time
	SinceID     string
	UntilID     string
	Granularity TweetCountsGranularity
	// contains filtered or unexported fields
}

func (*ListRecentInput) AccessToken

func (p *ListRecentInput) AccessToken() string

func (*ListRecentInput) Body

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

func (*ListRecentInput) ParameterMap

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

func (*ListRecentInput) ResolveEndpoint

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

func (*ListRecentInput) SetAccessToken

func (p *ListRecentInput) SetAccessToken(token string)

type ListRecentOutput

type ListRecentOutput struct {
	Data   []resources.TweetCount         `json:"data"`
	Meta   resources.TweetCountRecentMeta `json:"meta"`
	Errors []resources.PartialError       `json:"errors"`
}

func (*ListRecentOutput) HasPartialError

func (r *ListRecentOutput) HasPartialError() bool

type TweetCountsGranularity

type TweetCountsGranularity string
const (
	TweetCountsGranularityMinute TweetCountsGranularity = "minute"
	TweetCountsGranularityHour   TweetCountsGranularity = "hour" // default
	TweetCountsGranularityDay    TweetCountsGranularity = "day"
)

func (TweetCountsGranularity) String

func (g TweetCountsGranularity) String() string

func (TweetCountsGranularity) Valid

func (g TweetCountsGranularity) Valid() bool

Jump to

Keyboard shortcuts

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