Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAudioServiceServer(s grpc.ServiceRegistrar, srv AudioServiceServer)
- type AudioServiceClient
- type AudioServiceServer
- type EmptyResponse
- type GetAudioPushURLRequest
- func (*GetAudioPushURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAudioPushURLRequest) GetChannelID() string
- func (x *GetAudioPushURLRequest) GetDeviceID() string
- func (*GetAudioPushURLRequest) ProtoMessage()
- func (x *GetAudioPushURLRequest) ProtoReflect() protoreflect.Message
- func (x *GetAudioPushURLRequest) Reset()
- func (x *GetAudioPushURLRequest) String() string
- type GetAudioPushURLResponse
- func (*GetAudioPushURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAudioPushURLResponse) GetURL() string
- func (*GetAudioPushURLResponse) ProtoMessage()
- func (x *GetAudioPushURLResponse) ProtoReflect() protoreflect.Message
- func (x *GetAudioPushURLResponse) Reset()
- func (x *GetAudioPushURLResponse) String() string
- type StartAudioSendRequest
- func (*StartAudioSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartAudioSendRequest) GetChannelID() string
- func (x *StartAudioSendRequest) GetDeviceID() string
- func (*StartAudioSendRequest) ProtoMessage()
- func (x *StartAudioSendRequest) ProtoReflect() protoreflect.Message
- func (x *StartAudioSendRequest) Reset()
- func (x *StartAudioSendRequest) String() string
- type StopAudioSendRequest
- func (*StopAudioSendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopAudioSendRequest) GetChannelID() string
- func (x *StopAudioSendRequest) GetDeviceID() string
- func (*StopAudioSendRequest) ProtoMessage()
- func (x *StopAudioSendRequest) ProtoReflect() protoreflect.Message
- func (x *StopAudioSendRequest) Reset()
- func (x *StopAudioSendRequest) String() string
- type UnimplementedAudioServiceServer
- func (UnimplementedAudioServiceServer) GetAudioPushURL(context.Context, *GetAudioPushURLRequest) (*GetAudioPushURLResponse, error)
- func (UnimplementedAudioServiceServer) StartAudioSend(context.Context, *StartAudioSendRequest) (*EmptyResponse, error)
- func (UnimplementedAudioServiceServer) StopAudioSend(context.Context, *StopAudioSendRequest) (*EmptyResponse, error)
- type UnsafeAudioServiceServer
Constants ¶
const ( AudioService_GetAudioPushURL_FullMethodName = "/audio.AudioService/GetAudioPushURL" AudioService_StartAudioSend_FullMethodName = "/audio.AudioService/StartAudioSend" AudioService_StopAudioSend_FullMethodName = "/audio.AudioService/StopAudioSend" )
Variables ¶
var AudioService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "audio.AudioService", HandlerType: (*AudioServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAudioPushURL", Handler: _AudioService_GetAudioPushURL_Handler, }, { MethodName: "StartAudioSend", Handler: _AudioService_StartAudioSend_Handler, }, { MethodName: "StopAudioSend", Handler: _AudioService_StopAudioSend_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "audio.proto", }
AudioService_ServiceDesc is the grpc.ServiceDesc for AudioService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_audio_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAudioServiceServer ¶
func RegisterAudioServiceServer(s grpc.ServiceRegistrar, srv AudioServiceServer)
Types ¶
type AudioServiceClient ¶
type AudioServiceClient interface { // 获取语音推流地址 GetAudioPushURL(ctx context.Context, in *GetAudioPushURLRequest, opts ...grpc.CallOption) (*GetAudioPushURLResponse, error) // * // 语音转发 StartAudioSend(ctx context.Context, in *StartAudioSendRequest, opts ...grpc.CallOption) (*EmptyResponse, error) StopAudioSend(ctx context.Context, in *StopAudioSendRequest, opts ...grpc.CallOption) (*EmptyResponse, error) }
AudioServiceClient is the client API for AudioService 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 NewAudioServiceClient ¶
func NewAudioServiceClient(cc grpc.ClientConnInterface) AudioServiceClient
type AudioServiceServer ¶
type AudioServiceServer interface { // 获取语音推流地址 GetAudioPushURL(context.Context, *GetAudioPushURLRequest) (*GetAudioPushURLResponse, error) // * // 语音转发 StartAudioSend(context.Context, *StartAudioSendRequest) (*EmptyResponse, error) StopAudioSend(context.Context, *StopAudioSendRequest) (*EmptyResponse, error) // contains filtered or unexported methods }
AudioServiceServer is the server API for AudioService service. All implementations must embed UnimplementedAudioServiceServer for forward compatibility
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 GetAudioPushURLRequest ¶
type GetAudioPushURLRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"` ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` // contains filtered or unexported fields }
func (*GetAudioPushURLRequest) Descriptor
deprecated
func (*GetAudioPushURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAudioPushURLRequest.ProtoReflect.Descriptor instead.
func (*GetAudioPushURLRequest) GetChannelID ¶
func (x *GetAudioPushURLRequest) GetChannelID() string
func (*GetAudioPushURLRequest) GetDeviceID ¶
func (x *GetAudioPushURLRequest) GetDeviceID() string
func (*GetAudioPushURLRequest) ProtoMessage ¶
func (*GetAudioPushURLRequest) ProtoMessage()
func (*GetAudioPushURLRequest) ProtoReflect ¶
func (x *GetAudioPushURLRequest) ProtoReflect() protoreflect.Message
func (*GetAudioPushURLRequest) Reset ¶
func (x *GetAudioPushURLRequest) Reset()
func (*GetAudioPushURLRequest) String ¶
func (x *GetAudioPushURLRequest) String() string
type GetAudioPushURLResponse ¶
type GetAudioPushURLResponse struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` // contains filtered or unexported fields }
func (*GetAudioPushURLResponse) Descriptor
deprecated
func (*GetAudioPushURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAudioPushURLResponse.ProtoReflect.Descriptor instead.
func (*GetAudioPushURLResponse) GetURL ¶
func (x *GetAudioPushURLResponse) GetURL() string
func (*GetAudioPushURLResponse) ProtoMessage ¶
func (*GetAudioPushURLResponse) ProtoMessage()
func (*GetAudioPushURLResponse) ProtoReflect ¶
func (x *GetAudioPushURLResponse) ProtoReflect() protoreflect.Message
func (*GetAudioPushURLResponse) Reset ¶
func (x *GetAudioPushURLResponse) Reset()
func (*GetAudioPushURLResponse) String ¶
func (x *GetAudioPushURLResponse) String() string
type StartAudioSendRequest ¶
type StartAudioSendRequest struct { // 设备编号 DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"` // 开对讲通道号 ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` // contains filtered or unexported fields }
func (*StartAudioSendRequest) Descriptor
deprecated
func (*StartAudioSendRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartAudioSendRequest.ProtoReflect.Descriptor instead.
func (*StartAudioSendRequest) GetChannelID ¶
func (x *StartAudioSendRequest) GetChannelID() string
func (*StartAudioSendRequest) GetDeviceID ¶
func (x *StartAudioSendRequest) GetDeviceID() string
func (*StartAudioSendRequest) ProtoMessage ¶
func (*StartAudioSendRequest) ProtoMessage()
func (*StartAudioSendRequest) ProtoReflect ¶
func (x *StartAudioSendRequest) ProtoReflect() protoreflect.Message
func (*StartAudioSendRequest) Reset ¶
func (x *StartAudioSendRequest) Reset()
func (*StartAudioSendRequest) String ¶
func (x *StartAudioSendRequest) String() string
type StopAudioSendRequest ¶
type StopAudioSendRequest struct { // 设备编号 DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"` // 开对讲通道号 ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` // contains filtered or unexported fields }
func (*StopAudioSendRequest) Descriptor
deprecated
func (*StopAudioSendRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopAudioSendRequest.ProtoReflect.Descriptor instead.
func (*StopAudioSendRequest) GetChannelID ¶
func (x *StopAudioSendRequest) GetChannelID() string
func (*StopAudioSendRequest) GetDeviceID ¶
func (x *StopAudioSendRequest) GetDeviceID() string
func (*StopAudioSendRequest) ProtoMessage ¶
func (*StopAudioSendRequest) ProtoMessage()
func (*StopAudioSendRequest) ProtoReflect ¶
func (x *StopAudioSendRequest) ProtoReflect() protoreflect.Message
func (*StopAudioSendRequest) Reset ¶
func (x *StopAudioSendRequest) Reset()
func (*StopAudioSendRequest) String ¶
func (x *StopAudioSendRequest) String() string
type UnimplementedAudioServiceServer ¶
type UnimplementedAudioServiceServer struct { }
UnimplementedAudioServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAudioServiceServer) GetAudioPushURL ¶
func (UnimplementedAudioServiceServer) GetAudioPushURL(context.Context, *GetAudioPushURLRequest) (*GetAudioPushURLResponse, error)
func (UnimplementedAudioServiceServer) StartAudioSend ¶
func (UnimplementedAudioServiceServer) StartAudioSend(context.Context, *StartAudioSendRequest) (*EmptyResponse, error)
func (UnimplementedAudioServiceServer) StopAudioSend ¶
func (UnimplementedAudioServiceServer) StopAudioSend(context.Context, *StopAudioSendRequest) (*EmptyResponse, error)
type UnsafeAudioServiceServer ¶
type UnsafeAudioServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAudioServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AudioServiceServer will result in compilation errors.