Documentation ¶
Overview ¶
Inspiration: https://gist.github.com/idada/9144886
Index ¶
- func Await(addr string, step time.Duration, totalTime time.Duration) (ok bool)
- func GenerateCert(organization string, host string, validFor time.Duration, rsaBits int) (certBytes []byte, keyBytes []byte, err error)
- func UnusedPort() (port int, err error)
- type TimeoutConn
- func (c *TimeoutConn) Close() error
- func (c *TimeoutConn) LocalAddr() net.Addr
- func (c *TimeoutConn) Read(b []byte) (n int, err error)
- func (c *TimeoutConn) RemoteAddr() net.Addr
- func (c *TimeoutConn) SetDeadline(t time.Time) error
- func (c *TimeoutConn) SetReadDeadline(t time.Time) error
- func (c *TimeoutConn) SetWriteDeadline(t time.Time) error
- func (c *TimeoutConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCert ¶
func UnusedPort ¶
Types ¶
type TimeoutConn ¶
type TimeoutConn struct {
// contains filtered or unexported fields
}
func NewTimeoutConn ¶
func (*TimeoutConn) Close ¶
func (c *TimeoutConn) Close() error
func (*TimeoutConn) LocalAddr ¶
func (c *TimeoutConn) LocalAddr() net.Addr
func (*TimeoutConn) RemoteAddr ¶
func (c *TimeoutConn) RemoteAddr() net.Addr
func (*TimeoutConn) SetDeadline ¶
func (c *TimeoutConn) SetDeadline(t time.Time) error
func (*TimeoutConn) SetReadDeadline ¶
func (c *TimeoutConn) SetReadDeadline(t time.Time) error
func (*TimeoutConn) SetWriteDeadline ¶
func (c *TimeoutConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.