imagecache

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(dir string, client *genai.Client, allowedDomains string) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Fetch

func (c *Cache) Fetch(ctx context.Context, mimeType string, urlString string) (string, error)

type DomainWhitelist

type DomainWhitelist struct {
	// contains filtered or unexported fields
}

func NewDomainWhitelist

func NewDomainWhitelist(domains []string) *DomainWhitelist

func (*DomainWhitelist) IsAllowed

func (w *DomainWhitelist) IsAllowed(hostname string) bool

Jump to

Keyboard shortcuts

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