tweets

package
v0.0.0-...-24a8c69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a tweets client.

func NewClient

func NewClient(config Config, logger *zap.Logger) *Client

NewClient returns a new tweets client.

func (*Client) GetTweets

func (c *Client) GetTweets(ctx context.Context, user string, values v1.TweetsURLValues) (v1.TweetsResponse, error)

GetTweets returns tweets.

type Config

type Config struct {
	Source     string
	APIVersion string
	// contains filtered or unexported fields
}

Config represents tweets client configuration.

func (Config) Validate

func (cfg Config) Validate() error

Validate validates the tweets client configuration.

Jump to

Keyboard shortcuts

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