util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthEnabled     bool
	FrigateServer   string
	FrigateInsecure bool
	FrigateUser     string
	FrigatePass     string
)
View Source
var AppUserAgent string
View Source
var HTTPMaxAttempts int
View Source
var HTTPTimeout int

Functions

func BuildHTTPParams added in v0.3.5

func BuildHTTPParams(params ...map[string]string) string

buildParams creates an escaped param string from a slice

func GetFrigateVersion added in v0.5.0

func GetFrigateVersion(headers []map[string]string) (int, error)

func HTTPGet

func HTTPGet(url string, insecure bool, params string, headers ...map[string]string) ([]byte, error)

HTTPGet is a simple HTTP client function to return page body

func HTTPPost added in v0.2.3

func HTTPPost(url string, insecure bool, payload []byte, params string, headers ...map[string]string) ([]byte, error)

HTTPPost performs an HTTP POST to the target URL and includes auth parameters, ignoring certificates, etc

Types

type FrigateAuth added in v0.5.0

type FrigateAuth struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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