Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type OpError ¶
type OpError struct { // Op is the operation which caused the error, such as // "basic authentication" or "two factor authentication". Op string // Err is the error that occurred during the operation. Err error }
OpError is the error type usually returned by functions in the loginslack package.
type Option ¶
type Option func(*options)
Option indicates functional options.
func WithTwoFactorHandler ¶
WithTwoFactorHandler indicates option to invoke passed handler when called two factor authentication. It should returns 6-digits string.
func WithUserAgent ¶
WithUserAgent indicates option to change user-agent
Click to show internal directories.
Click to hide internal directories.