Documentation
¶
Index ¶
- type Client
- func (c *Client) FetchChannels(ctx context.Context, tx boil.ContextTransactor) error
- func (c *Client) FetchMessages(ctx context.Context, tx boil.ContextTransactor, channelID string) error
- func (c *Client) FetchUsers(ctx context.Context, tx boil.ContextTransactor) error
- func (c *Client) SetLogger(w io.Writer)
- func (c *Client) UpsertChannel(ctx context.Context, tx boil.ContextTransactor, channel slack.Channel) error
- func (c *Client) UpsertFile(ctx context.Context, tx boil.ContextTransactor, file slack.File) error
- func (c *Client) UpsertMessage(ctx context.Context, tx boil.ContextTransactor, message slack.Message) error
- func (c *Client) UpsertMessageFile(ctx context.Context, tx boil.ContextTransactor, messageTimestamp string, ...) error
- func (c *Client) UpsertUser(ctx context.Context, tx boil.ContextTransactor, user slack.User) error
- func (c *Client) Whoami() (botName, botID, userName, userID string, err error)
- type FetchMessagesConditionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { KeepFetchingMessages FetchMessagesConditionFunc KeepFetchingReplies FetchMessagesConditionFunc // contains filtered or unexported fields }
Client represents API client.
func (*Client) FetchChannels ¶
fetchChannels fetches and saves channels.
func (*Client) FetchMessages ¶
func (c *Client) FetchMessages(ctx context.Context, tx boil.ContextTransactor, channelID string) error
FetchMessages fetches and saves messages.
func (*Client) FetchUsers ¶
FetchUsers fetches and saves users.
func (*Client) UpsertChannel ¶ added in v0.2.0
func (c *Client) UpsertChannel(ctx context.Context, tx boil.ContextTransactor, channel slack.Channel) error
UpsertChannel updates or inserts given channel into database.
func (*Client) UpsertFile ¶ added in v0.2.2
UpsertFile updates or inserts given file into database.
func (*Client) UpsertMessage ¶ added in v0.2.0
func (c *Client) UpsertMessage(ctx context.Context, tx boil.ContextTransactor, message slack.Message) error
UpsertMessage updates or inserts given message into database.
func (*Client) UpsertMessageFile ¶ added in v0.2.2
func (c *Client) UpsertMessageFile(ctx context.Context, tx boil.ContextTransactor, messageTimestamp string, file slack.File) error
UpsertMessageFile updates or inserts given file into database.
func (*Client) UpsertUser ¶ added in v0.2.0
UpsertUser updates or inserts given user into database.
Click to show internal directories.
Click to hide internal directories.