proto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreamerService_Configure_FullMethodName = "/proto.StreamerService/Configure"
	StreamerService_Read_FullMethodName      = "/proto.StreamerService/Read"
	StreamerService_Write_FullMethodName     = "/proto.StreamerService/Write"
)

Variables

View Source
var File_streamer_proto protoreflect.FileDescriptor
View Source
var StreamerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.StreamerService",
	HandlerType: (*StreamerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Configure",
			Handler:    _StreamerService_Configure_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Read",
			Handler:       _StreamerService_Read_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Write",
			Handler:       _StreamerService_Write_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "streamer.proto",
}

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

Functions

func RegisterStreamerServiceServer

func RegisterStreamerServiceServer(s grpc.ServiceRegistrar, srv StreamerServiceServer)

Types

type Configure

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

func (*Configure) Descriptor deprecated

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

Deprecated: Use Configure.ProtoReflect.Descriptor instead.

func (*Configure) ProtoMessage

func (*Configure) ProtoMessage()

func (*Configure) ProtoReflect

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

func (*Configure) Reset

func (x *Configure) Reset()

func (*Configure) String

func (x *Configure) String() string

type Configure_Request

type Configure_Request struct {
	Path      string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	ChunkSize int64  `protobuf:"varint,2,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Configure_Request) Descriptor deprecated

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

Deprecated: Use Configure_Request.ProtoReflect.Descriptor instead.

func (*Configure_Request) GetChunkSize

func (x *Configure_Request) GetChunkSize() int64

func (*Configure_Request) GetPath

func (x *Configure_Request) GetPath() string

func (*Configure_Request) ProtoMessage

func (*Configure_Request) ProtoMessage()

func (*Configure_Request) ProtoReflect

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

func (*Configure_Request) Reset

func (x *Configure_Request) Reset()

func (*Configure_Request) String

func (x *Configure_Request) String() string

type Configure_Response

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

func (*Configure_Response) Descriptor deprecated

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

Deprecated: Use Configure_Response.ProtoReflect.Descriptor instead.

func (*Configure_Response) ProtoMessage

func (*Configure_Response) ProtoMessage()

func (*Configure_Response) ProtoReflect

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

func (*Configure_Response) Reset

func (x *Configure_Response) Reset()

func (*Configure_Response) String

func (x *Configure_Response) String() string

type Read

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

func (*Read) Descriptor deprecated

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

Deprecated: Use Read.ProtoReflect.Descriptor instead.

func (*Read) ProtoMessage

func (*Read) ProtoMessage()

func (*Read) ProtoReflect

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

func (*Read) Reset

func (x *Read) Reset()

func (*Read) String

func (x *Read) String() string

type Read_Request

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

func (*Read_Request) Descriptor deprecated

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

Deprecated: Use Read_Request.ProtoReflect.Descriptor instead.

func (*Read_Request) ProtoMessage

func (*Read_Request) ProtoMessage()

func (*Read_Request) ProtoReflect

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

func (*Read_Request) Reset

func (x *Read_Request) Reset()

func (*Read_Request) String

func (x *Read_Request) String() string

type Read_ResponseChunk

type Read_ResponseChunk struct {
	ReadBytes []byte `protobuf:"bytes,1,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*Read_ResponseChunk) Descriptor deprecated

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

Deprecated: Use Read_ResponseChunk.ProtoReflect.Descriptor instead.

func (*Read_ResponseChunk) GetReadBytes

func (x *Read_ResponseChunk) GetReadBytes() []byte

func (*Read_ResponseChunk) ProtoMessage

func (*Read_ResponseChunk) ProtoMessage()

func (*Read_ResponseChunk) ProtoReflect

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

func (*Read_ResponseChunk) Reset

func (x *Read_ResponseChunk) Reset()

func (*Read_ResponseChunk) String

func (x *Read_ResponseChunk) String() string

type StreamerServiceClient

type StreamerServiceClient interface {
	Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error)
	Read(ctx context.Context, in *Read_Request, opts ...grpc.CallOption) (StreamerService_ReadClient, error)
	Write(ctx context.Context, opts ...grpc.CallOption) (StreamerService_WriteClient, error)
}

StreamerServiceClient is the client API for StreamerService 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 StreamerServiceServer

type StreamerServiceServer interface {
	Configure(context.Context, *Configure_Request) (*Configure_Response, error)
	Read(*Read_Request, StreamerService_ReadServer) error
	Write(StreamerService_WriteServer) error
	// contains filtered or unexported methods
}

StreamerServiceServer is the server API for StreamerService service. All implementations must embed UnimplementedStreamerServiceServer for forward compatibility

type StreamerService_ReadClient

type StreamerService_ReadClient interface {
	Recv() (*Read_ResponseChunk, error)
	grpc.ClientStream
}

type StreamerService_ReadServer

type StreamerService_ReadServer interface {
	Send(*Read_ResponseChunk) error
	grpc.ServerStream
}

type StreamerService_WriteClient

type StreamerService_WriteClient interface {
	Send(*Write_RequestChunk) error
	CloseAndRecv() (*Write_Response, error)
	grpc.ClientStream
}

type StreamerService_WriteServer

type StreamerService_WriteServer interface {
	SendAndClose(*Write_Response) error
	Recv() (*Write_RequestChunk, error)
	grpc.ServerStream
}

type UnimplementedStreamerServiceServer

type UnimplementedStreamerServiceServer struct {
}

UnimplementedStreamerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStreamerServiceServer) Configure

func (UnimplementedStreamerServiceServer) Read

func (UnimplementedStreamerServiceServer) Write

type UnsafeStreamerServiceServer

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

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

type Write

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

func (*Write) Descriptor deprecated

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

Deprecated: Use Write.ProtoReflect.Descriptor instead.

func (*Write) ProtoMessage

func (*Write) ProtoMessage()

func (*Write) ProtoReflect

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

func (*Write) Reset

func (x *Write) Reset()

func (*Write) String

func (x *Write) String() string

type Write_RequestChunk

type Write_RequestChunk struct {
	BytesToWrite []byte `protobuf:"bytes,1,opt,name=bytes_to_write,json=bytesToWrite,proto3" json:"bytes_to_write,omitempty"`
	// contains filtered or unexported fields
}

func (*Write_RequestChunk) Descriptor deprecated

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

Deprecated: Use Write_RequestChunk.ProtoReflect.Descriptor instead.

func (*Write_RequestChunk) GetBytesToWrite

func (x *Write_RequestChunk) GetBytesToWrite() []byte

func (*Write_RequestChunk) ProtoMessage

func (*Write_RequestChunk) ProtoMessage()

func (*Write_RequestChunk) ProtoReflect

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

func (*Write_RequestChunk) Reset

func (x *Write_RequestChunk) Reset()

func (*Write_RequestChunk) String

func (x *Write_RequestChunk) String() string

type Write_Response

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

func (*Write_Response) Descriptor deprecated

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

Deprecated: Use Write_Response.ProtoReflect.Descriptor instead.

func (*Write_Response) ProtoMessage

func (*Write_Response) ProtoMessage()

func (*Write_Response) ProtoReflect

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

func (*Write_Response) Reset

func (x *Write_Response) Reset()

func (*Write_Response) String

func (x *Write_Response) String() string

Jump to

Keyboard shortcuts

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