agent

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	HTTPDisableResponseCompression bool
	// contains filtered or unexported fields
}

Agent is an agent connected to a VCS Gateway. Can handle only one concurrent request.

func New

func New(poolConfig *privatevcs.AgentPoolConfig, targetBaseEndpoint, vendor string, validator validation.Strategy, metadata map[string]string, httpClient RequestDoer) *Agent

New creates a new Agent.

func (*Agent) Run

func (a *Agent) Run(ctx *spcontext.Context) (outErr error)

Run runs the agent and handles any incoming requests.

type RequestDoer

type RequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

RequestDoer is an interface for an entity that can perform http request

Jump to

Keyboard shortcuts

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