client

package
Version: v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ExpireTime(ctx context.Context, domain string) (time.Time, error)
}

Client is a DNS client impl.

func NewCachedClient

func NewCachedClient(client Client, cache *cache.Cache) Client

NewCachedClient returns a new cached client.

func NewMultiClient

func NewMultiClient(clients ...Client) Client

NewMultiClient returns a client that wraps multiple clients. It returns the first success, or, if all clients fail, the latest failure.

Jump to

Keyboard shortcuts

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