images

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const KeyImageError = "embedded:error.png"
View Source
const KeyImageRed = "embedded:red.png"
View Source
const KeyImageTransparent = "embedded:transparent.png"
View Source
const KeyImageUnauthorized = "embedded:unauthorized.png"
View Source
const KeyMvtBox = "embedded:box.mvt"
View Source
const KeyMvtEmpty = "embedded:empty.mvt"
View Source
const KeyPrefixColor = "color:"

Variables

This section is empty.

Functions

func GetStaticImage

func GetStaticImage(path string) (*[]byte, error)

Returns the contents of an image. This can be an embedded image if path starts with "embedded:". The path will be treated as a standard filepath otherwise. The contents of the image will be permanently cached in memory, this should be only used for images that will be reused a lot such as error responses. Errors will also be cached but 1% of the time it will be retried.

Types

This section is empty.

Jump to

Keyboard shortcuts

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