Documentation
¶
Index ¶
- Constants
- type Acknowledgement
- type Advertisement
- type AdvertisementInfo
- type CallRequest
- type CallResponse
- type CallsMessage
- type Capability
- type CodecInfo
- type Directive
- type DirectiveInfo
- type FaceName
- type HandlerInfo
- type HandlerRequest
- type HandlerResponse
- type Packet
- type PacketEvent
- type PacketType
- type RegisterHandlerMessage
- type StreamContentControlType
- type StreamContentMedia
- type StreamContentRequest
- type StreamContentType
- type TrunkGroupInfo
- type TrunkGroupsInfoMessage
Constants ¶
View Source
const ( DirectionIn = "in" DirectionOut = "out" )
View Source
const ( // stream content types (media/control) StreamContentTypeMedia = 0 StreamContentTypeControl = 1 // media codec types PayloadTypeOpus = 1 // control message types StreamContentControlTypeAck = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acknowledgement ¶
type Acknowledgement struct {
Type StreamContentType //media/control
ControlType StreamContentControlType
Direction string
SourceId uint8
SinkId uint8
}
type Advertisement ¶
type Advertisement string
func (Advertisement) Parse ¶
func (ad Advertisement) Parse() (AdvertisementInfo, error)
Crude parse function. Needs to be revisited once ABNF is defined
type AdvertisementInfo ¶
type AdvertisementInfo struct {
Caps []Capability
}
type CallRequest ¶
type CallResponse ¶
type CallsMessage ¶
type CallsMessage struct {
Request CallRequest
Response CallResponse
}
type Capability ¶
type Directive ¶
type Directive string
func (Directive) Parse ¶
func (d Directive) Parse() (DirectiveInfo, error)
type DirectiveInfo ¶
func (DirectiveInfo) GenClientDirectives ¶
func (di DirectiveInfo) GenClientDirectives() Directive
func (DirectiveInfo) GenServerDirectives ¶
func (di DirectiveInfo) GenServerDirectives() Directive
type HandlerInfo ¶
type HandlerInfo struct {
Id string
Advertisement Advertisement
Uri string
}
/// Handler Definition //
type HandlerRequest ¶
type HandlerResponse ¶
type HandlerResponse struct {
Uri string `json:"uri"`
}
type Packet ¶
type Packet struct {
Type PacketType
RegisterHandler RegisterHandlerMessage
TrunkGroupsInfo TrunkGroupsInfoMessage
Calls CallsMessage
StreamMedia StreamContentMedia
StreamMediaAck Acknowledgement
StreamMediaRequest StreamContentRequest
}
type PacketEvent ¶
type PacketType ¶
type PacketType byte
const ( TrunkGroupDiscoveryPacket PacketType = 1 RegisterHandlerPacket PacketType = 2 CallsPacket PacketType = 3 StreamMediaPacket PacketType = 5 StreamMediaAckPacket PacketType = 6 StreamMediaRequestPacket PacketType = 7 )
type RegisterHandlerMessage ¶
type RegisterHandlerMessage struct {
HandlerRequest HandlerRequest
HandlerResponse HandlerResponse
}
type StreamContentControlType ¶
type StreamContentControlType int16
type StreamContentMedia ¶
type StreamContentRequest ¶
type StreamContentRequest struct {
}
type StreamContentType ¶
type StreamContentType uint8
type TrunkGroupInfo ¶
type TrunkGroupInfo struct {
Uri string
}
type TrunkGroupsInfoMessage ¶
type TrunkGroupsInfoMessage struct {
TrunkGroups []TrunkGroupInfo
}
Click to show internal directories.
Click to hide internal directories.