Versions in this module Expand all Collapse all v0 v0.0.1 Nov 22, 2018 Changes in this version + const ClientHello + const ExtServerName + const Handshake + const HelloRequest + const RecordHeaderLen + const ServerHello + var ErrBadType = errors.New("bad type") + type CipherSuite uint16 + type ClientHelloHandshake struct + CipherSuites []CipherSuite + CompressionMethods []CompressionMethod + Extensions []Extension + Random Random + SessionID []byte + Version Version + func (h *ClientHelloHandshake) Decode(data []byte) (err error) + func (h *ClientHelloHandshake) Encode() (data []byte, err error) + func (h *ClientHelloHandshake) ReadFrom(r io.Reader) (n int64, err error) + func (h *ClientHelloHandshake) WriteTo(w io.Writer) (n int64, err error) + type CompressionMethod uint8 + type Extension interface + Bytes func() []byte + Type func() uint16 + func NewExtension(t uint16, data []byte) Extension + func ReadExtension(r io.Reader) (ext Extension, err error) + type Random struct + Opaque [28]byte + Time uint32 + type Record struct + Opaque []byte + Type uint8 + Version Version + func ReadRecord(r io.Reader) (*Record, error) + func (rec *Record) ReadFrom(r io.Reader) (n int64, err error) + func (rec *Record) WriteTo(w io.Writer) (n int64, err error) + type ServerNameExtension struct + Name string + NameType uint8 + func (ext *ServerNameExtension) Bytes() []byte + func (ext *ServerNameExtension) Type() uint16 + type Version uint16