Versions in this module Expand all Collapse all v0 v0.16.0 Jul 1, 2019 Changes in this version type BandwidthType + const BandwidthApplicationSpecificTransportIndependent v0.15.0 Mar 22, 2019 Changes in this version + type Attribute struct + Key string + Value string v0.14.0 Mar 19, 2019 v0.13.1 Feb 18, 2019 v0.13.0 Aug 22, 2018 Changes in this version type Media + func (m *Media) PayloadFormat(payloadType string) string type MediaDescription + Formats []string + func (m MediaDescription) Equal(b MediaDescription) bool v0.12.5 Aug 8, 2018 v0.12.4 Aug 6, 2018 v0.12.3 Aug 5, 2018 v0.12.2 Jul 27, 2018 v0.12.1 Jul 27, 2018 Changes in this version + var ErrFailedToDecodeIP = errors.New("invalid IP") v0.12.0 Jul 27, 2018 v0.11.0 Jun 26, 2018 v0.10.0 May 5, 2018 v0.9.2 May 2, 2018 v0.9.1 Dec 5, 2017 Changes in this version + func NTPToTime(v uint64) time.Time + func TimeToNTP(t time.Time) uint64 + type Attributes map[string][]string + func (a Attributes) Flag(flag string) bool + func (a Attributes) Value(attribute string) string + func (a Attributes) Values(attribute string) []string + type BandwidthType string + const BandwidthApplicationSpecific + const BandwidthConferenceTotal + type Bandwidths map[BandwidthType]int + type ConnectionData struct + AddressType string + Addresses byte + IP net.IP + NetworkType string + TTL byte + func (c ConnectionData) Blank() bool + func (c ConnectionData) ConnectionAddress() string + func (c ConnectionData) Equal(b ConnectionData) bool + func (c ConnectionData) String() string + type DecodeError struct + Place string + Reason string + func (e DecodeError) Error() string + type Decoder struct + func NewDecoder(s Session) Decoder + func (d *Decoder) Decode(m *Message) error + type Encryption struct + Key string + Method string + func (e Encryption) Blank() bool + func (e Encryption) Equal(b Encryption) bool + type Line struct + Type Type + Value []byte + func (l *Line) Decode(b []byte) error + func (l Line) AppendTo(b []byte) []byte + func (l Line) Equal(b Line) bool + func (l Line) String() string + type Media struct + Attributes Attributes + Bandwidths Bandwidths + Connection ConnectionData + Description MediaDescription + Encryption Encryption + Title string + func (m *Media) AddAttribute(k string, values ...string) + func (m *Media) AddFlag(f string) + func (m *Media) Attribute(k string) string + func (m *Media) Flag(f string) bool + type MediaDescription struct + Format string + Port int + PortsNumber int + Protocol string + Type string + type Medias []Media + type Message struct + Attributes Attributes + BandwidthType BandwidthType + Bandwidths map[BandwidthType]int + Connection ConnectionData + Email string + Encryption Encryption + Info string + Medias Medias + Name string + Origin Origin + Phone string + TZAdjustments []TimeZone + Timing []Timing + URI string + Version int + func (m *Message) AddAttribute(k, v string) + func (m *Message) AddFlag(f string) + func (m *Message) Append(s Session) Session + func (m Message) Attribute(attribute string) string + func (m Message) End() time.Time + func (m Message) Flag(flag string) bool + func (m Message) Start() time.Time + type Origin struct + Address string + AddressType string + NetworkType string + SessionID int + SessionVersion int + Username string + func (o Origin) Equal(b Origin) bool + type Session []Line + func DecodeSession(b []byte, s Session) (Session, error) + func (s Session) AddAttribute(attribute string, values ...string) Session + func (s Session) AddBandwidth(t BandwidthType, bandwidth int) Session + func (s Session) AddConnectionData(data ConnectionData) Session + func (s Session) AddConnectionDataIP(ip net.IP) Session + func (s Session) AddEmail(email string) Session + func (s Session) AddEncryption(e Encryption) Session + func (s Session) AddEncryptionKey(method, key string) Session + func (s Session) AddEncryptionMethod(method string) Session + func (s Session) AddFlag(attribute string) Session + func (s Session) AddLine(t Type, v string) Session + func (s Session) AddMediaDescription(m MediaDescription) Session + func (s Session) AddOrigin(o Origin) Session + func (s Session) AddPhone(phone string) Session + func (s Session) AddRaw(k rune, v string) Session + func (s Session) AddRepeatTimes(interval, duration time.Duration, offsets ...time.Duration) Session + func (s Session) AddRepeatTimesCompact(interval, duration time.Duration, offsets ...time.Duration) Session + func (s Session) AddSessionInfo(info string) Session + func (s Session) AddSessionName(name string) Session + func (s Session) AddTimeZones(zones ...TimeZone) Session + func (s Session) AddTiming(start, end time.Time) Session + func (s Session) AddTimingNTP(start, end uint64) Session + func (s Session) AddURI(uri string) Session + func (s Session) AddVersion(version int) Session + func (s Session) AppendTo(b []byte) []byte + func (s Session) Equal(b Session) bool + type TimeZone struct + Offset time.Duration + Start time.Time + type Timing struct + Active time.Duration + End time.Time + Offsets []time.Duration + Repeat time.Duration + Start time.Time + type Type rune + const TypeAttribute + const TypeBandwidth + const TypeConnectionData + const TypeEmail + const TypeEncryptionKey + const TypeMediaDescription + const TypeOrigin + const TypePhone + const TypeProtocolVersion + const TypeRepeatTimes + const TypeSessionInformation + const TypeSessionName + const TypeTimeZones + const TypeTiming + const TypeURI + func (t Type) String() string