localip

package
v0.0.0-...-be6639d Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) ([]byte, error)
	Put(key string, payload []byte) error
}

type CertManager

type CertManager struct {
	Email  string
	Reg    string
	Key    []byte
	Domain string
	Cache  Cache
	// contains filtered or unexported fields
}

func (*CertManager) GetCertificate

func (c *CertManager) GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)

func (*CertManager) GetEmail

func (c *CertManager) GetEmail() string

func (*CertManager) GetPrivateKey

func (c *CertManager) GetPrivateKey() crypto.PrivateKey

func (*CertManager) GetRegistration

func (c *CertManager) GetRegistration() *registration.Resource

func (*CertManager) Init

func (c *CertManager) Init(p challenge.Provider) error

func (*CertManager) Obtain

func (c *CertManager) Obtain() error

type FileCache

type FileCache string

func (FileCache) Get

func (c FileCache) Get(key string) ([]byte, error)

func (FileCache) Put

func (c FileCache) Put(key string, payload []byte) error

type Server

type Server struct {
	CertManager
	Self net.IP
}

func (*Server) CleanUp

func (s *Server) CleanUp(domain, token, keyAuth string) error

func (*Server) Present

func (s *Server) Present(domain, token, keyAuth string) error

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) ServeDNS

func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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