Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_renderer_proto protoreflect.FileDescriptor
var Renderer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "renderer.Renderer", HandlerType: (*RendererServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Render", Handler: _Renderer_Render_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "renderer.proto", }
Renderer_ServiceDesc is the grpc.ServiceDesc for Renderer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRendererServer ¶
func RegisterRendererServer(s grpc.ServiceRegistrar, srv RendererServer)
Types ¶
type RenderReply ¶
type RenderReply struct { Html string `protobuf:"bytes,1,opt,name=html,proto3" json:"html,omitempty"` // contains filtered or unexported fields }
func (*RenderReply) Descriptor
deprecated
func (*RenderReply) Descriptor() ([]byte, []int)
Deprecated: Use RenderReply.ProtoReflect.Descriptor instead.
func (*RenderReply) GetHtml ¶
func (x *RenderReply) GetHtml() string
func (*RenderReply) ProtoMessage ¶
func (*RenderReply) ProtoMessage()
func (*RenderReply) ProtoReflect ¶
func (x *RenderReply) ProtoReflect() protoreflect.Message
func (*RenderReply) Reset ¶
func (x *RenderReply) Reset()
func (*RenderReply) String ¶
func (x *RenderReply) String() string
type RenderRequest ¶
type RenderRequest struct { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` // contains filtered or unexported fields }
func (*RenderRequest) Descriptor
deprecated
func (*RenderRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenderRequest.ProtoReflect.Descriptor instead.
func (*RenderRequest) GetSrc ¶
func (x *RenderRequest) GetSrc() string
func (*RenderRequest) ProtoMessage ¶
func (*RenderRequest) ProtoMessage()
func (*RenderRequest) ProtoReflect ¶
func (x *RenderRequest) ProtoReflect() protoreflect.Message
func (*RenderRequest) Reset ¶
func (x *RenderRequest) Reset()
func (*RenderRequest) String ¶
func (x *RenderRequest) String() string
type RendererClient ¶
type RendererClient interface {
Render(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderReply, error)
}
RendererClient is the client API for Renderer 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 NewRendererClient ¶
func NewRendererClient(cc grpc.ClientConnInterface) RendererClient
type RendererServer ¶
type RendererServer interface { Render(context.Context, *RenderRequest) (*RenderReply, error) // contains filtered or unexported methods }
RendererServer is the server API for Renderer service. All implementations must embed UnimplementedRendererServer for forward compatibility
type UnimplementedRendererServer ¶
type UnimplementedRendererServer struct { }
UnimplementedRendererServer must be embedded to have forward compatible implementations.
func (UnimplementedRendererServer) Render ¶
func (UnimplementedRendererServer) Render(context.Context, *RenderRequest) (*RenderReply, error)
type UnsafeRendererServer ¶
type UnsafeRendererServer interface {
// contains filtered or unexported methods
}
UnsafeRendererServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RendererServer will result in compilation errors.