githubutil

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(appId, installationId int64, keyFile string) (*App, error)

func (*App) JWT

func (a *App) JWT() (string, error)

func (*App) Token

func (a *App) Token(ctx context.Context) (string, error)

type TokenProvider

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

func (*TokenProvider) Token

func (p *TokenProvider) Token(ctx context.Context) (string, error)

type Transport

type Transport struct {
	http.RoundTripper
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(tr http.RoundTripper, tokenProvider *TokenProvider) *Transport

func NewTransportWithApp

func NewTransportWithApp(tr http.RoundTripper, app *App) *Transport

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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