client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: BSD-3-Clause-Clear Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgentPrefix = "fioup/"

	HeaderKeyTag    = "x-ats-tags"
	HeaderKeyApps   = "x-ats-dockerapps"
	HeaderKeyTarget = "x-ats-target"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayClient

type GatewayClient struct {
	BaseURL    *url.URL
	HttpClient *http.Client
	Headers    map[string]string
}

func NewGatewayClient

func NewGatewayClient(cfg *config.Config, apps []string, targetID string) (*GatewayClient, error)

func (*GatewayClient) Get

func (c *GatewayClient) Get(resourcePath string) (*transport.HttpRes, error)

func (*GatewayClient) Post

func (c *GatewayClient) Post(resourcePath string, data any) (*transport.HttpRes, error)

func (*GatewayClient) UpdateHeaders

func (c *GatewayClient) UpdateHeaders(apps []string, targetID string)

Jump to

Keyboard shortcuts

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