Documentation
¶
Index ¶
- Variables
- func Cert(hostname string, ca *x509.Certificate, pk *rsa.PrivateKey) (cert *tls.Certificate, err error)
- func CreateFileNotExist(filename string) (f *os.File, err error)
- func GenerateCert(caname, pkname string) (ca *x509.Certificate, pk *rsa.PrivateKey, err error)
- func InetAtoN(ip string) uint32
- func InetNtoA(ip uint32) string
- func InetNtoP(ip uint32) net.IP
- func InetPtoA(ip net.IP) string
- func LoadCert(capath, pkpath string) (ca *x509.Certificate, pk *rsa.PrivateKey, err error)
- func NewAuthority(name string) (ca *x509.Certificate, privateKey *rsa.PrivateKey, err error)
- func Pipe(src, dst io.ReadWriteCloser)
- func RandBytes(length int) []byte
- func RandString(length int) string
- func RepeatTimer(d time.Duration, f func(), immediately bool)
- func SplitHostPort(hostport string) (host string, port int)
- func SplitIPPort(ipport string) (ip string, port int)
- func WriteFile(filename string, data []byte) (err error)
- func XOR(i, o, key []byte)
- type Repeater
- type Timeout
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Cert ¶
func Cert(hostname string, ca *x509.Certificate, pk *rsa.PrivateKey) (cert *tls.Certificate, err error)
func GenerateCert ¶
func GenerateCert(caname, pkname string) (ca *x509.Certificate, pk *rsa.PrivateKey, err error)
func LoadCert ¶
func LoadCert(capath, pkpath string) (ca *x509.Certificate, pk *rsa.PrivateKey, err error)
func NewAuthority ¶
func NewAuthority(name string) (ca *x509.Certificate, privateKey *rsa.PrivateKey, err error)
func Pipe ¶
func Pipe(src, dst io.ReadWriteCloser)
func RandString ¶
func RepeatTimer ¶
func SplitHostPort ¶
func SplitIPPort ¶
Types ¶
type Repeater ¶
type Repeater struct {
// contains filtered or unexported fields
}
func NewRepeater ¶
type Timeout ¶
type Timeout struct {
// contains filtered or unexported fields
}
func NewTimeout ¶
func (*Timeout) ChangeTime ¶
Click to show internal directories.
Click to hide internal directories.