twitter

package
v0.0.0-...-39d8f80 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTweetFailed = errors.New("failed to send tweet")

ErrTweetFailed is for failed tweet

Functions

func GetTwitterHandleMap

func GetTwitterHandleMap() map[string]string

GetTwitterHandleMap returns the twitter map

Types

type NoopClient

type NoopClient struct{}

func NewNoopClient

func NewNoopClient(credsProvider creds.Provider) (*NoopClient, error)

NewClient returns new twitter client

func (*NoopClient) CreatePost

func (c *NoopClient) CreatePost(ctx context.Context, prefix string, event *github.IssuesEvent) error

func (*NoopClient) Name

func (c *NoopClient) Name() string

type RealClient

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

func NewClient

func NewClient(client *http.Client, credsProvider creds.Provider) (*RealClient, error)

NewClient returns new twitter client

func (*RealClient) CreatePost

func (c *RealClient) CreatePost(ctx context.Context, prefix string, event *github.IssuesEvent) error

func (*RealClient) Name

func (c *RealClient) Name() string

Jump to

Keyboard shortcuts

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