Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterParserServiceServer(s grpc.ServiceRegistrar, srv ParserServiceServer)
- type Cell
- func (*Cell) Descriptor() ([]byte, []int)deprecated
- func (x *Cell) GetKind() CellKind
- func (x *Cell) GetLanguageId() string
- func (x *Cell) GetMetadata() map[string]string
- func (x *Cell) GetTextRange() *TextRange
- func (x *Cell) GetValue() string
- func (*Cell) ProtoMessage()
- func (x *Cell) ProtoReflect() protoreflect.Message
- func (x *Cell) Reset()
- func (x *Cell) String() string
- type CellKind
- type DeserializeRequest
- func (*DeserializeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeserializeRequest) GetSource() []byte
- func (*DeserializeRequest) ProtoMessage()
- func (x *DeserializeRequest) ProtoReflect() protoreflect.Message
- func (x *DeserializeRequest) Reset()
- func (x *DeserializeRequest) String() string
- type DeserializeResponse
- func (*DeserializeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeserializeResponse) GetNotebook() *Notebook
- func (*DeserializeResponse) ProtoMessage()
- func (x *DeserializeResponse) ProtoReflect() protoreflect.Message
- func (x *DeserializeResponse) Reset()
- func (x *DeserializeResponse) String() string
- type Frontmatter
- type Notebook
- func (*Notebook) Descriptor() ([]byte, []int)deprecated
- func (x *Notebook) GetCells() []*Cell
- func (x *Notebook) GetFrontmatter() *Frontmatter
- func (x *Notebook) GetMetadata() map[string]string
- func (*Notebook) ProtoMessage()
- func (x *Notebook) ProtoReflect() protoreflect.Message
- func (x *Notebook) Reset()
- func (x *Notebook) String() string
- type ParserServiceClient
- type ParserServiceServer
- type SerializeRequest
- type SerializeResponse
- type TextRange
- type UnimplementedParserServiceServer
- type UnsafeParserServiceServer
Constants ¶
const ( ParserService_Deserialize_FullMethodName = "/runme.parser.v1.ParserService/Deserialize" ParserService_Serialize_FullMethodName = "/runme.parser.v1.ParserService/Serialize" )
Variables ¶
var ( CellKind_name = map[int32]string{ 0: "CELL_KIND_UNSPECIFIED", 1: "CELL_KIND_MARKUP", 2: "CELL_KIND_CODE", } CellKind_value = map[string]int32{ "CELL_KIND_UNSPECIFIED": 0, "CELL_KIND_MARKUP": 1, "CELL_KIND_CODE": 2, } )
Enum value maps for CellKind.
var File_runme_parser_v1_parser_proto protoreflect.FileDescriptor
var ParserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "runme.parser.v1.ParserService", HandlerType: (*ParserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Deserialize", Handler: _ParserService_Deserialize_Handler, }, { MethodName: "Serialize", Handler: _ParserService_Serialize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "runme/parser/v1/parser.proto", }
ParserService_ServiceDesc is the grpc.ServiceDesc for ParserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterParserServiceServer ¶
func RegisterParserServiceServer(s grpc.ServiceRegistrar, srv ParserServiceServer)
Types ¶
type Cell ¶
type Cell struct { Kind CellKind `protobuf:"varint,1,opt,name=kind,proto3,enum=runme.parser.v1.CellKind" json:"kind,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` LanguageId string `protobuf:"bytes,3,opt,name=language_id,json=languageId,proto3" json:"language_id,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ TextRange *TextRange `protobuf:"bytes,5,opt,name=text_range,json=textRange,proto3" json:"text_range,omitempty"` // contains filtered or unexported fields }
func (*Cell) Descriptor
deprecated
func (*Cell) GetLanguageId ¶
func (*Cell) GetMetadata ¶
func (*Cell) GetTextRange ¶ added in v1.0.2
func (*Cell) ProtoMessage ¶
func (*Cell) ProtoMessage()
func (*Cell) ProtoReflect ¶
func (x *Cell) ProtoReflect() protoreflect.Message
type CellKind ¶
type CellKind int32
func (CellKind) Descriptor ¶
func (CellKind) Descriptor() protoreflect.EnumDescriptor
func (CellKind) EnumDescriptor
deprecated
func (CellKind) Number ¶
func (x CellKind) Number() protoreflect.EnumNumber
func (CellKind) Type ¶
func (CellKind) Type() protoreflect.EnumType
type DeserializeRequest ¶
type DeserializeRequest struct { Source []byte `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*DeserializeRequest) Descriptor
deprecated
func (*DeserializeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeserializeRequest.ProtoReflect.Descriptor instead.
func (*DeserializeRequest) GetSource ¶
func (x *DeserializeRequest) GetSource() []byte
func (*DeserializeRequest) ProtoMessage ¶
func (*DeserializeRequest) ProtoMessage()
func (*DeserializeRequest) ProtoReflect ¶
func (x *DeserializeRequest) ProtoReflect() protoreflect.Message
func (*DeserializeRequest) Reset ¶
func (x *DeserializeRequest) Reset()
func (*DeserializeRequest) String ¶
func (x *DeserializeRequest) String() string
type DeserializeResponse ¶
type DeserializeResponse struct { Notebook *Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"` // contains filtered or unexported fields }
func (*DeserializeResponse) Descriptor
deprecated
func (*DeserializeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeserializeResponse.ProtoReflect.Descriptor instead.
func (*DeserializeResponse) GetNotebook ¶
func (x *DeserializeResponse) GetNotebook() *Notebook
func (*DeserializeResponse) ProtoMessage ¶
func (*DeserializeResponse) ProtoMessage()
func (*DeserializeResponse) ProtoReflect ¶
func (x *DeserializeResponse) ProtoReflect() protoreflect.Message
func (*DeserializeResponse) Reset ¶
func (x *DeserializeResponse) Reset()
func (*DeserializeResponse) String ¶
func (x *DeserializeResponse) String() string
type Frontmatter ¶ added in v1.2.1
type Frontmatter struct { Shell string `protobuf:"bytes,1,opt,name=shell,proto3" json:"shell,omitempty"` Cwd string `protobuf:"bytes,2,opt,name=cwd,proto3" json:"cwd,omitempty"` // contains filtered or unexported fields }
func (*Frontmatter) Descriptor
deprecated
added in
v1.2.1
func (*Frontmatter) Descriptor() ([]byte, []int)
Deprecated: Use Frontmatter.ProtoReflect.Descriptor instead.
func (*Frontmatter) GetCwd ¶ added in v1.2.2
func (x *Frontmatter) GetCwd() string
func (*Frontmatter) GetShell ¶ added in v1.2.1
func (x *Frontmatter) GetShell() string
func (*Frontmatter) ProtoMessage ¶ added in v1.2.1
func (*Frontmatter) ProtoMessage()
func (*Frontmatter) ProtoReflect ¶ added in v1.2.1
func (x *Frontmatter) ProtoReflect() protoreflect.Message
func (*Frontmatter) Reset ¶ added in v1.2.1
func (x *Frontmatter) Reset()
func (*Frontmatter) String ¶ added in v1.2.1
func (x *Frontmatter) String() string
type Notebook ¶
type Notebook struct { Cells []*Cell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Frontmatter *Frontmatter `protobuf:"bytes,3,opt,name=frontmatter,proto3" json:"frontmatter,omitempty"` // contains filtered or unexported fields }
func (*Notebook) Descriptor
deprecated
func (*Notebook) GetFrontmatter ¶ added in v1.2.1
func (x *Notebook) GetFrontmatter() *Frontmatter
func (*Notebook) GetMetadata ¶
func (*Notebook) ProtoMessage ¶
func (*Notebook) ProtoMessage()
func (*Notebook) ProtoReflect ¶
func (x *Notebook) ProtoReflect() protoreflect.Message
type ParserServiceClient ¶
type ParserServiceClient interface { Deserialize(ctx context.Context, in *DeserializeRequest, opts ...grpc.CallOption) (*DeserializeResponse, error) Serialize(ctx context.Context, in *SerializeRequest, opts ...grpc.CallOption) (*SerializeResponse, error) }
ParserServiceClient is the client API for ParserService 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 NewParserServiceClient ¶
func NewParserServiceClient(cc grpc.ClientConnInterface) ParserServiceClient
type ParserServiceServer ¶
type ParserServiceServer interface { Deserialize(context.Context, *DeserializeRequest) (*DeserializeResponse, error) Serialize(context.Context, *SerializeRequest) (*SerializeResponse, error) // contains filtered or unexported methods }
ParserServiceServer is the server API for ParserService service. All implementations must embed UnimplementedParserServiceServer for forward compatibility
type SerializeRequest ¶
type SerializeRequest struct { Notebook *Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"` // contains filtered or unexported fields }
func (*SerializeRequest) Descriptor
deprecated
func (*SerializeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SerializeRequest.ProtoReflect.Descriptor instead.
func (*SerializeRequest) GetNotebook ¶
func (x *SerializeRequest) GetNotebook() *Notebook
func (*SerializeRequest) ProtoMessage ¶
func (*SerializeRequest) ProtoMessage()
func (*SerializeRequest) ProtoReflect ¶
func (x *SerializeRequest) ProtoReflect() protoreflect.Message
func (*SerializeRequest) Reset ¶
func (x *SerializeRequest) Reset()
func (*SerializeRequest) String ¶
func (x *SerializeRequest) String() string
type SerializeResponse ¶
type SerializeResponse struct { Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SerializeResponse) Descriptor
deprecated
func (*SerializeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SerializeResponse.ProtoReflect.Descriptor instead.
func (*SerializeResponse) GetResult ¶
func (x *SerializeResponse) GetResult() []byte
func (*SerializeResponse) ProtoMessage ¶
func (*SerializeResponse) ProtoMessage()
func (*SerializeResponse) ProtoReflect ¶
func (x *SerializeResponse) ProtoReflect() protoreflect.Message
func (*SerializeResponse) Reset ¶
func (x *SerializeResponse) Reset()
func (*SerializeResponse) String ¶
func (x *SerializeResponse) String() string
type TextRange ¶ added in v1.0.2
type TextRange struct { Start uint32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` End uint32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*TextRange) Descriptor
deprecated
added in
v1.0.2
func (*TextRange) ProtoMessage ¶ added in v1.0.2
func (*TextRange) ProtoMessage()
func (*TextRange) ProtoReflect ¶ added in v1.0.2
func (x *TextRange) ProtoReflect() protoreflect.Message
type UnimplementedParserServiceServer ¶
type UnimplementedParserServiceServer struct { }
UnimplementedParserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedParserServiceServer) Deserialize ¶
func (UnimplementedParserServiceServer) Deserialize(context.Context, *DeserializeRequest) (*DeserializeResponse, error)
func (UnimplementedParserServiceServer) Serialize ¶
func (UnimplementedParserServiceServer) Serialize(context.Context, *SerializeRequest) (*SerializeResponse, error)
type UnsafeParserServiceServer ¶
type UnsafeParserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeParserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParserServiceServer will result in compilation errors.