utils

package
v0.0.0-...-5ea965e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(f func(ctx context.Context) error)

Types

type ApiKeyOptions

type ApiKeyOptions struct {
	ApiKey string
}

type BasicAuthOptions

type BasicAuthOptions struct {
	User string
	Pass string
}

type OAuth2AuthCodeOptions

type OAuth2AuthCodeOptions struct {
	OAuth2ClientId     string
	OAuth2ClientSecret string
	OAuth2AccessToken  string
	OAuth2RefreshToken string
	Expiry             time.Time
	Scopes             []string
}

type OAuth2ClientCredentialsOptions

type OAuth2ClientCredentialsOptions struct {
	OAuth2ClientId     string
	OAuth2ClientSecret string
	Scopes             []string
	EndpointParams     url.Values
}

Jump to

Keyboard shortcuts

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