proto

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rewriter_proto protoreflect.FileDescriptor
View Source
var Rewriter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Rewriter",
	HandlerType: (*RewriterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Rewrite",
			Handler:    _Rewriter_Rewrite_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rewriter.proto",
}

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

Functions

func RegisterRewriterServer

func RegisterRewriterServer(s grpc.ServiceRegistrar, srv RewriterServer)

Types

type RewriteReply

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

func (*RewriteReply) Descriptor deprecated

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

Deprecated: Use RewriteReply.ProtoReflect.Descriptor instead.

func (*RewriteReply) GetData

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

func (*RewriteReply) GetOk

func (x *RewriteReply) GetOk() bool

func (*RewriteReply) ProtoMessage

func (*RewriteReply) ProtoMessage()

func (*RewriteReply) ProtoReflect

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

func (*RewriteReply) Reset

func (x *RewriteReply) Reset()

func (*RewriteReply) String

func (x *RewriteReply) String() string

type RewriteRequest

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

func (*RewriteRequest) Descriptor deprecated

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

Deprecated: Use RewriteRequest.ProtoReflect.Descriptor instead.

func (*RewriteRequest) GetData

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

func (*RewriteRequest) GetMetadata

func (x *RewriteRequest) GetMetadata() []byte

func (*RewriteRequest) ProtoMessage

func (*RewriteRequest) ProtoMessage()

func (*RewriteRequest) ProtoReflect

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

func (*RewriteRequest) Reset

func (x *RewriteRequest) Reset()

func (*RewriteRequest) String

func (x *RewriteRequest) String() string

type RewriterClient

type RewriterClient interface {
	Rewrite(ctx context.Context, in *RewriteRequest, opts ...grpc.CallOption) (*RewriteReply, error)
}

RewriterClient is the client API for Rewriter 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 NewRewriterClient

func NewRewriterClient(cc grpc.ClientConnInterface) RewriterClient

type RewriterServer

type RewriterServer interface {
	Rewrite(context.Context, *RewriteRequest) (*RewriteReply, error)
	// contains filtered or unexported methods
}

RewriterServer is the server API for Rewriter service. All implementations must embed UnimplementedRewriterServer for forward compatibility

type UnimplementedRewriterServer

type UnimplementedRewriterServer struct {
}

UnimplementedRewriterServer must be embedded to have forward compatible implementations.

func (UnimplementedRewriterServer) Rewrite

type UnsafeRewriterServer

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

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

Jump to

Keyboard shortcuts

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