Documentation ¶
Index ¶
- Variables
- func NewAuthority(name, organization string, validity time.Duration) (*x509.Certificate, *rsa.PrivateKey, error)
- type Config
- func (c *Config) HandshakeErrorCallback(r *http.Request, err error)
- func (c *Config) SetHandshakeErrorCallback(cb func(*http.Request, error))
- func (c *Config) SetOrganization(org string)
- func (c *Config) SetValidity(validity time.Duration)
- func (c *Config) SkipTLSVerify(skip bool)
- func (c *Config) TLS() *tls.Config
- func (c *Config) TLSForHost(hostname string) *tls.Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewAuthority ¶
func NewAuthority(name, organization string, validity time.Duration) (*x509.Certificate, *rsa.PrivateKey, error)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) HandshakeErrorCallback ¶
func (*Config) SetHandshakeErrorCallback ¶
func (*Config) SetOrganization ¶
func (*Config) SetValidity ¶
func (*Config) SkipTLSVerify ¶
Click to show internal directories.
Click to hide internal directories.