common

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CorrelationID   = "X-Correlation-ID"
	ContentType     = "Content-Type"
	ContentTypeJSON = "application/json"
	ContentTypeText = "text/plain"
)
View Source
const (
	ApiVersion = "v1"
	ApiBase    = "/api/v1"

	ApiConfigRoute  = ApiBase + "/config"
	ApiPingRoute    = ApiBase + "/ping"
	ApiVersionRoute = ApiBase + "/version"
	ApiSecretRoute  = ApiBase + "/secret"
)
View Source
const (
	CommaSeparator = ","
	End            = "end"
	Limit          = "limit"
	Labels         = "labels"
	Offset         = "offset"
	Since          = "since"
	Start          = "start"
	Tail           = "tail"
	Timestamps     = "timestamps"
	Until          = "until"
)

constants relate to the url query parameters

View Source
const (
	EnvKeyStartupDuration = "EDGE_STARTUP_DURATION"
	EnvKeyStartupInterval = "EDGE_STARTUP_INTERVAL"
	EnvKeyConfigDir       = "EDGE_CONFIG_DIR"
	EnvKeyConfigFile      = "EDGE_CONFIG_FILE"

	EnvSecretStore             = "EDGE_SECURITY_SECRET_STORE"
	EnvKeyDisableJWTValidation = "EDGE_DISABLE_JWT_VALIDATION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue added in v1.0.12

type Queue[T any] interface {
	// Enqueue method that adds a new item to the queue
	Enqueue(item T) errors.Error

	// Dequeue method that removes the first item from the items of the queue
	Dequeue()

	// Peek method that looks at the next item without removing it from the queue
	Peek() T

	// Size returns a number indicating how many items are in the queue
	Size() int
}

Queue is the interface for the queue

Jump to

Keyboard shortcuts

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