combocurve_auth

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAudience = "https://api.combocurve.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type ComboCurveAuth

type ComboCurveAuth struct {
	TokenRefresher *token_refresher.TokenRefresher
	ApiKey         string
}

func NewComboCurveAuth

func NewComboCurveAuth(sa *service_account.ServiceAccount, apiKey string, secondsBeforeTokenExpire, tokenDuration int) (*ComboCurveAuth, error)

func (*ComboCurveAuth) GetAuthHeaders

func (c *ComboCurveAuth) GetAuthHeaders() (map[string]string, error)

Jump to

Keyboard shortcuts

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