processor

package
v0.0.0-...-655ee65 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodInvite          = "INVITE"
	MethodAck             = "ACK"
	MethodBye             = "BYE"
	MethodCancel          = "CANCEL"
	StateManagerTTLInvite = 600
	StateManagerTTLCall   = 3600 * 6
)

Server handler specific constants

Variables

This section is empty.

Functions

This section is empty.

Types

type JanusProcessor

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

JanusProcessor is the Janus processor

func NewJanusProcessor

func NewJanusProcessor(state state.ManagerInterface, client rabbitmq.ClientInterface) *JanusProcessor

NewJanusProcessor initializes a new Janus processor

func (*JanusProcessor) Process

func (s *JanusProcessor) Process(ctx context.Context, event *model.Event) error

Process raw bytes containing a Janus packet

type JanusProcessorInterface

type JanusProcessorInterface interface {
	Process(ctx context.Context, event *model.Event) error
}

JanusProcessorInterface is the interface for Server objects

Jump to

Keyboard shortcuts

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