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.
Click to show internal directories.
Click to hide internal directories.