buftransport

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// APISubdomain is the subdomain used for calls to the BSR API
	APISubdomain = "api"
)

Variables

This section is empty.

Functions

func IsAPISubdomainEnabled

func IsAPISubdomainEnabled(container app.EnvContainer) bool

IsAPISubdomainEnabled returns true if the container says to use the API subdomain.

func PrependAPISubdomain

func PrependAPISubdomain(address string) string

PrependAPISubdomain prepends the API subdomain to the given address.

func PrependHTTP added in v1.10.0

func PrependHTTP(address string) string

PrependHTTP prepends an http scheme to the given address

func PrependHTTPS added in v1.5.0

func PrependHTTPS(address string) string

PrependHTTPS prepends an https scheme to the given address

func SetDisableAPISubdomain

func SetDisableAPISubdomain(env map[string]string)

SetDisableAPISubdomain sets the environment map to disable the API subdomain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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