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 ¶
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 (*RealClient) CreatePost ¶
func (c *RealClient) CreatePost(ctx context.Context, prefix string, event *github.IssuesEvent) error
func (*RealClient) Name ¶
func (c *RealClient) Name() string
Click to show internal directories.
Click to hide internal directories.