Versions in this module Expand all Collapse all v1 v1.0.0 Jun 7, 2023 Changes in this version + const CloudflareDNSProvider + const GoogleDNSProvider + func ClientFetcherCacheWithTTL(ttl time.Duration) func(*ClientFetcherCacheOptions) + func ClientFetcherDNSKEYWithTimeout(timeout time.Duration) func(*ClientFetcherDNSKEYOptions) + func ClientFetcherTLSWithPort(port uint64) func(*ClientFetcherTLSOptions) + func ClientFetcherTLSWithRootCAs(rootCAs *x509.CertPool) func(*ClientFetcherTLSOptions) + type ClientFetcher interface + Fetch func(host string) (PublicKey, error) + type ClientFetcherCache struct + func NewClientFetcherCache(fetcher ClientFetcher, optFuncs ...func(*ClientFetcherCacheOptions)) *ClientFetcherCache + func (c *ClientFetcherCache) Fetch(host string) (PublicKey, error) + type ClientFetcherCacheOptions struct + type ClientFetcherDNSKEY struct + func NewClientFetcherDNSKEY(provider string, optFuncs ...func(*ClientFetcherDNSKEYOptions)) ClientFetcherDNSKEY + func (c ClientFetcherDNSKEY) Fetch(host string) (PublicKey, error) + type ClientFetcherDNSKEYOptions struct + type ClientFetcherInMemory struct + func NewClientFetcherInMemory(publicKey PublicKey) ClientFetcherInMemory + func ParseClientFetcherPEM(r io.Reader) (*ClientFetcherInMemory, error) + func (c ClientFetcherInMemory) Fetch(_ string) (PublicKey, error) + type ClientFetcherProtocol struct + func NewClientFetcherProtocol(network, serverAddr string) ClientFetcherProtocol + func (c ClientFetcherProtocol) Fetch(_ string) (PublicKey, error) + type ClientFetcherTLS struct + func NewClientFetcherTLS(optFuncs ...func(*ClientFetcherTLSOptions)) ClientFetcherTLS + func (c ClientFetcherTLS) Fetch(host string) (publicKey PublicKey, err error) + type ClientFetcherTLSOptions struct + type PublicKey struct + func (p PublicKey) VerifySignature(hashType crypto.Hash, content, signature []byte) (bool, error) + type ServerManager interface + FetchKey func() (protocol.KeyAlgorithm, PublicKey, error) + Sign func(crypto.Hash, []byte) ([]byte, error) + type ServerManagerInMemory struct + func NewServerManager(privateKey crypto.PrivateKey) *ServerManagerInMemory + func ServerManagerGenerateOnTheFly(algorithm protocol.KeyAlgorithm) (*ServerManagerInMemory, error) + func ServerManagerParsePEM(r io.Reader) (*ServerManagerInMemory, error) + func (s *ServerManagerInMemory) FetchKey() (protocol.KeyAlgorithm, PublicKey, error) + func (s *ServerManagerInMemory) Sign(hashType crypto.Hash, content []byte) ([]byte, error)