glip

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

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) GetToken

func (h RcOAuthManager) GetToken(key string) (ro.RcToken, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL