Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAMPClient ¶
NewAMPClient creates a new AMP (Accelerated Mobile Pages) client for domain fronting. It initializes the client with the provided context, log writer, and public key for verification. The client automatically fetches and updates its configuration from a remote URL in the background. The context parameter controls the lifecycle of background configuration updates.
- ctx: Used to manage the lifecycle of background configuration updates.
- logWriter: Writer for logging transport and client activity.
- publicKey: Public key used to verify configuration signatures.
Returns an initialized amp.Client or an error if setup fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.