Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoToken = errors.New("no token") ErrNoCookies = errors.New("no cookies") )
Functions ¶
This section is empty.
Types ¶
type BrowserAuth ¶
type BrowserAuth struct {
// contains filtered or unexported fields
}
func NewBrowserAuth ¶
func NewBrowserAuth() (BrowserAuth, error)
func (BrowserAuth) SlackToken ¶
func (c BrowserAuth) SlackToken() string
type CookieFileAuth ¶
type CookieFileAuth struct {
// contains filtered or unexported fields
}
func NewCookieFileAuth ¶
func NewCookieFileAuth(token string, cookieFile string) (CookieFileAuth, error)
NewCookieFileAuth creates new auth provider from token and Mozilla cookie file.
func (CookieFileAuth) SlackToken ¶
func (c CookieFileAuth) SlackToken() string
type ValueAuth ¶
type ValueAuth struct {
// contains filtered or unexported fields
}
ValueAuth stores Slack credentials.
func (ValueAuth) SlackToken ¶
func (c ValueAuth) SlackToken() string
Click to show internal directories.
Click to hide internal directories.