outils

package module
v0.0.0-...-af2ef00 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 6 Imported by: 0

README

outils is just a simple utility package for Golang oauth apps

It aims to ease the creation of clients, especially around disk caching of tokens, since I wasn't able to find a library that exposed this functionality (instead, most clients that do this have their own implementation).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskCache

type DiskCache struct {
	Filename    string
	TokenSource oauth2.TokenSource
}

func (*DiskCache) Token

func (dc *DiskCache) Token() (t *oauth2.Token, err error)

type FirstValid

type FirstValid []oauth2.TokenSource

func (FirstValid) Token

func (f FirstValid) Token() (*oauth2.Token, error)

type SourceFunc

type SourceFunc func() (*oauth2.Token, error)

func (SourceFunc) Token

func (s SourceFunc) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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