sfauth

package
v0.0.0-...-91bdc37 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(oauthID, oauthSecret string) *Cache

func (*Cache) Add

func (c *Cache) Add(key interface{}, oauthCode url.Values) (sharefile.Credentials, error)

func (*Cache) LoginURL

func (c *Cache) LoginURL(callbackURL string) string

func (*Cache) TryGet

func (c *Cache) TryGet(key interface{}) (sharefile.Credentials, bool)

Jump to

Keyboard shortcuts

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