Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDomain = "PROXY DEFAULT CERT"
DefaultDomain proxy domain for the default certificate.
Variables ¶
This section is empty.
Functions ¶
func DefaultCertificate ¶
func DefaultCertificate() (*tls.Certificate, error)
DefaultCertificate generates random TLS certificates.
Types ¶
type FileOrContent ¶
type FileOrContent string
func (FileOrContent) IsPath ¶
func (f FileOrContent) IsPath() bool
IsPath returns true if the FileOrContent is a file path, otherwise returns false.
func (FileOrContent) Read ¶
func (f FileOrContent) Read() ([]byte, error)
func (FileOrContent) String ¶
func (f FileOrContent) String() string
Click to show internal directories.
Click to hide internal directories.