Help us shape the future of Go! Take the 2026 Go Developer Survey

amazon

package
v0.131.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package amazon provides shared handlers for mocking the Amazon LWA API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleProfile

func HandleProfile(w http.ResponseWriter, r *http.Request)

HandleProfile simulates the Amazon LWA user profile endpoint. LWA returns "user_id" and "name" (not "id" / "display_name" like Spotify).

func HandleToken

func HandleToken(w http.ResponseWriter, r *http.Request)

HandleToken simulates the Amazon LWA token endpoint. Amazon requires client_id and client_secret as POST body fields, not HTTP Basic Auth.

func NewAmazonHandler

func NewAmazonHandler() http.Handler

NewAmazonHandler returns a new http.Handler configured with Amazon LWA mock endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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