bimi

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BimiDns

type BimiDns struct {
	V string `desc:"BIMI version"`
	L string `desc:"SVG URL"`
	A string `desc:"BIMI VMC PEM URL"`
}

func Query

func Query(ctx context.Context, domain string, server string) (d BimiDns, img image.Image, err error)

Query function takes a top level domain name (google.com) and returns the bimi TXT record associated with it. it uses the system's resolver if server is provided as 0.0.0.0 otherwise it'll explicity query from the requested server.

func (BimiDns) Marshal

func (d BimiDns) Marshal(kind string) ([]byte, error)

Jump to

Keyboard shortcuts

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