developer

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIRacingDocProxyEndpoint

func NewIRacingDocProxyEndpoint(fetcher Fetcher) http.Handler

func NewIRacingTokenEndpoint

func NewIRacingTokenEndpoint() http.Handler

func NewRouter

func NewRouter(docFetcher Fetcher, authMiddleware, developerMiddleware func(http.Handler) http.Handler) http.Handler

Types

type Fetcher

type Fetcher interface {
	Fetch(ctx context.Context, accessToken string, path string) ([]byte, string, error)
}

type TokenResponse

type TokenResponse struct {
	AccessToken string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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