Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPreviewServiceServer(s grpc.ServiceRegistrar, srv PreviewServiceServer)
- type EmptyResponse
- type PreviewRequest
- func (*PreviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewRequest) GetChannelId() string
- func (x *PreviewRequest) GetDeviceId() string
- func (x *PreviewRequest) GetTenantId() string
- func (*PreviewRequest) ProtoMessage()
- func (x *PreviewRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewRequest) Reset()
- func (x *PreviewRequest) String() string
- type PreviewResponse
- func (*PreviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewResponse) GetChannelId() string
- func (x *PreviewResponse) GetDeviceId() string
- func (x *PreviewResponse) GetHttp() string
- func (x *PreviewResponse) GetRtmp() string
- func (x *PreviewResponse) GetRtsp() string
- func (x *PreviewResponse) GetSessionId() int32
- func (x *PreviewResponse) GetStreamId() string
- func (x *PreviewResponse) GetWebrtc() string
- func (x *PreviewResponse) GetWsflv() string
- func (*PreviewResponse) ProtoMessage()
- func (x *PreviewResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewResponse) Reset()
- func (x *PreviewResponse) String() string
- type PreviewServiceClient
- type PreviewServiceServer
- type StopPreviewRequest
- func (*StopPreviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopPreviewRequest) GetStreamId() string
- func (*StopPreviewRequest) ProtoMessage()
- func (x *StopPreviewRequest) ProtoReflect() protoreflect.Message
- func (x *StopPreviewRequest) Reset()
- func (x *StopPreviewRequest) String() string
- type UnimplementedPreviewServiceServer
- type UnsafePreviewServiceServer
Constants ¶
const ( PreviewService_PreviewStart_FullMethodName = "/preview.PreviewService/PreviewStart" PreviewService_PreviewStop_FullMethodName = "/preview.PreviewService/PreviewStop" )
Variables ¶
var File_preview_proto protoreflect.FileDescriptor
var PreviewService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "preview.PreviewService", HandlerType: (*PreviewServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PreviewStart", Handler: _PreviewService_PreviewStart_Handler, }, { MethodName: "PreviewStop", Handler: _PreviewService_PreviewStop_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "preview.proto", }
PreviewService_ServiceDesc is the grpc.ServiceDesc for PreviewService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPreviewServiceServer ¶
func RegisterPreviewServiceServer(s grpc.ServiceRegistrar, srv PreviewServiceServer)
Types ¶
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type PreviewRequest ¶
type PreviewRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*PreviewRequest) Descriptor
deprecated
func (*PreviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewRequest.ProtoReflect.Descriptor instead.
func (*PreviewRequest) GetChannelId ¶
func (x *PreviewRequest) GetChannelId() string
func (*PreviewRequest) GetDeviceId ¶
func (x *PreviewRequest) GetDeviceId() string
func (*PreviewRequest) GetTenantId ¶
func (x *PreviewRequest) GetTenantId() string
func (*PreviewRequest) ProtoMessage ¶
func (*PreviewRequest) ProtoMessage()
func (*PreviewRequest) ProtoReflect ¶
func (x *PreviewRequest) ProtoReflect() protoreflect.Message
func (*PreviewRequest) Reset ¶
func (x *PreviewRequest) Reset()
func (*PreviewRequest) String ¶
func (x *PreviewRequest) String() string
type PreviewResponse ¶
type PreviewResponse struct { StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` //视频流id DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` //设备id ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` //通道id Http string `protobuf:"bytes,4,opt,name=http,proto3" json:"http,omitempty"` //m3u8 播放地址 Rtmp string `protobuf:"bytes,5,opt,name=rtmp,proto3" json:"rtmp,omitempty"` //rtmp 播放地址 Rtsp string `protobuf:"bytes,6,opt,name=rtsp,proto3" json:"rtsp,omitempty"` //rtsp 播放地址 Wsflv string `protobuf:"bytes,7,opt,name=wsflv,proto3" json:"wsflv,omitempty"` //flv 播放地址 Webrtc string `protobuf:"bytes,8,opt,name=webrtc,proto3" json:"webrtc,omitempty"` //webrtc 播放地址 SessionId int32 `protobuf:"varint,9,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*PreviewResponse) Descriptor
deprecated
func (*PreviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewResponse.ProtoReflect.Descriptor instead.
func (*PreviewResponse) GetChannelId ¶
func (x *PreviewResponse) GetChannelId() string
func (*PreviewResponse) GetDeviceId ¶
func (x *PreviewResponse) GetDeviceId() string
func (*PreviewResponse) GetHttp ¶
func (x *PreviewResponse) GetHttp() string
func (*PreviewResponse) GetRtmp ¶
func (x *PreviewResponse) GetRtmp() string
func (*PreviewResponse) GetRtsp ¶
func (x *PreviewResponse) GetRtsp() string
func (*PreviewResponse) GetSessionId ¶
func (x *PreviewResponse) GetSessionId() int32
func (*PreviewResponse) GetStreamId ¶
func (x *PreviewResponse) GetStreamId() string
func (*PreviewResponse) GetWebrtc ¶
func (x *PreviewResponse) GetWebrtc() string
func (*PreviewResponse) GetWsflv ¶
func (x *PreviewResponse) GetWsflv() string
func (*PreviewResponse) ProtoMessage ¶
func (*PreviewResponse) ProtoMessage()
func (*PreviewResponse) ProtoReflect ¶
func (x *PreviewResponse) ProtoReflect() protoreflect.Message
func (*PreviewResponse) Reset ¶
func (x *PreviewResponse) Reset()
func (*PreviewResponse) String ¶
func (x *PreviewResponse) String() string
type PreviewServiceClient ¶
type PreviewServiceClient interface { PreviewStart(ctx context.Context, in *PreviewRequest, opts ...grpc.CallOption) (*PreviewResponse, error) PreviewStop(ctx context.Context, in *StopPreviewRequest, opts ...grpc.CallOption) (*EmptyResponse, error) }
PreviewServiceClient is the client API for PreviewService 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 NewPreviewServiceClient ¶
func NewPreviewServiceClient(cc grpc.ClientConnInterface) PreviewServiceClient
type PreviewServiceServer ¶
type PreviewServiceServer interface { PreviewStart(context.Context, *PreviewRequest) (*PreviewResponse, error) PreviewStop(context.Context, *StopPreviewRequest) (*EmptyResponse, error) // contains filtered or unexported methods }
PreviewServiceServer is the server API for PreviewService service. All implementations must embed UnimplementedPreviewServiceServer for forward compatibility
type StopPreviewRequest ¶
type StopPreviewRequest struct { StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // contains filtered or unexported fields }
func (*StopPreviewRequest) Descriptor
deprecated
func (*StopPreviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopPreviewRequest.ProtoReflect.Descriptor instead.
func (*StopPreviewRequest) GetStreamId ¶
func (x *StopPreviewRequest) GetStreamId() string
func (*StopPreviewRequest) ProtoMessage ¶
func (*StopPreviewRequest) ProtoMessage()
func (*StopPreviewRequest) ProtoReflect ¶
func (x *StopPreviewRequest) ProtoReflect() protoreflect.Message
func (*StopPreviewRequest) Reset ¶
func (x *StopPreviewRequest) Reset()
func (*StopPreviewRequest) String ¶
func (x *StopPreviewRequest) String() string
type UnimplementedPreviewServiceServer ¶
type UnimplementedPreviewServiceServer struct { }
UnimplementedPreviewServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPreviewServiceServer) PreviewStart ¶
func (UnimplementedPreviewServiceServer) PreviewStart(context.Context, *PreviewRequest) (*PreviewResponse, error)
func (UnimplementedPreviewServiceServer) PreviewStop ¶
func (UnimplementedPreviewServiceServer) PreviewStop(context.Context, *StopPreviewRequest) (*EmptyResponse, error)
type UnsafePreviewServiceServer ¶
type UnsafePreviewServiceServer interface {
// contains filtered or unexported methods
}
UnsafePreviewServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PreviewServiceServer will result in compilation errors.