ogtags

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 17 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, targetOpts TargetOptions) *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

type TargetOptions added in v1.24.0

type TargetOptions struct {
	Host               string
	SNI                string
	InsecureSkipVerify bool
}

Jump to

Keyboard shortcuts

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