srtp

package
v3.24.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, config interface{}) (interface{}, error)

New returns a new SRTP instance based on the given config.

Types

type Config

type Config struct {
	Version              uint32   `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Padding              bool     `protobuf:"varint,2,opt,name=padding" json:"padding,omitempty"`
	Extension            bool     `protobuf:"varint,3,opt,name=extension" json:"extension,omitempty"`
	CsrcCount            uint32   `protobuf:"varint,4,opt,name=csrc_count,json=csrcCount" json:"csrc_count,omitempty"`
	Marker               bool     `protobuf:"varint,5,opt,name=marker" json:"marker,omitempty"`
	PayloadType          uint32   `protobuf:"varint,6,opt,name=payload_type,json=payloadType" json:"payload_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetCsrcCount

func (m *Config) GetCsrcCount() uint32

func (*Config) GetExtension

func (m *Config) GetExtension() bool

func (*Config) GetMarker

func (m *Config) GetMarker() bool

func (*Config) GetPadding

func (m *Config) GetPadding() bool

func (*Config) GetPayloadType

func (m *Config) GetPayloadType() uint32

func (*Config) GetVersion

func (m *Config) GetVersion() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (dst *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type SRTP

type SRTP struct {
	// contains filtered or unexported fields
}

func (*SRTP) Size

func (*SRTP) Size() int32

func (*SRTP) Write

func (s *SRTP) Write(b []byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL