anonymousclient

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package anonymousclient attaches a server-scoped pseudonym to community API traffic. It never creates network traffic or changes the caller's consent.

Index

Constants

View Source
const ClassHeader = "X-CSX-Client-Class"
View Source
const Header = "X-CSX-Anonymous-ID"

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	Home string
	Base http.RoundTripper
	// Surface, Version and Protocol identify this csx build to its own
	// server in the fixed apidemand.UserAgent grammar (#394), on requests
	// to the configured server only. Empty Surface sends nothing. An
	// existing User-Agent is kept, so a surface that wraps another surface's
	// transport (the daemon started by the CLI) reports itself once.
	Surface  string
	Version  string
	Protocol string
}

func (Transport) RoundTrip

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

Jump to

Keyboard shortcuts

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