dialog

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDialogID

func GenerateDialogID() int32

GenerateDialogID creates new dialog ID

Types

type Dialog

type Dialog struct {
	DialogID int32
	CallID   string
	ToTag    string
	FromTag  string
	ServerTx interfaces.Transaction
	ClientTx interfaces.Transaction
	Cseq     uint32
}

Dialog used to store track multiple transactions

type DialogManager

type DialogManager struct {
	Lock *sync.RWMutex
	// contains filtered or unexported fields
}

DialogManager hold multiple dialogs

func NewDialogManager

func NewDialogManager() *DialogManager

NewDialogManager returns new Dialog Manager

func (*DialogManager) DeleteDialog

func (dm *DialogManager) DeleteDialog(value string)

DeleteDialog removes dialog from Dialog Manager by ID

func (*DialogManager) GetDialog

func (dm *DialogManager) GetDialog(value string) *Dialog

GetDialog returns dialog by ID

func (*DialogManager) NewDialog

func (dm *DialogManager) NewDialog() *Dialog

NewDialog creates a new Dialog

Jump to

Keyboard shortcuts

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