linkprev

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNetworkError  = errors.New("network error")
	ErrRequestFailed = errors.New("request failed")
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Preview

func (c *Client) Preview(ctx context.Context, urlStr string) (Meta, error)

type Meta

type Meta struct {
	Title       string
	Description string
	Favicon     string
	Author      string
	Keywords    []string
	OpenGraph   opengraph.OpenGraph
}

Jump to

Keyboard shortcuts

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