srtp

package
v4.31.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_internet_headers_srtp_config_proto protoreflect.FileDescriptor

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,proto3" json:"version,omitempty"`
	Padding     bool   `protobuf:"varint,2,opt,name=padding,proto3" json:"padding,omitempty"`
	Extension   bool   `protobuf:"varint,3,opt,name=extension,proto3" json:"extension,omitempty"`
	CsrcCount   uint32 `protobuf:"varint,4,opt,name=csrc_count,json=csrcCount,proto3" json:"csrc_count,omitempty"`
	Marker      bool   `protobuf:"varint,5,opt,name=marker,proto3" json:"marker,omitempty"`
	PayloadType uint32 `protobuf:"varint,6,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCsrcCount

func (x *Config) GetCsrcCount() uint32

func (*Config) GetExtension

func (x *Config) GetExtension() bool

func (*Config) GetMarker

func (x *Config) GetMarker() bool

func (*Config) GetPadding

func (x *Config) GetPadding() bool

func (*Config) GetPayloadType

func (x *Config) GetPayloadType() uint32

func (*Config) GetVersion

func (x *Config) GetVersion() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type SRTP

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

func (*SRTP) Serialize

func (s *SRTP) Serialize(b []byte)

Serialize implements PacketHeader.

func (*SRTP) Size

func (*SRTP) Size() int32

Jump to

Keyboard shortcuts

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