fronted

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAMPClient

func NewAMPClient(ctx context.Context, logWriter io.Writer, publicKey string) (amp.Client, error)

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.

func NewFronted

func NewFronted(panicListener func(string), cacheFile string, logWriter io.Writer) (fronted.Fronted, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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