ogtags

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOgHandled = errors.New("og: handled error") // used to indicate that the error was handled and should not be logged

)

Functions

This section is empty.

Types

type OGTagCache

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

func NewOGTagCache

func NewOGTagCache(target string, conf config.OpenGraph, backend store.Interface) *OGTagCache

func (*OGTagCache) GetOGTags

func (c *OGTagCache) GetOGTags(ctx context.Context, url *url.URL, originalHost string) (map[string]string, error)

GetOGTags is the main function that retrieves Open Graph tags for a URL

Jump to

Keyboard shortcuts

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