Documentation ¶
Index ¶
- Variables
- func RegisterMarkdownTextConverterServer(s *grpc.Server, srv MarkdownTextConverterServer)
- func RegisterReStructuredTextConverterServer(s *grpc.Server, srv ReStructuredTextConverterServer)
- type Format
- type MarkdownConverter
- type MarkdownConverterService
- type MarkdownTextConverterClient
- type MarkdownTextConverterServer
- type ReStructuredTextConverterClient
- type ReStructuredTextConverterServer
- type RequestConvert
- func (*RequestConvert) Descriptor() ([]byte, []int)deprecated
- func (x *RequestConvert) GetFormat() Format
- func (x *RequestConvert) GetIn() string
- func (*RequestConvert) ProtoMessage()
- func (x *RequestConvert) ProtoReflect() protoreflect.Message
- func (x *RequestConvert) Reset()
- func (x *RequestConvert) String() string
- type ResponseConvert
- type UnimplementedMarkdownTextConverterServer
- type UnimplementedReStructuredTextConverterServer
Constants ¶
This section is empty.
Variables ¶
var ( Format_name = map[int32]string{ 0: "HTML", } Format_value = map[string]int32{ "HTML": 0, } )
Enum value maps for Format.
var File_proto_text_converter_common_proto protoreflect.FileDescriptor
var File_proto_text_converter_md_proto protoreflect.FileDescriptor
var File_proto_text_converter_rst_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMarkdownTextConverterServer ¶
func RegisterMarkdownTextConverterServer(s *grpc.Server, srv MarkdownTextConverterServer)
func RegisterReStructuredTextConverterServer ¶
func RegisterReStructuredTextConverterServer(s *grpc.Server, srv ReStructuredTextConverterServer)
Types ¶
type Format ¶
type Format int32
const (
Format_HTML Format = 0
)
func (Format) Descriptor ¶
func (Format) Descriptor() protoreflect.EnumDescriptor
func (Format) EnumDescriptor
deprecated
func (Format) Number ¶
func (x Format) Number() protoreflect.EnumNumber
func (Format) Type ¶
func (Format) Type() protoreflect.EnumType
type MarkdownConverter ¶
type MarkdownConverter struct{}
type MarkdownConverterService ¶
type MarkdownConverterService struct{}
func (*MarkdownConverterService) Convert ¶
func (m *MarkdownConverterService) Convert(ctx context.Context, in *RequestConvert) (*ResponseConvert, error)
type MarkdownTextConverterClient ¶
type MarkdownTextConverterClient interface {
Convert(ctx context.Context, in *RequestConvert, opts ...grpc.CallOption) (*ResponseConvert, error)
}
MarkdownTextConverterClient is the client API for MarkdownTextConverter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMarkdownTextConverterClient ¶
func NewMarkdownTextConverterClient(cc grpc.ClientConnInterface) MarkdownTextConverterClient
type MarkdownTextConverterServer ¶
type MarkdownTextConverterServer interface {
Convert(context.Context, *RequestConvert) (*ResponseConvert, error)
}
MarkdownTextConverterServer is the server API for MarkdownTextConverter service.
type ReStructuredTextConverterClient ¶
type ReStructuredTextConverterClient interface {
Convert(ctx context.Context, in *RequestConvert, opts ...grpc.CallOption) (*ResponseConvert, error)
}
ReStructuredTextConverterClient is the client API for ReStructuredTextConverter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReStructuredTextConverterClient ¶
func NewReStructuredTextConverterClient(cc grpc.ClientConnInterface) ReStructuredTextConverterClient
type ReStructuredTextConverterServer ¶
type ReStructuredTextConverterServer interface {
Convert(context.Context, *RequestConvert) (*ResponseConvert, error)
}
ReStructuredTextConverterServer is the server API for ReStructuredTextConverter service.
type RequestConvert ¶
type RequestConvert struct { In string `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"` Format Format `protobuf:"varint,2,opt,name=format,proto3,enum=mono.text.converter.Format" json:"format,omitempty"` // contains filtered or unexported fields }
func (*RequestConvert) Descriptor
deprecated
func (*RequestConvert) Descriptor() ([]byte, []int)
Deprecated: Use RequestConvert.ProtoReflect.Descriptor instead.
func (*RequestConvert) GetFormat ¶
func (x *RequestConvert) GetFormat() Format
func (*RequestConvert) GetIn ¶
func (x *RequestConvert) GetIn() string
func (*RequestConvert) ProtoMessage ¶
func (*RequestConvert) ProtoMessage()
func (*RequestConvert) ProtoReflect ¶
func (x *RequestConvert) ProtoReflect() protoreflect.Message
func (*RequestConvert) Reset ¶
func (x *RequestConvert) Reset()
func (*RequestConvert) String ¶
func (x *RequestConvert) String() string
type ResponseConvert ¶
type ResponseConvert struct { Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` // contains filtered or unexported fields }
func (*ResponseConvert) Descriptor
deprecated
func (*ResponseConvert) Descriptor() ([]byte, []int)
Deprecated: Use ResponseConvert.ProtoReflect.Descriptor instead.
func (*ResponseConvert) GetOut ¶
func (x *ResponseConvert) GetOut() string
func (*ResponseConvert) ProtoMessage ¶
func (*ResponseConvert) ProtoMessage()
func (*ResponseConvert) ProtoReflect ¶
func (x *ResponseConvert) ProtoReflect() protoreflect.Message
func (*ResponseConvert) Reset ¶
func (x *ResponseConvert) Reset()
func (*ResponseConvert) String ¶
func (x *ResponseConvert) String() string
type UnimplementedMarkdownTextConverterServer ¶
type UnimplementedMarkdownTextConverterServer struct { }
UnimplementedMarkdownTextConverterServer can be embedded to have forward compatible implementations.
func (*UnimplementedMarkdownTextConverterServer) Convert ¶
func (*UnimplementedMarkdownTextConverterServer) Convert(context.Context, *RequestConvert) (*ResponseConvert, error)
type UnimplementedReStructuredTextConverterServer ¶
type UnimplementedReStructuredTextConverterServer struct { }
UnimplementedReStructuredTextConverterServer can be embedded to have forward compatible implementations.
func (*UnimplementedReStructuredTextConverterServer) Convert ¶
func (*UnimplementedReStructuredTextConverterServer) Convert(context.Context, *RequestConvert) (*ResponseConvert, error)