utils

package
v0.0.0-...-8f55857 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgent = "Gunslinger/1.0 (gunslinger@utf9k.net)"
)

Variables

This section is empty.

Functions

func BytesToGUIDLocation

func BytesToGUIDLocation(image []byte, extension string) (string, uuid.UUID)

func ExtractImageContent

func ExtractImageContent(imageUrl string) ([]byte, string, models.SerializableColours, error)

func GetEnv

func GetEnv(key, fallback string) string

func MustEnv

func MustEnv(key string) string

func NewHTTPClient

func NewHTTPClient() *http.Client

Types

type UARoundtripper

type UARoundtripper struct {
	RT http.RoundTripper
}

func (*UARoundtripper) RoundTrip

func (uart *UARoundtripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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