kurento

package
v0.0.0-...-3a71dc6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2015 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(state bool)

Debug activate debug information.

Types

type Connection

type Connection struct {
	SessionId string
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(host string) *Connection

func (*Connection) Create

func (c *Connection) Create(m IMediaObject, options map[string]interface{})

func (*Connection) Request

func (c *Connection) Request(req map[string]interface{}) <-chan Response

type Error

type Error struct {
	Code    int64
	Message string
	Data    string
}

Error that can be filled in response

func (*Error) Error

func (e *Error) Error() string

Implements error built-in interface

type IMediaObject

type IMediaObject interface {

	// Each media object should be able to create another object
	// Those options are sent to getConstructorParams
	Create(IMediaObject, map[string]interface{})

	//Implement Stringer
	String() string
	// contains filtered or unexported methods
}

IMadiaElement implements some basic methods as getConstructorParams or Create().

type Response

type Response struct {
	Jsonrpc string
	Id      float64
	Result  map[string]string // should change if result has no several form
	Error   *Error
}

Response represents server response

Notes

Bugs

  • a recursion happends while testing, I must find why

Jump to

Keyboard shortcuts

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