attribution

package
v0.19.1237 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package attribution stamps the CLI version and agent headers on a nuon-go client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(api Client, cfg *config.Config)

Apply sets the CLI version and, when cfg.Agent is set, X-Nuon-Agent, User-Agent, and X-Nuon-Command.

Types

type Client

type Client interface {
	SetClientVersion(version string)
	SetAgentClient(name string)
	SetUserAgent(userAgent string)
	SetCommand(command string)
}

Client is the part of the nuon-go client that carries attribution headers.

Jump to

Keyboard shortcuts

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