Documentation ¶
Index ¶
- Variables
- func RegisterAdaRenderServiceServer(s *grpc.Server, srv AdaRenderServiceServer)
- type AdaRenderServiceClient
- type AdaRenderServiceServer
- type AdaRenderService_RenderClient
- type AdaRenderService_RenderServer
- type HTMLData
- type HTMLStream
- func (*HTMLStream) Descriptor() ([]byte, []int)deprecated
- func (x *HTMLStream) GetCurLength() int32
- func (x *HTMLStream) GetCurStart() int32
- func (x *HTMLStream) GetData() []byte
- func (x *HTMLStream) GetError() string
- func (x *HTMLStream) GetHashData() string
- func (x *HTMLStream) GetHtmlData() *HTMLData
- func (x *HTMLStream) GetTotalHashData() string
- func (x *HTMLStream) GetTotalLength() int32
- func (*HTMLStream) ProtoMessage()
- func (x *HTMLStream) ProtoReflect() protoreflect.Message
- func (x *HTMLStream) Reset()
- func (x *HTMLStream) String() string
- type MarkdownData
- func (*MarkdownData) Descriptor() ([]byte, []int)deprecated
- func (x *MarkdownData) GetBinaryData() map[string][]byte
- func (x *MarkdownData) GetStrData() string
- func (x *MarkdownData) GetTemplateData() string
- func (x *MarkdownData) GetTemplateName() string
- func (*MarkdownData) ProtoMessage()
- func (x *MarkdownData) ProtoReflect() protoreflect.Message
- func (x *MarkdownData) Reset()
- func (x *MarkdownData) String() string
- type MarkdownStream
- func (*MarkdownStream) Descriptor() ([]byte, []int)deprecated
- func (x *MarkdownStream) GetCurLength() int32
- func (x *MarkdownStream) GetCurStart() int32
- func (x *MarkdownStream) GetData() []byte
- func (x *MarkdownStream) GetError() string
- func (x *MarkdownStream) GetHashData() string
- func (x *MarkdownStream) GetMarkdownData() *MarkdownData
- func (x *MarkdownStream) GetToken() string
- func (x *MarkdownStream) GetTotalHashData() string
- func (x *MarkdownStream) GetTotalLength() int32
- func (*MarkdownStream) ProtoMessage()
- func (x *MarkdownStream) ProtoReflect() protoreflect.Message
- func (x *MarkdownStream) Reset()
- func (x *MarkdownStream) String() string
- type UnimplementedAdaRenderServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_adarender_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdaRenderServiceServer ¶
func RegisterAdaRenderServiceServer(s *grpc.Server, srv AdaRenderServiceServer)
Types ¶
type AdaRenderServiceClient ¶
type AdaRenderServiceClient interface { // render - render markdown Render(ctx context.Context, opts ...grpc.CallOption) (AdaRenderService_RenderClient, error) }
AdaRenderServiceClient is the client API for AdaRenderService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdaRenderServiceClient ¶
func NewAdaRenderServiceClient(cc grpc.ClientConnInterface) AdaRenderServiceClient
type AdaRenderServiceServer ¶
type AdaRenderServiceServer interface { // render - render markdown Render(AdaRenderService_RenderServer) error }
AdaRenderServiceServer is the server API for AdaRenderService service.
type AdaRenderService_RenderClient ¶
type AdaRenderService_RenderClient interface { Send(*MarkdownStream) error Recv() (*HTMLStream, error) grpc.ClientStream }
type AdaRenderService_RenderServer ¶
type AdaRenderService_RenderServer interface { Send(*HTMLStream) error Recv() (*MarkdownStream, error) grpc.ServerStream }
type HTMLData ¶
type HTMLData struct { // strData - HTML string StrData string `protobuf:"bytes,1,opt,name=strData,proto3" json:"strData,omitempty"` // binaryData - binary data, it's like images, css file BinaryData map[string][]byte `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
HTMLData - HTML data
func (*HTMLData) Descriptor
deprecated
func (*HTMLData) GetBinaryData ¶
func (*HTMLData) GetStrData ¶
func (*HTMLData) ProtoMessage ¶
func (*HTMLData) ProtoMessage()
func (*HTMLData) ProtoReflect ¶ added in v0.3.2
func (x *HTMLData) ProtoReflect() protoreflect.Message
type HTMLStream ¶
type HTMLStream struct { // totalLength - If the message is too long, it will send data in multiple msg, this is the total length. TotalLength int32 `protobuf:"varint,1,opt,name=totalLength,proto3" json:"totalLength,omitempty"` // curStart - The starting point of the current data (in bytes). CurStart int32 `protobuf:"varint,2,opt,name=curStart,proto3" json:"curStart,omitempty"` // curLength - The length of the current data (in bytes). CurLength int32 `protobuf:"varint,3,opt,name=curLength,proto3" json:"curLength,omitempty"` // hashData - This is the hash of each paragraph. HashData string `protobuf:"bytes,4,opt,name=hashData,proto3" json:"hashData,omitempty"` // totalHashData - If multiple messages return data, this is the hash value of all data, only sent in the last message. TotalHashData string `protobuf:"bytes,5,opt,name=totalHashData,proto3" json:"totalHashData,omitempty"` // data - binary data Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // error - error string Error string `protobuf:"bytes,100,opt,name=error,proto3" json:"error,omitempty"` // markdownData - If the data does not exceed 4mb, this is the data that is directly available. HtmlData *HTMLData `protobuf:"bytes,200,opt,name=htmlData,proto3" json:"htmlData,omitempty"` // contains filtered or unexported fields }
HTMLStream - HTML data stream
func (*HTMLStream) Descriptor
deprecated
func (*HTMLStream) Descriptor() ([]byte, []int)
Deprecated: Use HTMLStream.ProtoReflect.Descriptor instead.
func (*HTMLStream) GetCurLength ¶
func (x *HTMLStream) GetCurLength() int32
func (*HTMLStream) GetCurStart ¶
func (x *HTMLStream) GetCurStart() int32
func (*HTMLStream) GetData ¶
func (x *HTMLStream) GetData() []byte
func (*HTMLStream) GetError ¶
func (x *HTMLStream) GetError() string
func (*HTMLStream) GetHashData ¶
func (x *HTMLStream) GetHashData() string
func (*HTMLStream) GetHtmlData ¶
func (x *HTMLStream) GetHtmlData() *HTMLData
func (*HTMLStream) GetTotalHashData ¶
func (x *HTMLStream) GetTotalHashData() string
func (*HTMLStream) GetTotalLength ¶
func (x *HTMLStream) GetTotalLength() int32
func (*HTMLStream) ProtoMessage ¶
func (*HTMLStream) ProtoMessage()
func (*HTMLStream) ProtoReflect ¶ added in v0.3.2
func (x *HTMLStream) ProtoReflect() protoreflect.Message
func (*HTMLStream) Reset ¶
func (x *HTMLStream) Reset()
func (*HTMLStream) String ¶
func (x *HTMLStream) String() string
type MarkdownData ¶
type MarkdownData struct { // strData - markdown string StrData string `protobuf:"bytes,1,opt,name=strData,proto3" json:"strData,omitempty"` // binaryData - binary data, it's like images BinaryData map[string][]byte `` /* 161-byte string literal not displayed */ // templateName - template Name TemplateName string `protobuf:"bytes,10,opt,name=templateName,proto3" json:"templateName,omitempty"` // templateData - template data TemplateData string `protobuf:"bytes,11,opt,name=templateData,proto3" json:"templateData,omitempty"` // contains filtered or unexported fields }
MarkdownData - markdown data
func (*MarkdownData) Descriptor
deprecated
func (*MarkdownData) Descriptor() ([]byte, []int)
Deprecated: Use MarkdownData.ProtoReflect.Descriptor instead.
func (*MarkdownData) GetBinaryData ¶
func (x *MarkdownData) GetBinaryData() map[string][]byte
func (*MarkdownData) GetStrData ¶
func (x *MarkdownData) GetStrData() string
func (*MarkdownData) GetTemplateData ¶
func (x *MarkdownData) GetTemplateData() string
func (*MarkdownData) GetTemplateName ¶
func (x *MarkdownData) GetTemplateName() string
func (*MarkdownData) ProtoMessage ¶
func (*MarkdownData) ProtoMessage()
func (*MarkdownData) ProtoReflect ¶ added in v0.3.2
func (x *MarkdownData) ProtoReflect() protoreflect.Message
func (*MarkdownData) Reset ¶
func (x *MarkdownData) Reset()
func (*MarkdownData) String ¶
func (x *MarkdownData) String() string
type MarkdownStream ¶
type MarkdownStream struct { // totalLength - If the message is too long, it will send data in multiple msg, this is the total length. TotalLength int32 `protobuf:"varint,1,opt,name=totalLength,proto3" json:"totalLength,omitempty"` // curStart - The starting point of the current data (in bytes). CurStart int32 `protobuf:"varint,2,opt,name=curStart,proto3" json:"curStart,omitempty"` // curLength - The length of the current data (in bytes). CurLength int32 `protobuf:"varint,3,opt,name=curLength,proto3" json:"curLength,omitempty"` // hashData - This is the hash of each paragraph. HashData string `protobuf:"bytes,4,opt,name=hashData,proto3" json:"hashData,omitempty"` // totalHashData - If multiple messages return data, this is the hash value of all data, only sent in the last message. TotalHashData string `protobuf:"bytes,5,opt,name=totalHashData,proto3" json:"totalHashData,omitempty"` // data - binary data Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // error - error string Error string `protobuf:"bytes,100,opt,name=error,proto3" json:"error,omitempty"` // markdownData - If the data does not exceed 4mb, this is the data that is directly available. MarkdownData *MarkdownData `protobuf:"bytes,200,opt,name=markdownData,proto3" json:"markdownData,omitempty"` // token - API token Token string `protobuf:"bytes,300,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
MarkdownStream - markdown stream data
func (*MarkdownStream) Descriptor
deprecated
func (*MarkdownStream) Descriptor() ([]byte, []int)
Deprecated: Use MarkdownStream.ProtoReflect.Descriptor instead.
func (*MarkdownStream) GetCurLength ¶
func (x *MarkdownStream) GetCurLength() int32
func (*MarkdownStream) GetCurStart ¶
func (x *MarkdownStream) GetCurStart() int32
func (*MarkdownStream) GetData ¶
func (x *MarkdownStream) GetData() []byte
func (*MarkdownStream) GetError ¶
func (x *MarkdownStream) GetError() string
func (*MarkdownStream) GetHashData ¶
func (x *MarkdownStream) GetHashData() string
func (*MarkdownStream) GetMarkdownData ¶
func (x *MarkdownStream) GetMarkdownData() *MarkdownData
func (*MarkdownStream) GetToken ¶
func (x *MarkdownStream) GetToken() string
func (*MarkdownStream) GetTotalHashData ¶
func (x *MarkdownStream) GetTotalHashData() string
func (*MarkdownStream) GetTotalLength ¶
func (x *MarkdownStream) GetTotalLength() int32
func (*MarkdownStream) ProtoMessage ¶
func (*MarkdownStream) ProtoMessage()
func (*MarkdownStream) ProtoReflect ¶ added in v0.3.2
func (x *MarkdownStream) ProtoReflect() protoreflect.Message
func (*MarkdownStream) Reset ¶
func (x *MarkdownStream) Reset()
func (*MarkdownStream) String ¶
func (x *MarkdownStream) String() string
type UnimplementedAdaRenderServiceServer ¶ added in v0.3.2
type UnimplementedAdaRenderServiceServer struct { }
UnimplementedAdaRenderServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdaRenderServiceServer) Render ¶ added in v0.3.2
func (*UnimplementedAdaRenderServiceServer) Render(AdaRenderService_RenderServer) error