proto_v1

package
v0.0.0-...-bf30131 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AudioStripper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "AudioStripper",
	HandlerType: (*AudioStripperServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ExtractAudio",
			Handler:       _AudioStripper_ExtractAudio_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/proto/audiostrippersvc/v1/audiostrippersvc.proto",
}

AudioStripper_ServiceDesc is the grpc.ServiceDesc for AudioStripper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_proto_audiostrippersvc_v1_audiostrippersvc_proto protoreflect.FileDescriptor

Functions

func RegisterAudioStripperServer

func RegisterAudioStripperServer(s grpc.ServiceRegistrar, srv AudioStripperServer)

Types

type AudioData

type AudioData struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Message to represent chunks of audio data being sent back to the client.

func (*AudioData) Descriptor deprecated

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

Deprecated: Use AudioData.ProtoReflect.Descriptor instead.

func (*AudioData) GetData

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

func (*AudioData) ProtoMessage

func (*AudioData) ProtoMessage()

func (*AudioData) ProtoReflect

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

func (*AudioData) Reset

func (x *AudioData) Reset()

func (*AudioData) String

func (x *AudioData) String() string

type AudioStripperClient

type AudioStripperClient interface {
	ExtractAudio(ctx context.Context, opts ...grpc.CallOption) (AudioStripper_ExtractAudioClient, error)
}

AudioStripperClient is the client API for AudioStripper 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.

type AudioStripperServer

type AudioStripperServer interface {
	ExtractAudio(AudioStripper_ExtractAudioServer) error
	// contains filtered or unexported methods
}

AudioStripperServer is the server API for AudioStripper service. All implementations must embed UnimplementedAudioStripperServer for forward compatibility

type AudioStripper_ExtractAudioClient

type AudioStripper_ExtractAudioClient interface {
	Send(*VideoData) error
	Recv() (*AudioData, error)
	grpc.ClientStream
}

type AudioStripper_ExtractAudioServer

type AudioStripper_ExtractAudioServer interface {
	Send(*AudioData) error
	Recv() (*VideoData, error)
	grpc.ServerStream
}

type UnimplementedAudioStripperServer

type UnimplementedAudioStripperServer struct {
}

UnimplementedAudioStripperServer must be embedded to have forward compatible implementations.

func (UnimplementedAudioStripperServer) ExtractAudio

type UnsafeAudioStripperServer

type UnsafeAudioStripperServer interface {
	// contains filtered or unexported methods
}

UnsafeAudioStripperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AudioStripperServer will result in compilation errors.

type VideoData

type VideoData struct {
	SampleRate string `protobuf:"bytes,1,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
	Data       []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Message to represent chunks of video data being sent to the server.

func (*VideoData) Descriptor deprecated

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

Deprecated: Use VideoData.ProtoReflect.Descriptor instead.

func (*VideoData) GetData

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

func (*VideoData) GetSampleRate

func (x *VideoData) GetSampleRate() string

func (*VideoData) ProtoMessage

func (*VideoData) ProtoMessage()

func (*VideoData) ProtoReflect

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

func (*VideoData) Reset

func (x *VideoData) Reset()

func (*VideoData) String

func (x *VideoData) String() string

Jump to

Keyboard shortcuts

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