token

package
v3.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(force bool, getter Getter) sdkutil.Middleware

Create creates new Middleware, which adds token to parameters if force parameter is true or if parameter "access_token" not set.

Types

type Getter

type Getter interface {
	Get(string, ...api.Params) (string, error)
}

Getter is a token storage.

type GetterFunc

type GetterFunc func(string, ...api.Params) (string, error)

GetterFunc is function adapter for Getter interface.

func (GetterFunc) Get

func (g GetterFunc) Get(s string, p ...api.Params) (string, error)

Jump to

Keyboard shortcuts

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