Documentation ¶
Index ¶
- Constants
- type Accept
- type Allow
- type Authorization
- func (auth *Authorization) Algorithm() (string, bool)
- func (auth *Authorization) Clone() HeaderValue
- func (auth *Authorization) Marshal() []byte
- func (auth *Authorization) Nonce() (string, bool)
- func (auth *Authorization) Realm() (string, bool)
- func (auth *Authorization) Response() (string, bool)
- func (auth *Authorization) SetAlgorithm(algorithm string)
- func (auth *Authorization) SetNonce(nonce string)
- func (auth *Authorization) SetRealm(realm string)
- func (auth *Authorization) SetResponse(response string)
- func (auth *Authorization) SetURI(uri string)
- func (auth *Authorization) SetUsername(username string)
- func (auth *Authorization) URI() (string, bool)
- func (auth *Authorization) Unmarshal(b []byte) error
- func (auth *Authorization) Username() (string, bool)
- func (auth *Authorization) WriteTo(w io.Writer) error
- type CSeq
- type CallID
- type Contact
- type ContentLength
- type Date
- type Expires
- type From
- type HeaderValue
- type HostPort
- type MaxForwards
- type Params
- func (p *Params) Clone() HeaderValue
- func (p *Params) Del(name string)
- func (p *Params) Get(name string) (val Value, ok bool)
- func (p *Params) Marshal() []byte
- func (p *Params) Set(name string, val Value)
- func (p *Params) Size() int
- func (p *Params) Unmarshal(b []byte) error
- func (p *Params) WriteTo(w io.Writer) error
- type Protocal
- type String
- type To
- type URI
- type Value
- type Via
- func (v *Via) Branch() (branch string, ok bool)
- func (v *Via) Clone() HeaderValue
- func (v *Via) MAddr() (maddr string, ok bool)
- func (v *Via) Marshal() []byte
- func (v *Via) RPort() (rport int, ok bool)
- func (v *Via) Received() (received string, ok bool)
- func (v *Via) SetBranch(branch string)
- func (v *Via) SetMAddr(maddr string)
- func (v *Via) SetRPort(rport string)
- func (v *Via) SetReceived(received string)
- func (v *Via) SetTTL(ttl int64)
- func (v *Via) TTL() (ttl int64, ok bool)
- func (v *Via) Unmarshal(b []byte) (err error)
- func (v *Via) WriteTo(w io.Writer) error
- type WWWAuthenticate
- func (wwwauth *WWWAuthenticate) Algorithm() (algorithm string, ok bool)
- func (wwwauth *WWWAuthenticate) Clone() HeaderValue
- func (wwwauth *WWWAuthenticate) Marshal() []byte
- func (wwwauth *WWWAuthenticate) Nonce() (string, bool)
- func (wwwauth *WWWAuthenticate) Opaque() (opaque string, ok bool)
- func (wwwauth *WWWAuthenticate) Realm() (string, bool)
- func (wwwauth *WWWAuthenticate) SetAlgorithm(algorithm string)
- func (wwwauth *WWWAuthenticate) SetNonce(nonce string)
- func (wwwauth *WWWAuthenticate) SetOpaque(opaque string)
- func (wwwauth *WWWAuthenticate) SetRealm(realm string)
- func (wwwauth *WWWAuthenticate) Unmarshal(b []byte) error
- func (wwwauth *WWWAuthenticate) WriteTo(w io.Writer) error
Constants ¶
View Source
const ( Equals = '=' Semicolon = ';' Space = ' ' Colon = ':' At = '@' LeftBrack = '<' RightBrack = '>' Comma = ',' DoubleQuote = '"' Quote = '\'' Slash = '/' )
View Source
const ( NameTo = "To" NameCSeq = "CSeq" NameVia = "Via" NameCallID = "Call-ID" NameFrom = "From" NameMaxForwards = "Max-Forwards" NameContentType = "Content-Type" NameContentLength = "Content-Length" NameDate = "Date" NameAuthorization = "Authorization" NameWWWAuthenticate = "WWW-Authenticate" NameContact = "Contact" NameAllow = "Allow" NameAccept = "Accept" NameExpires = "Expires" )
View Source
const ( ParamNameNextNonce = "nextnonce" ParamNameTag = "tag" ParamNameUsername = "username" ParamNameURI = "uri" ParamNameDomain = "domain" ParamNameCnonce = "cnonce" ParamNamePassword = "password" ParamNameResponse = "response" ParamNameResponseAuth = "rspauth" ParamNameOpaque = "opaque" ParamNameAlgorithm = "algorithm" ParamNameDigest = "digest" ParamNameSignedBy = "signed-by" ParamNameSignature = "signature" ParamNameNonce = "nonce" ParamNameSrand = "srand" ParamNameSnum = "snum" ParamNameTargetName = "targetname" ParamNameNonceCount = "nc" ParamNamePubkey = "pubkey" ParamNameCookie = "cookie" ParamNameRealm = "realm" ParamNameVersion = "version" ParamNameStale = "stale" ParamNameQop = "qop" ParamNameNc = "nc" ParamNamePurpose = "purpose" ParamNameCard = "card" ParamNameInfo = "info" ParamNameAction = "action" ParamNameProxy = "proxy" ParamNameRedirect = "redirect" ParamNameExpires = "expires" ParamNameQ = "q" ParamNameRender = "render" ParamNameSession = "session" ParamNameIcon = "icon" ParamNameAlert = "alert" ParamNameHandling = "handling" ParamNameRequired = "required" ParamNameOptional = "optional" ParamNameEmergency = "emergency" ParamNameUrgent = "urgent" ParamNameNormal = "normal" ParamNameNonUrgent = "non-urgent" ParamNameDuration = "duration" ParamNameBranch = "branch" ParamNameHidden = "hidden" ParamNameReceived = "received" ParamNameMAddr = "maddr" ParamNameTTL = "ttl" ParamNameTransport = "transport" ParamNameText = "text" ParamNameCause = "cause" ParamNameID = "id" ParamNameRPort = "rport" ParamNameToTag = "to-tag" ParamNameFromTag = "from-tag" ParamNameSIPInstance = "+sip.instance" ParamNamePubGruu = "pub-gruu" ParamNameTempGruu = "temp-gruu" ParamNameGruu = "gruu" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accept ¶
type Accept struct {
Methods []string
}
func (*Accept) Clone ¶
func (a *Accept) Clone() HeaderValue
type Allow ¶
type Allow struct {
Methods []string
}
func (*Allow) Clone ¶
func (a *Allow) Clone() HeaderValue
type Authorization ¶
func NewAuthorization ¶
func NewAuthorization() *Authorization
func (*Authorization) Algorithm ¶
func (auth *Authorization) Algorithm() (string, bool)
func (*Authorization) Clone ¶
func (auth *Authorization) Clone() HeaderValue
func (*Authorization) Marshal ¶
func (auth *Authorization) Marshal() []byte
func (*Authorization) Nonce ¶
func (auth *Authorization) Nonce() (string, bool)
func (*Authorization) Realm ¶
func (auth *Authorization) Realm() (string, bool)
func (*Authorization) Response ¶
func (auth *Authorization) Response() (string, bool)
func (*Authorization) SetAlgorithm ¶
func (auth *Authorization) SetAlgorithm(algorithm string)
func (*Authorization) SetNonce ¶
func (auth *Authorization) SetNonce(nonce string)
func (*Authorization) SetRealm ¶
func (auth *Authorization) SetRealm(realm string)
func (*Authorization) SetResponse ¶
func (auth *Authorization) SetResponse(response string)
func (*Authorization) SetURI ¶
func (auth *Authorization) SetURI(uri string)
func (*Authorization) SetUsername ¶
func (auth *Authorization) SetUsername(username string)
func (*Authorization) URI ¶
func (auth *Authorization) URI() (string, bool)
func (*Authorization) Unmarshal ¶
func (auth *Authorization) Unmarshal(b []byte) error
func (*Authorization) Username ¶
func (auth *Authorization) Username() (string, bool)
type CallID ¶
type CallID struct {
ID string
}
func (*CallID) Clone ¶
func (c *CallID) Clone() HeaderValue
type Contact ¶
func NewContact ¶
func NewContact() *Contact
func (*Contact) Clone ¶
func (c *Contact) Clone() HeaderValue
type ContentLength ¶
type ContentLength struct {
ContentLength int64
}
func NewContentLength ¶
func NewContentLength() *ContentLength
func (*ContentLength) Clone ¶
func (cl *ContentLength) Clone() HeaderValue
func (*ContentLength) Marshal ¶
func (cl *ContentLength) Marshal() []byte
func (*ContentLength) Unmarshal ¶
func (cl *ContentLength) Unmarshal(b []byte) error
type Expires ¶
type Expires struct {
Expires int64
}
func NewExpires ¶
func NewExpires() *Expires
func (*Expires) Clone ¶
func (e *Expires) Clone() HeaderValue
type HeaderValue ¶
type HostPort ¶
func NewHostPort ¶
func NewHostPort() *HostPort
func (*HostPort) Clone ¶
func (hp *HostPort) Clone() HeaderValue
type MaxForwards ¶
type MaxForwards struct {
MaxForwards int
}
func NewMaxForwards ¶
func NewMaxForwards() *MaxForwards
func (*MaxForwards) Clone ¶
func (mf *MaxForwards) Clone() HeaderValue
func (*MaxForwards) Marshal ¶
func (mf *MaxForwards) Marshal() []byte
func (*MaxForwards) Unmarshal ¶
func (mf *MaxForwards) Unmarshal(b []byte) error
type Params ¶
type Params struct { ListSeparator string KeyValueSeparator string Quote string // contains filtered or unexported fields }
func NewParamsWithQuote ¶
func (*Params) Clone ¶
func (p *Params) Clone() HeaderValue
type Protocal ¶
func NewProtocal ¶
func NewProtocal() *Protocal
func (*Protocal) Clone ¶
func (proto *Protocal) Clone() HeaderValue
type String ¶
type String struct {
Value string
}
func (*String) Clone ¶
func (s *String) Clone() HeaderValue
type Via ¶
Via is sip via header value
func (*Via) Clone ¶
func (v *Via) Clone() HeaderValue
func (*Via) SetReceived ¶
type WWWAuthenticate ¶
func NewWWWAuthenticate ¶
func NewWWWAuthenticate() *WWWAuthenticate
func (*WWWAuthenticate) Algorithm ¶
func (wwwauth *WWWAuthenticate) Algorithm() (algorithm string, ok bool)
func (*WWWAuthenticate) Clone ¶
func (wwwauth *WWWAuthenticate) Clone() HeaderValue
func (*WWWAuthenticate) Marshal ¶
func (wwwauth *WWWAuthenticate) Marshal() []byte
func (*WWWAuthenticate) Nonce ¶
func (wwwauth *WWWAuthenticate) Nonce() (string, bool)
func (*WWWAuthenticate) Opaque ¶
func (wwwauth *WWWAuthenticate) Opaque() (opaque string, ok bool)
func (*WWWAuthenticate) Realm ¶
func (wwwauth *WWWAuthenticate) Realm() (string, bool)
func (*WWWAuthenticate) SetAlgorithm ¶
func (wwwauth *WWWAuthenticate) SetAlgorithm(algorithm string)
func (*WWWAuthenticate) SetNonce ¶
func (wwwauth *WWWAuthenticate) SetNonce(nonce string)
func (*WWWAuthenticate) SetOpaque ¶
func (wwwauth *WWWAuthenticate) SetOpaque(opaque string)
func (*WWWAuthenticate) SetRealm ¶
func (wwwauth *WWWAuthenticate) SetRealm(realm string)
func (*WWWAuthenticate) Unmarshal ¶
func (wwwauth *WWWAuthenticate) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.