Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LegacyToken = flag.String("slack-legacy-token", "", "the Slack legacy token")
)
Flags
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
LegacyToken string `toml:"legacy_token"`
Sender astihttp.SenderOptions
}
Configuration represents the configuration of the logger
func FlagConfig ¶
func FlagConfig() Configuration
FlagConfig generates a Configuration based on flags
type Response ¶
type Response struct {
Files ResponseFiles `json:"files"`
Messages ResponseMessages `json:"messages"`
OK bool `json:"ok"`
Team string `json:"team"`
TeamID string `json:"team_id"`
User string `json:"user"`
UserID string `json:"user_id"`
}
type ResponseChannel ¶
type ResponseFile ¶
type ResponseFiles ¶
type ResponseFiles struct {
Matches []ResponseFile `json:"matches"`
Pagination ResponsePagination `json:"pagination"`
Paging ResponsePaging `json:"paging"`
Total int `json:"total"`
}
type ResponseMessage ¶
type ResponseMessage struct {
Channel ResponseChannel `json:"channel"`
Text string `json:"text"`
TS string `json:"ts"`
}
type ResponseMessages ¶
type ResponseMessages struct {
Matches []ResponseMessage `json:"matches"`
Pagination ResponsePagination `json:"pagination"`
Paging ResponsePaging `json:"paging"`
Total int `json:"total"`
}
type ResponsePagination ¶
type ResponsePaging ¶
Click to show internal directories.
Click to hide internal directories.