Documentation ¶
Index ¶
- Variables
- func RegisterMediaApiServer(s grpc.ServiceRegistrar, srv MediaApiServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetCmd() string
- func (x *Action) GetCmdArg() string
- func (x *Action) GetSessionId() string
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type ActionEvent
- func (*ActionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ActionEvent) GetEvent() string
- func (x *ActionEvent) GetSessionId() string
- func (*ActionEvent) ProtoMessage()
- func (x *ActionEvent) ProtoReflect() protoreflect.Message
- func (x *ActionEvent) Reset()
- func (x *ActionEvent) String() string
- type ActionResult
- func (*ActionResult) Descriptor() ([]byte, []int)deprecated
- func (x *ActionResult) GetSessionId() string
- func (x *ActionResult) GetState() string
- func (*ActionResult) ProtoMessage()
- func (x *ActionResult) ProtoReflect() protoreflect.Message
- func (x *ActionResult) Reset()
- func (x *ActionResult) String() string
- type CodecInfo
- func (*CodecInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CodecInfo) GetCodecParam() string
- func (x *CodecInfo) GetPayloadNumber() uint32
- func (x *CodecInfo) GetPayloadType() CodecType
- func (*CodecInfo) ProtoMessage()
- func (x *CodecInfo) ProtoReflect() protoreflect.Message
- func (x *CodecInfo) Reset()
- func (x *CodecInfo) String() string
- type CodecType
- type CreateParam
- func (*CreateParam) Descriptor() ([]byte, []int)deprecated
- func (x *CreateParam) GetCodecs() []*CodecInfo
- func (x *CreateParam) GetGraphDesc() string
- func (x *CreateParam) GetInstanceId() string
- func (x *CreateParam) GetPeerIp() string
- func (x *CreateParam) GetPeerPort() uint32
- func (*CreateParam) ProtoMessage()
- func (x *CreateParam) ProtoReflect() protoreflect.Message
- func (x *CreateParam) Reset()
- func (x *CreateParam) String() string
- type Empty
- type MediaApiClient
- type MediaApiServer
- type MediaApi_ExecuteActionWithNotifyClient
- type MediaApi_ExecuteActionWithNotifyServer
- type MediaApi_ExecuteActionWithPushClient
- type MediaApi_ExecuteActionWithPushServer
- type MediaApi_SystemChannelClient
- type MediaApi_SystemChannelServer
- type PushData
- func (*PushData) Descriptor() ([]byte, []int)deprecated
- func (x *PushData) GetData() []byte
- func (x *PushData) GetMsgType() string
- func (x *PushData) GetNodeName() string
- func (x *PushData) GetSessionId() string
- func (*PushData) ProtoMessage()
- func (x *PushData) ProtoReflect() protoreflect.Message
- func (x *PushData) Reset()
- func (x *PushData) String() string
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetLocalIp() string
- func (x *Session) GetLocalRtpPort() uint32
- func (x *Session) GetPeerIp() string
- func (x *Session) GetPeerRtpPort() uint32
- func (x *Session) GetSessionId() string
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type StartParam
- type Status
- type StopParam
- type SystemCommand
- func (SystemCommand) Descriptor() protoreflect.EnumDescriptor
- func (x SystemCommand) Enum() *SystemCommand
- func (SystemCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x SystemCommand) Number() protoreflect.EnumNumber
- func (x SystemCommand) String() string
- func (SystemCommand) Type() protoreflect.EnumType
- type SystemEvent
- func (*SystemEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SystemEvent) GetCmd() SystemCommand
- func (x *SystemEvent) GetEvent() string
- func (x *SystemEvent) GetInstanceId() string
- func (x *SystemEvent) GetSessionId() string
- func (*SystemEvent) ProtoMessage()
- func (x *SystemEvent) ProtoReflect() protoreflect.Message
- func (x *SystemEvent) Reset()
- func (x *SystemEvent) String() string
- type UnimplementedMediaApiServer
- func (UnimplementedMediaApiServer) ExecuteAction(context.Context, *Action) (*ActionResult, error)
- func (UnimplementedMediaApiServer) ExecuteActionWithNotify(*Action, MediaApi_ExecuteActionWithNotifyServer) error
- func (UnimplementedMediaApiServer) ExecuteActionWithPush(MediaApi_ExecuteActionWithPushServer) error
- func (UnimplementedMediaApiServer) GetVersion(context.Context, *Empty) (*VersionNumber, error)
- func (UnimplementedMediaApiServer) PrepareSession(context.Context, *CreateParam) (*Session, error)
- func (UnimplementedMediaApiServer) StartSession(context.Context, *StartParam) (*Status, error)
- func (UnimplementedMediaApiServer) StopSession(context.Context, *StopParam) (*Status, error)
- func (UnimplementedMediaApiServer) SystemChannel(MediaApi_SystemChannelServer) error
- func (UnimplementedMediaApiServer) UpdateSession(context.Context, *UpdateParam) (*Status, error)
- type UnsafeMediaApiServer
- type UpdateParam
- func (*UpdateParam) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateParam) GetPeerIp() string
- func (x *UpdateParam) GetPeerPort() uint32
- func (x *UpdateParam) GetSessionId() string
- func (*UpdateParam) ProtoMessage()
- func (x *UpdateParam) ProtoReflect() protoreflect.Message
- func (x *UpdateParam) Reset()
- func (x *UpdateParam) String() string
- type Version
- type VersionNumber
Constants ¶
This section is empty.
Variables ¶
var ( Version_name = map[int32]string{ 0: "DUMMY", 1: "DEFAULT", } Version_value = map[string]int32{ "DUMMY": 0, "DEFAULT": 1, } )
Enum value maps for Version.
var ( CodecType_name = map[int32]string{ 0: "RAW", 1: "TELEPHONE_EVENT_8K", 2: "TELEPHONE_EVENT_16K", 3: "PCM_ALAW", 4: "AMRNB", 5: "AMRWB", 6: "H264", } CodecType_value = map[string]int32{ "RAW": 0, "TELEPHONE_EVENT_8K": 1, "TELEPHONE_EVENT_16K": 2, "PCM_ALAW": 3, "AMRNB": 4, "AMRWB": 5, "H264": 6, } )
Enum value maps for CodecType.
var ( SystemCommand_name = map[int32]string{ 0: "USER_EVENT", 1: "REGISTER", 2: "KEEPALIVE", 3: "SESSION_INFO", } SystemCommand_value = map[string]int32{ "USER_EVENT": 0, "REGISTER": 1, "KEEPALIVE": 2, "SESSION_INFO": 3, } )
Enum value maps for SystemCommand.
var File_msapi_proto protoreflect.FileDescriptor
var MediaApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rpc.MediaApi", HandlerType: (*MediaApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _MediaApi_GetVersion_Handler, }, { MethodName: "PrepareSession", Handler: _MediaApi_PrepareSession_Handler, }, { MethodName: "UpdateSession", Handler: _MediaApi_UpdateSession_Handler, }, { MethodName: "StartSession", Handler: _MediaApi_StartSession_Handler, }, { MethodName: "StopSession", Handler: _MediaApi_StopSession_Handler, }, { MethodName: "ExecuteAction", Handler: _MediaApi_ExecuteAction_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ExecuteActionWithNotify", Handler: _MediaApi_ExecuteActionWithNotify_Handler, ServerStreams: true, }, { StreamName: "ExecuteActionWithPush", Handler: _MediaApi_ExecuteActionWithPush_Handler, ClientStreams: true, }, { StreamName: "SystemChannel", Handler: _MediaApi_SystemChannel_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "msapi.proto", }
MediaApi_ServiceDesc is the grpc.ServiceDesc for MediaApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMediaApiServer ¶
func RegisterMediaApiServer(s grpc.ServiceRegistrar, srv MediaApiServer)
Types ¶
type Action ¶ added in v0.0.2
type Action struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"` CmdArg string `protobuf:"bytes,3,opt,name=cmd_arg,json=cmdArg,proto3" json:"cmd_arg,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
added in
v0.0.2
func (*Action) GetSessionId ¶ added in v0.0.2
func (*Action) ProtoMessage ¶ added in v0.0.2
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶ added in v0.0.2
func (x *Action) ProtoReflect() protoreflect.Message
type ActionEvent ¶ added in v0.0.2
type ActionEvent struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*ActionEvent) Descriptor
deprecated
added in
v0.0.2
func (*ActionEvent) Descriptor() ([]byte, []int)
Deprecated: Use ActionEvent.ProtoReflect.Descriptor instead.
func (*ActionEvent) GetEvent ¶ added in v0.0.2
func (x *ActionEvent) GetEvent() string
func (*ActionEvent) GetSessionId ¶ added in v0.0.2
func (x *ActionEvent) GetSessionId() string
func (*ActionEvent) ProtoMessage ¶ added in v0.0.2
func (*ActionEvent) ProtoMessage()
func (*ActionEvent) ProtoReflect ¶ added in v0.0.2
func (x *ActionEvent) ProtoReflect() protoreflect.Message
func (*ActionEvent) Reset ¶ added in v0.0.2
func (x *ActionEvent) Reset()
func (*ActionEvent) String ¶ added in v0.0.2
func (x *ActionEvent) String() string
type ActionResult ¶ added in v0.0.2
type ActionResult struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*ActionResult) Descriptor
deprecated
added in
v0.0.2
func (*ActionResult) Descriptor() ([]byte, []int)
Deprecated: Use ActionResult.ProtoReflect.Descriptor instead.
func (*ActionResult) GetSessionId ¶ added in v0.0.2
func (x *ActionResult) GetSessionId() string
func (*ActionResult) GetState ¶ added in v0.0.2
func (x *ActionResult) GetState() string
func (*ActionResult) ProtoMessage ¶ added in v0.0.2
func (*ActionResult) ProtoMessage()
func (*ActionResult) ProtoReflect ¶ added in v0.0.2
func (x *ActionResult) ProtoReflect() protoreflect.Message
func (*ActionResult) Reset ¶ added in v0.0.2
func (x *ActionResult) Reset()
func (*ActionResult) String ¶ added in v0.0.2
func (x *ActionResult) String() string
type CodecInfo ¶ added in v0.0.2
type CodecInfo struct { PayloadNumber uint32 `protobuf:"varint,1,opt,name=payload_number,json=payloadNumber,proto3" json:"payload_number,omitempty"` // negotiated payload type, dynamic(96 ~ 127) or fixed type PayloadType CodecType `protobuf:"varint,2,opt,name=payload_type,json=payloadType,proto3,enum=rpc.CodecType" json:"payload_type,omitempty"` // used to identify mime type, like "AMR","PCM_ALAW" CodecParam string `protobuf:"bytes,3,opt,name=codec_param,json=codecParam,proto3" json:"codec_param,omitempty"` // parameter of codec, like fmtp: ... // contains filtered or unexported fields }
func (*CodecInfo) Descriptor
deprecated
added in
v0.0.2
func (*CodecInfo) GetCodecParam ¶ added in v0.0.2
func (*CodecInfo) GetPayloadNumber ¶ added in v0.0.2
func (*CodecInfo) GetPayloadType ¶ added in v0.0.2
func (*CodecInfo) ProtoMessage ¶ added in v0.0.2
func (*CodecInfo) ProtoMessage()
func (*CodecInfo) ProtoReflect ¶ added in v0.0.2
func (x *CodecInfo) ProtoReflect() protoreflect.Message
type CodecType ¶
type CodecType int32
func (CodecType) Descriptor ¶
func (CodecType) Descriptor() protoreflect.EnumDescriptor
func (CodecType) EnumDescriptor
deprecated
func (CodecType) Number ¶
func (x CodecType) Number() protoreflect.EnumNumber
func (CodecType) Type ¶
func (CodecType) Type() protoreflect.EnumType
type CreateParam ¶ added in v0.0.2
type CreateParam struct { PeerIp string `protobuf:"bytes,1,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"` // remote rtp ip PeerPort uint32 `protobuf:"varint,2,opt,name=peer_port,json=peerPort,proto3" json:"peer_port,omitempty"` // remote rtp port Codecs []*CodecInfo `protobuf:"bytes,3,rep,name=codecs,proto3" json:"codecs,omitempty"` GraphDesc string `protobuf:"bytes,4,opt,name=graph_desc,json=graphDesc,proto3" json:"graph_desc,omitempty"` // used to describe event graph InstanceId string `protobuf:"bytes,5,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // which instance creates this session // contains filtered or unexported fields }
func (*CreateParam) Descriptor
deprecated
added in
v0.0.2
func (*CreateParam) Descriptor() ([]byte, []int)
Deprecated: Use CreateParam.ProtoReflect.Descriptor instead.
func (*CreateParam) GetCodecs ¶ added in v0.0.2
func (x *CreateParam) GetCodecs() []*CodecInfo
func (*CreateParam) GetGraphDesc ¶ added in v0.0.2
func (x *CreateParam) GetGraphDesc() string
func (*CreateParam) GetInstanceId ¶ added in v0.0.3
func (x *CreateParam) GetInstanceId() string
func (*CreateParam) GetPeerIp ¶ added in v0.0.2
func (x *CreateParam) GetPeerIp() string
func (*CreateParam) GetPeerPort ¶ added in v0.0.2
func (x *CreateParam) GetPeerPort() uint32
func (*CreateParam) ProtoMessage ¶ added in v0.0.2
func (*CreateParam) ProtoMessage()
func (*CreateParam) ProtoReflect ¶ added in v0.0.2
func (x *CreateParam) ProtoReflect() protoreflect.Message
func (*CreateParam) Reset ¶ added in v0.0.2
func (x *CreateParam) Reset()
func (*CreateParam) String ¶ added in v0.0.2
func (x *CreateParam) String() string
type Empty ¶ added in v0.0.3
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
added in
v0.0.3
func (*Empty) ProtoMessage ¶ added in v0.0.3
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.0.3
func (x *Empty) ProtoReflect() protoreflect.Message
type MediaApiClient ¶
type MediaApiClient interface { GetVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) PrepareSession(ctx context.Context, in *CreateParam, opts ...grpc.CallOption) (*Session, error) UpdateSession(ctx context.Context, in *UpdateParam, opts ...grpc.CallOption) (*Status, error) StartSession(ctx context.Context, in *StartParam, opts ...grpc.CallOption) (*Status, error) StopSession(ctx context.Context, in *StopParam, opts ...grpc.CallOption) (*Status, error) ExecuteAction(ctx context.Context, in *Action, opts ...grpc.CallOption) (*ActionResult, error) ExecuteActionWithNotify(ctx context.Context, in *Action, opts ...grpc.CallOption) (MediaApi_ExecuteActionWithNotifyClient, error) ExecuteActionWithPush(ctx context.Context, opts ...grpc.CallOption) (MediaApi_ExecuteActionWithPushClient, error) SystemChannel(ctx context.Context, opts ...grpc.CallOption) (MediaApi_SystemChannelClient, error) }
MediaApiClient is the client API for MediaApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMediaApiClient ¶
func NewMediaApiClient(cc grpc.ClientConnInterface) MediaApiClient
type MediaApiServer ¶
type MediaApiServer interface { GetVersion(context.Context, *Empty) (*VersionNumber, error) PrepareSession(context.Context, *CreateParam) (*Session, error) UpdateSession(context.Context, *UpdateParam) (*Status, error) StartSession(context.Context, *StartParam) (*Status, error) StopSession(context.Context, *StopParam) (*Status, error) ExecuteAction(context.Context, *Action) (*ActionResult, error) ExecuteActionWithNotify(*Action, MediaApi_ExecuteActionWithNotifyServer) error ExecuteActionWithPush(MediaApi_ExecuteActionWithPushServer) error SystemChannel(MediaApi_SystemChannelServer) error // contains filtered or unexported methods }
MediaApiServer is the server API for MediaApi service. All implementations must embed UnimplementedMediaApiServer for forward compatibility
type MediaApi_ExecuteActionWithNotifyClient ¶
type MediaApi_ExecuteActionWithNotifyClient interface { Recv() (*ActionEvent, error) grpc.ClientStream }
type MediaApi_ExecuteActionWithNotifyServer ¶
type MediaApi_ExecuteActionWithNotifyServer interface { Send(*ActionEvent) error grpc.ServerStream }
type MediaApi_ExecuteActionWithPushClient ¶ added in v0.0.3
type MediaApi_ExecuteActionWithPushClient interface { Send(*PushData) error CloseAndRecv() (*ActionResult, error) grpc.ClientStream }
type MediaApi_ExecuteActionWithPushServer ¶ added in v0.0.3
type MediaApi_ExecuteActionWithPushServer interface { SendAndClose(*ActionResult) error Recv() (*PushData, error) grpc.ServerStream }
type MediaApi_SystemChannelClient ¶ added in v0.0.3
type MediaApi_SystemChannelClient interface { Send(*SystemEvent) error Recv() (*SystemEvent, error) grpc.ClientStream }
type MediaApi_SystemChannelServer ¶ added in v0.0.3
type MediaApi_SystemChannelServer interface { Send(*SystemEvent) error Recv() (*SystemEvent, error) grpc.ServerStream }
type PushData ¶ added in v0.0.3
type PushData struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // only used in first packet, following packets use the same session id NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` MsgType string `protobuf:"bytes,3,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PushData) Descriptor
deprecated
added in
v0.0.3
func (*PushData) GetMsgType ¶ added in v0.0.3
func (*PushData) GetNodeName ¶ added in v0.0.3
func (*PushData) GetSessionId ¶ added in v0.0.3
func (*PushData) ProtoMessage ¶ added in v0.0.3
func (*PushData) ProtoMessage()
func (*PushData) ProtoReflect ¶ added in v0.0.3
func (x *PushData) ProtoReflect() protoreflect.Message
type Session ¶ added in v0.0.2
type Session struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` LocalIp string `protobuf:"bytes,2,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` LocalRtpPort uint32 `protobuf:"varint,3,opt,name=local_rtp_port,json=localRtpPort,proto3" json:"local_rtp_port,omitempty"` PeerIp string `protobuf:"bytes,4,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"` PeerRtpPort uint32 `protobuf:"varint,5,opt,name=peer_rtp_port,json=peerRtpPort,proto3" json:"peer_rtp_port,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
added in
v0.0.2
func (*Session) GetLocalIp ¶ added in v0.0.2
func (*Session) GetLocalRtpPort ¶ added in v0.0.2
func (*Session) GetPeerRtpPort ¶ added in v0.0.2
func (*Session) GetSessionId ¶ added in v0.0.2
func (*Session) ProtoMessage ¶ added in v0.0.2
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶ added in v0.0.2
func (x *Session) ProtoReflect() protoreflect.Message
type StartParam ¶ added in v0.0.2
type StartParam struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*StartParam) Descriptor
deprecated
added in
v0.0.2
func (*StartParam) Descriptor() ([]byte, []int)
Deprecated: Use StartParam.ProtoReflect.Descriptor instead.
func (*StartParam) GetSessionId ¶ added in v0.0.2
func (x *StartParam) GetSessionId() string
func (*StartParam) ProtoMessage ¶ added in v0.0.2
func (*StartParam) ProtoMessage()
func (*StartParam) ProtoReflect ¶ added in v0.0.2
func (x *StartParam) ProtoReflect() protoreflect.Message
func (*StartParam) Reset ¶ added in v0.0.2
func (x *StartParam) Reset()
func (*StartParam) String ¶ added in v0.0.2
func (x *StartParam) String() string
type Status ¶ added in v0.0.2
type Status struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
added in
v0.0.2
func (*Status) ProtoMessage ¶ added in v0.0.2
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶ added in v0.0.2
func (x *Status) ProtoReflect() protoreflect.Message
type StopParam ¶ added in v0.0.2
type StopParam struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*StopParam) Descriptor
deprecated
added in
v0.0.2
func (*StopParam) GetSessionId ¶ added in v0.0.2
func (*StopParam) ProtoMessage ¶ added in v0.0.2
func (*StopParam) ProtoMessage()
func (*StopParam) ProtoReflect ¶ added in v0.0.2
func (x *StopParam) ProtoReflect() protoreflect.Message
type SystemCommand ¶ added in v0.0.3
type SystemCommand int32
const ( SystemCommand_USER_EVENT SystemCommand = 0 // used by other subsystem SystemCommand_REGISTER SystemCommand = 1 SystemCommand_KEEPALIVE SystemCommand = 2 SystemCommand_SESSION_INFO SystemCommand = 3 )
func (SystemCommand) Descriptor ¶ added in v0.0.3
func (SystemCommand) Descriptor() protoreflect.EnumDescriptor
func (SystemCommand) Enum ¶ added in v0.0.3
func (x SystemCommand) Enum() *SystemCommand
func (SystemCommand) EnumDescriptor
deprecated
added in
v0.0.3
func (SystemCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use SystemCommand.Descriptor instead.
func (SystemCommand) Number ¶ added in v0.0.3
func (x SystemCommand) Number() protoreflect.EnumNumber
func (SystemCommand) String ¶ added in v0.0.3
func (x SystemCommand) String() string
func (SystemCommand) Type ¶ added in v0.0.3
func (SystemCommand) Type() protoreflect.EnumType
type SystemEvent ¶ added in v0.0.3
type SystemEvent struct { Cmd SystemCommand `protobuf:"varint,1,opt,name=cmd,proto3,enum=rpc.SystemCommand" json:"cmd,omitempty"` InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Event string `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*SystemEvent) Descriptor
deprecated
added in
v0.0.3
func (*SystemEvent) Descriptor() ([]byte, []int)
Deprecated: Use SystemEvent.ProtoReflect.Descriptor instead.
func (*SystemEvent) GetCmd ¶ added in v0.0.3
func (x *SystemEvent) GetCmd() SystemCommand
func (*SystemEvent) GetEvent ¶ added in v0.0.3
func (x *SystemEvent) GetEvent() string
func (*SystemEvent) GetInstanceId ¶ added in v0.0.3
func (x *SystemEvent) GetInstanceId() string
func (*SystemEvent) GetSessionId ¶ added in v0.0.3
func (x *SystemEvent) GetSessionId() string
func (*SystemEvent) ProtoMessage ¶ added in v0.0.3
func (*SystemEvent) ProtoMessage()
func (*SystemEvent) ProtoReflect ¶ added in v0.0.3
func (x *SystemEvent) ProtoReflect() protoreflect.Message
func (*SystemEvent) Reset ¶ added in v0.0.3
func (x *SystemEvent) Reset()
func (*SystemEvent) String ¶ added in v0.0.3
func (x *SystemEvent) String() string
type UnimplementedMediaApiServer ¶
type UnimplementedMediaApiServer struct { }
UnimplementedMediaApiServer must be embedded to have forward compatible implementations.
func (UnimplementedMediaApiServer) ExecuteAction ¶
func (UnimplementedMediaApiServer) ExecuteAction(context.Context, *Action) (*ActionResult, error)
func (UnimplementedMediaApiServer) ExecuteActionWithNotify ¶
func (UnimplementedMediaApiServer) ExecuteActionWithNotify(*Action, MediaApi_ExecuteActionWithNotifyServer) error
func (UnimplementedMediaApiServer) ExecuteActionWithPush ¶ added in v0.0.3
func (UnimplementedMediaApiServer) ExecuteActionWithPush(MediaApi_ExecuteActionWithPushServer) error
func (UnimplementedMediaApiServer) GetVersion ¶ added in v0.0.3
func (UnimplementedMediaApiServer) GetVersion(context.Context, *Empty) (*VersionNumber, error)
func (UnimplementedMediaApiServer) PrepareSession ¶ added in v0.0.2
func (UnimplementedMediaApiServer) PrepareSession(context.Context, *CreateParam) (*Session, error)
func (UnimplementedMediaApiServer) StartSession ¶
func (UnimplementedMediaApiServer) StartSession(context.Context, *StartParam) (*Status, error)
func (UnimplementedMediaApiServer) StopSession ¶
func (UnimplementedMediaApiServer) SystemChannel ¶ added in v0.0.3
func (UnimplementedMediaApiServer) SystemChannel(MediaApi_SystemChannelServer) error
func (UnimplementedMediaApiServer) UpdateSession ¶ added in v0.0.3
func (UnimplementedMediaApiServer) UpdateSession(context.Context, *UpdateParam) (*Status, error)
type UnsafeMediaApiServer ¶
type UnsafeMediaApiServer interface {
// contains filtered or unexported methods
}
UnsafeMediaApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MediaApiServer will result in compilation errors.
type UpdateParam ¶ added in v0.0.3
type UpdateParam struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` PeerIp string `protobuf:"bytes,2,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"` PeerPort uint32 `protobuf:"varint,3,opt,name=peer_port,json=peerPort,proto3" json:"peer_port,omitempty"` // contains filtered or unexported fields }
func (*UpdateParam) Descriptor
deprecated
added in
v0.0.3
func (*UpdateParam) Descriptor() ([]byte, []int)
Deprecated: Use UpdateParam.ProtoReflect.Descriptor instead.
func (*UpdateParam) GetPeerIp ¶ added in v0.0.3
func (x *UpdateParam) GetPeerIp() string
func (*UpdateParam) GetPeerPort ¶ added in v0.0.3
func (x *UpdateParam) GetPeerPort() uint32
func (*UpdateParam) GetSessionId ¶ added in v0.0.3
func (x *UpdateParam) GetSessionId() string
func (*UpdateParam) ProtoMessage ¶ added in v0.0.3
func (*UpdateParam) ProtoMessage()
func (*UpdateParam) ProtoReflect ¶ added in v0.0.3
func (x *UpdateParam) ProtoReflect() protoreflect.Message
func (*UpdateParam) Reset ¶ added in v0.0.3
func (x *UpdateParam) Reset()
func (*UpdateParam) String ¶ added in v0.0.3
func (x *UpdateParam) String() string
type Version ¶ added in v0.0.3
type Version int32
func (Version) Descriptor ¶ added in v0.0.3
func (Version) Descriptor() protoreflect.EnumDescriptor
func (Version) EnumDescriptor
deprecated
added in
v0.0.3
func (Version) Number ¶ added in v0.0.3
func (x Version) Number() protoreflect.EnumNumber
func (Version) Type ¶ added in v0.0.3
func (Version) Type() protoreflect.EnumType
type VersionNumber ¶ added in v0.0.3
type VersionNumber struct { Ver Version `protobuf:"varint,2,opt,name=ver,proto3,enum=rpc.Version" json:"ver,omitempty"` // contains filtered or unexported fields }
func (*VersionNumber) Descriptor
deprecated
added in
v0.0.3
func (*VersionNumber) Descriptor() ([]byte, []int)
Deprecated: Use VersionNumber.ProtoReflect.Descriptor instead.
func (*VersionNumber) GetVer ¶ added in v0.0.3
func (x *VersionNumber) GetVer() Version
func (*VersionNumber) ProtoMessage ¶ added in v0.0.3
func (*VersionNumber) ProtoMessage()
func (*VersionNumber) ProtoReflect ¶ added in v0.0.3
func (x *VersionNumber) ProtoReflect() protoreflect.Message
func (*VersionNumber) Reset ¶ added in v0.0.3
func (x *VersionNumber) Reset()
func (*VersionNumber) String ¶ added in v0.0.3
func (x *VersionNumber) String() string