Documentation ¶
Index ¶
- Constants
- type RcOAuthManager
- func (h RcOAuthManager) GetToken(key string) (ro.RcToken, error)
- func (h RcOAuthManager) HandleOAuthAny(aRes anyhttp.Response, aReq anyhttp.Request)
- func (h RcOAuthManager) HandleOAuthNetHTTP(res http.ResponseWriter, req *http.Request)
- func (h RcOAuthManager) StoreToken(key string, rcToken oauth2.Token) error
Constants ¶
View Source
const (
DefaultBotTokenPrefix = "rcBotExtId-" // #nosec G101
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RcOAuthManager ¶
type RcOAuthManager struct { TokenPrefix string // contains filtered or unexported fields }
func NewRcOAuthManager ¶
func NewRcOAuthManager(client *http.Client, appCreds goauth.CredentialsOAuth2) RcOAuthManager
func (RcOAuthManager) HandleOAuthAny ¶
func (h RcOAuthManager) HandleOAuthAny(aRes anyhttp.Response, aReq anyhttp.Request)
func (RcOAuthManager) HandleOAuthNetHTTP ¶ added in v0.2.0
func (h RcOAuthManager) HandleOAuthNetHTTP(res http.ResponseWriter, req *http.Request)
func (RcOAuthManager) StoreToken ¶
func (h RcOAuthManager) StoreToken(key string, rcToken oauth2.Token) error
Click to show internal directories.
Click to hide internal directories.