Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthedUser ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authenticate ¶
type CommandReply ¶
type CommandReply struct { ResponseType ResponseTpe `json:"response_type"` Text string `json:"text"` ReplaceOriginal bool `json:"replace_original"` DeleteOriginal bool `json:"delete_original"` }
type Config ¶
type Config struct {
Oauth OauthConfig `json:"oauth"`
}
type OauthConfig ¶
type OauthResponse ¶
type OauthResponse struct { Ok bool `json:"ok"` Error *string `json:"error"` AuthedUser AuthedUser `json:"authed_user"` }
type ResponseTpe ¶
type ResponseTpe string
type SlashCommand ¶
type SlashCommand struct { Token string `schema:"token"` Command string `schema:"command"` Text string `schema:"text"` ResponseURL string `schema:"response_url"` TriggerID string `schema:"trigger_id"` UserId string `schema:"user_id"` UserName string `schema:"user_name"` TeamID string `schema:"team_id"` ChannelID string `schema:"channel_id"` ChannelName string `schema:"channel_name"` APIAppID string `schema:"api_app_id"` IsEnterpriseInstall bool `schema:"is_enterprise_install"` TeamDomain string `schema:"team_domain"` }
type Store ¶
type Store interface { GetAuthedUser(userID string) (AuthedUser, bool, error) StoreAuthedUser(userID string, authedUser AuthedUser) error }
Click to show internal directories.
Click to hide internal directories.