callstate

package
v0.0.0-...-910e886 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallStateAdapter

func NewCallStateAdapter() (adapters.CallStateAdapter, error)

Types

type CallState

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

func (CallState) AddSetMember

func (cs CallState) AddSetMember(key string, member string, expired ...int) error

func (CallState) Del

func (cs CallState) Del(callUUID string) error

func (CallState) DelKeyMember

func (cs CallState) DelKeyMember(key string, member string) error

func (CallState) Get

func (cs CallState) Get(callUUID string) ([]byte, error)

func (CallState) GetMembersScore

func (cs CallState) GetMembersScore(key string) (map[string]int64, error)

func (CallState) IncrKeyMemberScore

func (cs CallState) IncrKeyMemberScore(key string, member string, score int) (int64, error)

func (CallState) KeyExist

func (cs CallState) KeyExist(key string) (bool, error)

func (CallState) Set

func (cs CallState) Set(callUuid string, state []byte, expired ...int) error

func (CallState) SetRecordingJob

func (cs CallState) SetRecordingJob(state []byte) error

Jump to

Keyboard shortcuts

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