ion

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionEvent_State_name = map[int32]string{
		0: "ADD",
		1: "REMOVE",
	}
	SessionEvent_State_value = map[string]int32{
		"ADD":    0,
		"REMOVE": 1,
	}
)

Enum value maps for SessionEvent_State.

View Source
var (
	StreamEvent_State_name = map[int32]string{
		0: "ADD",
		1: "REMOVE",
	}
	StreamEvent_State_value = map[string]int32{
		"ADD":    0,
		"REMOVE": 1,
	}
)

Enum value maps for StreamEvent_State.

View Source
var (
	PeerEvent_State_name = map[int32]string{
		0: "JOIN",
		1: "UPDATE",
		2: "LEAVE",
	}
	PeerEvent_State_value = map[string]int32{
		"JOIN":   0,
		"UPDATE": 1,
		"LEAVE":  2,
	}
)

Enum value maps for PeerEvent_State.

View Source
var File_protos_ion_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Error

type Error struct {
	Code   int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetReason

func (x *Error) GetReason() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Message

type Message struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData

func (x *Message) GetData() []byte

func (*Message) GetFrom

func (x *Message) GetFrom() string

func (*Message) GetTo

func (x *Message) GetTo() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Node

type Node struct {
	Dc      string `protobuf:"bytes,1,opt,name=dc,proto3" json:"dc,omitempty"`
	Nid     string `protobuf:"bytes,2,opt,name=nid,proto3" json:"nid,omitempty"`
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Rpc     *RPC   `protobuf:"bytes,4,opt,name=rpc,proto3" json:"rpc,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetDc

func (x *Node) GetDc() string

func (*Node) GetNid

func (x *Node) GetNid() string

func (*Node) GetRpc

func (x *Node) GetRpc() *RPC

func (*Node) GetService

func (x *Node) GetService() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Peer

type Peer struct {
	Sid  string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"`
	Uid  string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	Info []byte `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetInfo

func (x *Peer) GetInfo() []byte

func (*Peer) GetSid

func (x *Peer) GetSid() string

func (*Peer) GetUid

func (x *Peer) GetUid() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type PeerEvent

type PeerEvent struct {
	State PeerEvent_State `protobuf:"varint,3,opt,name=state,proto3,enum=ion.PeerEvent_State" json:"state,omitempty"`
	Peer  *Peer           `protobuf:"bytes,4,opt,name=peer,proto3" json:"peer,omitempty"`
	// contains filtered or unexported fields
}

func (*PeerEvent) Descriptor deprecated

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

Deprecated: Use PeerEvent.ProtoReflect.Descriptor instead.

func (*PeerEvent) GetPeer

func (x *PeerEvent) GetPeer() *Peer

func (*PeerEvent) GetState

func (x *PeerEvent) GetState() PeerEvent_State

func (*PeerEvent) ProtoMessage

func (*PeerEvent) ProtoMessage()

func (*PeerEvent) ProtoReflect

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

func (*PeerEvent) Reset

func (x *PeerEvent) Reset()

func (*PeerEvent) String

func (x *PeerEvent) String() string

type PeerEvent_State

type PeerEvent_State int32
const (
	PeerEvent_JOIN   PeerEvent_State = 0
	PeerEvent_UPDATE PeerEvent_State = 1
	PeerEvent_LEAVE  PeerEvent_State = 2
)

func (PeerEvent_State) Descriptor

func (PeerEvent_State) Enum

func (x PeerEvent_State) Enum() *PeerEvent_State

func (PeerEvent_State) EnumDescriptor deprecated

func (PeerEvent_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use PeerEvent_State.Descriptor instead.

func (PeerEvent_State) Number

func (PeerEvent_State) String

func (x PeerEvent_State) String() string

func (PeerEvent_State) Type

type RPC

type RPC struct {
	Protocol string            `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Addr     string            `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Params   map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RPC) Descriptor deprecated

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

Deprecated: Use RPC.ProtoReflect.Descriptor instead.

func (*RPC) GetAddr

func (x *RPC) GetAddr() string

func (*RPC) GetParams

func (x *RPC) GetParams() map[string]string

func (*RPC) GetProtocol

func (x *RPC) GetProtocol() string

func (*RPC) ProtoMessage

func (*RPC) ProtoMessage()

func (*RPC) ProtoReflect

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

func (*RPC) Reset

func (x *RPC) Reset()

func (*RPC) String

func (x *RPC) String() string

type SessionEvent

type SessionEvent struct {
	State SessionEvent_State `protobuf:"varint,2,opt,name=state,proto3,enum=ion.SessionEvent_State" json:"state,omitempty"`
	Nid   string             `protobuf:"bytes,3,opt,name=nid,proto3" json:"nid,omitempty"`
	Sid   string             `protobuf:"bytes,4,opt,name=sid,proto3" json:"sid,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionEvent) Descriptor deprecated

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

Deprecated: Use SessionEvent.ProtoReflect.Descriptor instead.

func (*SessionEvent) GetNid

func (x *SessionEvent) GetNid() string

func (*SessionEvent) GetSid

func (x *SessionEvent) GetSid() string

func (*SessionEvent) GetState

func (x *SessionEvent) GetState() SessionEvent_State

func (*SessionEvent) ProtoMessage

func (*SessionEvent) ProtoMessage()

func (*SessionEvent) ProtoReflect

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

func (*SessionEvent) Reset

func (x *SessionEvent) Reset()

func (*SessionEvent) String

func (x *SessionEvent) String() string

type SessionEvent_State

type SessionEvent_State int32
const (
	SessionEvent_ADD    SessionEvent_State = 0
	SessionEvent_REMOVE SessionEvent_State = 1
)

func (SessionEvent_State) Descriptor

func (SessionEvent_State) Enum

func (SessionEvent_State) EnumDescriptor deprecated

func (SessionEvent_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use SessionEvent_State.Descriptor instead.

func (SessionEvent_State) Number

func (SessionEvent_State) String

func (x SessionEvent_State) String() string

func (SessionEvent_State) Type

type Stream

type Stream struct {
	Id     string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tracks []*Track `protobuf:"bytes,2,rep,name=tracks,proto3" json:"tracks,omitempty"`
	// contains filtered or unexported fields
}

func (*Stream) Descriptor deprecated

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

Deprecated: Use Stream.ProtoReflect.Descriptor instead.

func (*Stream) GetId

func (x *Stream) GetId() string

func (*Stream) GetTracks

func (x *Stream) GetTracks() []*Track

func (*Stream) ProtoMessage

func (*Stream) ProtoMessage()

func (*Stream) ProtoReflect

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

func (*Stream) Reset

func (x *Stream) Reset()

func (*Stream) String

func (x *Stream) String() string

type StreamEvent

type StreamEvent struct {
	State   StreamEvent_State `protobuf:"varint,2,opt,name=state,proto3,enum=ion.StreamEvent_State" json:"state,omitempty"`
	Nid     string            `protobuf:"bytes,3,opt,name=nid,proto3" json:"nid,omitempty"`
	Sid     string            `protobuf:"bytes,4,opt,name=sid,proto3" json:"sid,omitempty"`
	Uid     string            `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
	Streams []*Stream         `protobuf:"bytes,6,rep,name=streams,proto3" json:"streams,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamEvent) Descriptor deprecated

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

Deprecated: Use StreamEvent.ProtoReflect.Descriptor instead.

func (*StreamEvent) GetNid

func (x *StreamEvent) GetNid() string

func (*StreamEvent) GetSid

func (x *StreamEvent) GetSid() string

func (*StreamEvent) GetState

func (x *StreamEvent) GetState() StreamEvent_State

func (*StreamEvent) GetStreams

func (x *StreamEvent) GetStreams() []*Stream

func (*StreamEvent) GetUid

func (x *StreamEvent) GetUid() string

func (*StreamEvent) ProtoMessage

func (*StreamEvent) ProtoMessage()

func (*StreamEvent) ProtoReflect

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

func (*StreamEvent) Reset

func (x *StreamEvent) Reset()

func (*StreamEvent) String

func (x *StreamEvent) String() string

type StreamEvent_State

type StreamEvent_State int32
const (
	StreamEvent_ADD    StreamEvent_State = 0
	StreamEvent_REMOVE StreamEvent_State = 1
)

func (StreamEvent_State) Descriptor

func (StreamEvent_State) Enum

func (StreamEvent_State) EnumDescriptor deprecated

func (StreamEvent_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use StreamEvent_State.Descriptor instead.

func (StreamEvent_State) Number

func (StreamEvent_State) String

func (x StreamEvent_State) String() string

func (StreamEvent_State) Type

type Track

type Track struct {
	Id        string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Label     string            `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Kind      string            `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	Simulcast map[string]string `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Track) Descriptor deprecated

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

Deprecated: Use Track.ProtoReflect.Descriptor instead.

func (*Track) GetId

func (x *Track) GetId() string

func (*Track) GetKind

func (x *Track) GetKind() string

func (*Track) GetLabel

func (x *Track) GetLabel() string

func (*Track) GetSimulcast

func (x *Track) GetSimulcast() map[string]string

func (*Track) ProtoMessage

func (*Track) ProtoMessage()

func (*Track) ProtoReflect

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

func (*Track) Reset

func (x *Track) Reset()

func (*Track) String

func (x *Track) String() string

Jump to

Keyboard shortcuts

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