astproto

package
v0.0.0-...-3971e8e Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapTypeConsecutive_name = map[int32]string{
		0: "BOTH",
		1: "CONSECUTIVE",
		2: "NONCONSECUTIVE",
	}
	MapTypeConsecutive_value = map[string]int32{
		"BOTH":           0,
		"CONSECUTIVE":    1,
		"NONCONSECUTIVE": 2,
	}
)

Enum value maps for MapTypeConsecutive.

View Source
var Evaler_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "astproto.Evaler",
	HandlerType: (*EvalerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EvalProgram",
			Handler:    _Evaler_EvalProgram_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services.proto",
}

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

View Source
var ExternalProvider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "astproto.ExternalProvider",
	HandlerType: (*ExternalProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Key",
			Handler:    _ExternalProvider_Call_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services.proto",
}

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

View Source
var File_general_proto protoreflect.FileDescriptor
View Source
var File_services_proto protoreflect.FileDescriptor
View Source
var Parser_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "astproto.Parser",
	HandlerType: (*ParserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Parse",
			Handler:    _Parser_Parse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services.proto",
}

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

View Source
var Renderer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "astproto.Renderer",
	HandlerType: (*RendererServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Render",
			Handler:    _Renderer_Render_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services.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)

View Source
var RuneSymbol = &Symbol{
	O: &Origin{
		Filepath: "builtin/rune",
	},
	Name: "rune",
}
View Source
var Verifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "astproto.Verifier",
	HandlerType: (*VerifierServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Verify",
			Handler:    _Verifier_Verify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services.proto",
}

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

Functions

func Hash

func Hash(m proto.Message) ([64]byte, error)

func OriginErrorf

func OriginErrorf(o *Origin, format string, v ...interface{}) error

func OriginString

func OriginString(o *Origin) string

func RegisterEvalerServer

func RegisterEvalerServer(s grpc.ServiceRegistrar, srv EvalerServer)

func RegisterExternalProviderServer

func RegisterExternalProviderServer(s grpc.ServiceRegistrar, srv ExternalProviderServer)

func RegisterParserServer

func RegisterParserServer(s grpc.ServiceRegistrar, srv ParserServer)

func RegisterRendererServer

func RegisterRendererServer(s grpc.ServiceRegistrar, srv RendererServer)

func RegisterVerifierServer

func RegisterVerifierServer(s grpc.ServiceRegistrar, srv VerifierServer)

func ToUUID

func ToUUID(id *UUID) (uuid.UUID, error)

Types

type Block

type Block struct {
	O       *Origin   `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	T       *CallType `protobuf:"bytes,3,opt,name=t,proto3" json:"t,omitempty"`
	Name    string    `protobuf:"bytes,4,opt,name=N,proto3" json:"N,omitempty"`
	Content []*Node   `protobuf:"bytes,5,rep,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Block) GetContent

func (x *Block) GetContent() []*Node

func (*Block) GetName

func (x *Block) GetName() string

func (*Block) GetO

func (x *Block) GetO() *Origin

func (*Block) GetT

func (x *Block) GetT() *CallType

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockAsType

type BlockAsType struct {
	O       *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType  *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	Content *Block  `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockAsType) Descriptor deprecated

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

Deprecated: Use BlockAsType.ProtoReflect.Descriptor instead.

func (*BlockAsType) GetContent

func (x *BlockAsType) GetContent() *Block

func (*BlockAsType) GetIsType

func (x *BlockAsType) GetIsType() *Zero

func (*BlockAsType) GetO

func (x *BlockAsType) GetO() *Origin

func (*BlockAsType) ProtoMessage

func (*BlockAsType) ProtoMessage()

func (*BlockAsType) ProtoReflect

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

func (*BlockAsType) Reset

func (x *BlockAsType) Reset()

func (*BlockAsType) String

func (x *BlockAsType) String() string

type Call

type Call struct {
	O    *Origin   `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	T    *CallType `protobuf:"bytes,2,opt,name=t,proto3" json:"t,omitempty"`
	Self *Node     `protobuf:"bytes,3,opt,name=self,proto3" json:"self,omitempty"`
	Ee   *Node     `protobuf:"bytes,4,opt,name=ee,proto3" json:"ee,omitempty"`
	Arg  *Node     `protobuf:"bytes,5,opt,name=arg,proto3" json:"arg,omitempty"`
	// contains filtered or unexported fields
}

func (*Call) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Call) GetArg

func (x *Call) GetArg() *Node

func (*Call) GetEe

func (x *Call) GetEe() *Node

func (*Call) GetO

func (x *Call) GetO() *Origin

func (*Call) GetSelf

func (x *Call) GetSelf() *Node

func (*Call) GetT

func (x *Call) GetT() *CallType

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

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

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

type CallArg

type CallArg struct {
	Id   *UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Call *Call `protobuf:"bytes,2,opt,name=call,proto3" json:"call,omitempty"`
	// contains filtered or unexported fields
}

func (*CallArg) Descriptor deprecated

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

Deprecated: Use CallArg.ProtoReflect.Descriptor instead.

func (*CallArg) GetCall

func (x *CallArg) GetCall() *Call

func (*CallArg) GetId

func (x *CallArg) GetId() *UUID

func (*CallArg) ProtoMessage

func (*CallArg) ProtoMessage()

func (*CallArg) ProtoReflect

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

func (*CallArg) Reset

func (x *CallArg) Reset()

func (*CallArg) String

func (x *CallArg) String() string

type CallRe

type CallRe struct {
	Result *Node  `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Error  *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CallRe) Descriptor deprecated

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

Deprecated: Use CallRe.ProtoReflect.Descriptor instead.

func (*CallRe) GetError

func (x *CallRe) GetError() *Error

func (*CallRe) GetResult

func (x *CallRe) GetResult() *Node

func (*CallRe) ProtoMessage

func (*CallRe) ProtoMessage()

func (*CallRe) ProtoReflect

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

func (*CallRe) Reset

func (x *CallRe) Reset()

func (*CallRe) String

func (x *CallRe) String() string

type CallType

type CallType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	Self   *Type   `protobuf:"bytes,3,opt,name=self,proto3" json:"self,omitempty"`
	SelfID string  `protobuf:"bytes,4,opt,name=selfID,proto3" json:"selfID,omitempty"`
	Arg    *Type   `protobuf:"bytes,5,opt,name=arg,proto3" json:"arg,omitempty"`
	ArgID  string  `protobuf:"bytes,6,opt,name=argID,proto3" json:"argID,omitempty"`
	Re     *Type   `protobuf:"bytes,7,opt,name=re,proto3" json:"re,omitempty"`
	// contains filtered or unexported fields
}

func (*CallType) Descriptor deprecated

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

Deprecated: Use CallType.ProtoReflect.Descriptor instead.

func (*CallType) GetArg

func (x *CallType) GetArg() *Type

func (*CallType) GetArgID

func (x *CallType) GetArgID() string

func (*CallType) GetIsType

func (x *CallType) GetIsType() *Zero

func (*CallType) GetO

func (x *CallType) GetO() *Origin

func (*CallType) GetRe

func (x *CallType) GetRe() *Type

func (*CallType) GetSelf

func (x *CallType) GetSelf() *Type

func (*CallType) GetSelfID

func (x *CallType) GetSelfID() string

func (*CallType) ProtoMessage

func (*CallType) ProtoMessage()

func (*CallType) ProtoReflect

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

func (*CallType) Reset

func (x *CallType) Reset()

func (*CallType) String

func (x *CallType) String() string

type Cast

type Cast struct {
	O  *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Er *Type   `protobuf:"bytes,2,opt,name=er,proto3" json:"er,omitempty"`
	Ee *Node   `protobuf:"bytes,3,opt,name=ee,proto3" json:"ee,omitempty"`
	// contains filtered or unexported fields
}

func (*Cast) Descriptor deprecated

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

Deprecated: Use Cast.ProtoReflect.Descriptor instead.

func (*Cast) GetEe

func (x *Cast) GetEe() *Node

func (*Cast) GetEr

func (x *Cast) GetEr() *Type

func (*Cast) GetO

func (x *Cast) GetO() *Origin

func (*Cast) ProtoMessage

func (*Cast) ProtoMessage()

func (*Cast) ProtoReflect

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

func (*Cast) Reset

func (x *Cast) Reset()

func (*Cast) String

func (x *Cast) String() string

type Dispatcher

type Dispatcher struct {
	O     *Origin           `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Pairs []*DispatcherPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*Dispatcher) Descriptor deprecated

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

Deprecated: Use Dispatcher.ProtoReflect.Descriptor instead.

func (*Dispatcher) GetO

func (x *Dispatcher) GetO() *Origin

func (*Dispatcher) GetPairs

func (x *Dispatcher) GetPairs() []*DispatcherPair

func (*Dispatcher) ProtoMessage

func (*Dispatcher) ProtoMessage()

func (*Dispatcher) ProtoReflect

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

func (*Dispatcher) Reset

func (x *Dispatcher) Reset()

func (*Dispatcher) String

func (x *Dispatcher) String() string

type DispatcherPair

type DispatcherPair struct {
	Key   *CallType `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Node     `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatcherPair) Descriptor deprecated

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

Deprecated: Use DispatcherPair.ProtoReflect.Descriptor instead.

func (*DispatcherPair) GetKey

func (x *DispatcherPair) GetKey() *CallType

func (*DispatcherPair) GetValue

func (x *DispatcherPair) GetValue() *Node

func (*DispatcherPair) ProtoMessage

func (*DispatcherPair) ProtoMessage()

func (*DispatcherPair) ProtoReflect

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

func (*DispatcherPair) Reset

func (x *DispatcherPair) Reset()

func (*DispatcherPair) String

func (x *DispatcherPair) String() string

type DispatcherType

type DispatcherType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatcherType) Descriptor deprecated

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

Deprecated: Use DispatcherType.ProtoReflect.Descriptor instead.

func (*DispatcherType) GetIsType

func (x *DispatcherType) GetIsType() *Zero

func (*DispatcherType) GetO

func (x *DispatcherType) GetO() *Origin

func (*DispatcherType) ProtoMessage

func (*DispatcherType) ProtoMessage()

func (*DispatcherType) ProtoReflect

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

func (*DispatcherType) Reset

func (x *DispatcherType) Reset()

func (*DispatcherType) String

func (x *DispatcherType) String() string

type Error

type Error struct {
	O     *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Msg   string  `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Stack *Stack  `protobuf:"bytes,3,opt,name=stack,proto3" json:"stack,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) GetO

func (x *Error) GetO() *Origin

func (*Error) GetStack

func (x *Error) GetStack() *Stack

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type EvalProgramRe

type EvalProgramRe struct {
	Program *Program `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty"`
	Error   *Error   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*EvalProgramRe) Descriptor deprecated

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

Deprecated: Use EvalProgramRe.ProtoReflect.Descriptor instead.

func (*EvalProgramRe) GetError

func (x *EvalProgramRe) GetError() *Error

func (*EvalProgramRe) GetProgram

func (x *EvalProgramRe) GetProgram() *Program

func (*EvalProgramRe) ProtoMessage

func (*EvalProgramRe) ProtoMessage()

func (*EvalProgramRe) ProtoReflect

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

func (*EvalProgramRe) Reset

func (x *EvalProgramRe) Reset()

func (*EvalProgramRe) String

func (x *EvalProgramRe) String() string

type EvalerClient

type EvalerClient interface {
	EvalProgram(ctx context.Context, in *Program, opts ...grpc.CallOption) (*EvalProgramRe, error)
}

EvalerClient is the client API for Evaler 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 NewEvalerClient

func NewEvalerClient(cc grpc.ClientConnInterface) EvalerClient

type EvalerServer

type EvalerServer interface {
	EvalProgram(context.Context, *Program) (*EvalProgramRe, error)
	// contains filtered or unexported methods
}

EvalerServer is the server API for Evaler service. All implementations must embed UnimplementedEvalerServer for forward compatibility

type External

type External struct {
	O  *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Id *UUID   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*External) Descriptor deprecated

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

Deprecated: Use External.ProtoReflect.Descriptor instead.

func (*External) GetId

func (x *External) GetId() *UUID

func (*External) GetO

func (x *External) GetO() *Origin

func (*External) ProtoMessage

func (*External) ProtoMessage()

func (*External) ProtoReflect

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

func (*External) Reset

func (x *External) Reset()

func (*External) String

func (x *External) String() string

type ExternalProviderClient

type ExternalProviderClient interface {
	Call(ctx context.Context, in *CallArg, opts ...grpc.CallOption) (*CallRe, error)
}

ExternalProviderClient is the client API for ExternalProvider 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.

type ExternalProviderServer

type ExternalProviderServer interface {
	Call(context.Context, *CallArg) (*CallRe, error)
	// contains filtered or unexported methods
}

ExternalProviderServer is the server API for ExternalProvider service. All implementations must embed UnimplementedExternalProviderServer for forward compatibility

type ExternalType

type ExternalType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalType) Descriptor deprecated

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

Deprecated: Use ExternalType.ProtoReflect.Descriptor instead.

func (*ExternalType) GetIsType

func (x *ExternalType) GetIsType() *Zero

func (*ExternalType) GetO

func (x *ExternalType) GetO() *Origin

func (*ExternalType) ProtoMessage

func (*ExternalType) ProtoMessage()

func (*ExternalType) ProtoReflect

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

func (*ExternalType) Reset

func (x *ExternalType) Reset()

func (*ExternalType) String

func (x *ExternalType) String() string

type Frame

type Frame struct {
	O        *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Len      uint64  `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	Note     string  `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	CallHash []byte  `protobuf:"bytes,4,opt,name=callHash,proto3" json:"callHash,omitempty"`
	Lone     bool    `protobuf:"varint,5,opt,name=lone,proto3" json:"lone,omitempty"`
	Pure     bool    `protobuf:"varint,6,opt,name=pure,proto3" json:"pure,omitempty"`
	// contains filtered or unexported fields
}

func (*Frame) Descriptor deprecated

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

Deprecated: Use Frame.ProtoReflect.Descriptor instead.

func (*Frame) GetCallHash

func (x *Frame) GetCallHash() []byte

func (*Frame) GetLen

func (x *Frame) GetLen() uint64

func (*Frame) GetLone

func (x *Frame) GetLone() bool

func (*Frame) GetNote

func (x *Frame) GetNote() string

func (*Frame) GetO

func (x *Frame) GetO() *Origin

func (*Frame) GetPure

func (x *Frame) GetPure() bool

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) ProtoReflect

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

func (*Frame) Reset

func (x *Frame) Reset()

func (*Frame) String

func (x *Frame) String() string

type Inter

type Inter struct {
	IsType *Zero       `protobuf:"bytes,1,opt,name=isType,proto3" json:"isType,omitempty"`
	T      *StructType `protobuf:"bytes,2,opt,name=t,proto3" json:"t,omitempty"`
	// contains filtered or unexported fields
}

func (*Inter) Descriptor deprecated

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

Deprecated: Use Inter.ProtoReflect.Descriptor instead.

func (*Inter) GetIsType

func (x *Inter) GetIsType() *Zero

func (*Inter) GetT

func (x *Inter) GetT() *StructType

func (*Inter) ProtoMessage

func (*Inter) ProtoMessage()

func (*Inter) ProtoReflect

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

func (*Inter) Reset

func (x *Inter) Reset()

func (*Inter) String

func (x *Inter) String() string

type Label

type Label struct {
	O  *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Er string  `protobuf:"bytes,2,opt,name=er,proto3" json:"er,omitempty"`
	Ee *Node   `protobuf:"bytes,3,opt,name=ee,proto3" json:"ee,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetEe

func (x *Label) GetEe() *Node

func (*Label) GetEr

func (x *Label) GetEr() string

func (*Label) GetO

func (x *Label) GetO() *Origin

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type Map

type Map struct {
	O     *Origin    `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	T     *MapType   `protobuf:"bytes,2,opt,name=t,proto3" json:"t,omitempty"`
	Pairs []*MapPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*Map) Descriptor deprecated

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

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetO

func (x *Map) GetO() *Origin

func (*Map) GetPairs

func (x *Map) GetPairs() []*MapPair

func (*Map) GetT

func (x *Map) GetT() *MapType

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

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

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

type MapPair

type MapPair struct {
	Key   *Node `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Node `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MapPair) Descriptor deprecated

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

Deprecated: Use MapPair.ProtoReflect.Descriptor instead.

func (*MapPair) GetKey

func (x *MapPair) GetKey() *Node

func (*MapPair) GetValue

func (x *MapPair) GetValue() *Node

func (*MapPair) ProtoMessage

func (*MapPair) ProtoMessage()

func (*MapPair) ProtoReflect

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

func (*MapPair) Reset

func (x *MapPair) Reset()

func (*MapPair) String

func (x *MapPair) String() string

type MapType

type MapType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	Key    *Type   `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value  *Type   `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MapType) Descriptor deprecated

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

Deprecated: Use MapType.ProtoReflect.Descriptor instead.

func (*MapType) GetIsType

func (x *MapType) GetIsType() *Zero

func (*MapType) GetKey

func (x *MapType) GetKey() *Type

func (*MapType) GetO

func (x *MapType) GetO() *Origin

func (*MapType) GetValue

func (x *MapType) GetValue() *Type

func (*MapType) ProtoMessage

func (*MapType) ProtoMessage()

func (*MapType) ProtoReflect

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

func (*MapType) Reset

func (x *MapType) Reset()

func (*MapType) String

func (x *MapType) String() string

type MapTypeConsecutive

type MapTypeConsecutive int32
const (
	MapTypeConsecutive_BOTH           MapTypeConsecutive = 0
	MapTypeConsecutive_CONSECUTIVE    MapTypeConsecutive = 1
	MapTypeConsecutive_NONCONSECUTIVE MapTypeConsecutive = 2
)

func (MapTypeConsecutive) Descriptor

func (MapTypeConsecutive) Enum

func (MapTypeConsecutive) EnumDescriptor deprecated

func (MapTypeConsecutive) EnumDescriptor() ([]byte, []int)

Deprecated: Use MapTypeConsecutive.Descriptor instead.

func (MapTypeConsecutive) Number

func (MapTypeConsecutive) String

func (x MapTypeConsecutive) String() string

func (MapTypeConsecutive) Type

type Node

type Node struct {
	Immutable bool `protobuf:"varint,1,opt,name=immutable,proto3" json:"immutable,omitempty"`
	// Types that are assignable to Content:
	//	*Node_Type
	//	*Node_Block
	//	*Node_Cast
	//	*Node_Call
	//	*Node_Dispatcher
	//	*Node_External
	//	*Node_Label
	//	*Node_Map
	//	*Node_Num
	//	*Node_Pod
	//	*Node_Priority
	//	*Node_Ref
	//	*Node_Struct
	//	*Node_Symbol
	Content isNode_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetBlock

func (x *Node) GetBlock() *Block

func (*Node) GetCall

func (x *Node) GetCall() *Call

func (*Node) GetCast

func (x *Node) GetCast() *Cast

func (*Node) GetContent

func (m *Node) GetContent() isNode_Content

func (*Node) GetDispatcher

func (x *Node) GetDispatcher() *Dispatcher

func (*Node) GetExternal

func (x *Node) GetExternal() *External

func (*Node) GetImmutable

func (x *Node) GetImmutable() bool

func (*Node) GetLabel

func (x *Node) GetLabel() *Label

func (*Node) GetMap

func (x *Node) GetMap() *Map

func (*Node) GetNum

func (x *Node) GetNum() *Num

func (*Node) GetPod

func (x *Node) GetPod() *Pod

func (*Node) GetPriority

func (x *Node) GetPriority() *Priority

func (*Node) GetRef

func (x *Node) GetRef() *Ref

func (*Node) GetStruct

func (x *Node) GetStruct() *Struct

func (*Node) GetSymbol

func (x *Node) GetSymbol() *Symbol

func (*Node) GetType

func (x *Node) GetType() *Type

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Node_Block

type Node_Block struct {
	Block *Block `protobuf:"bytes,3,opt,name=block,proto3,oneof"`
}

type Node_Call

type Node_Call struct {
	Call *Call `protobuf:"bytes,5,opt,name=call,proto3,oneof"`
}

type Node_Cast

type Node_Cast struct {
	Cast *Cast `protobuf:"bytes,4,opt,name=cast,proto3,oneof"`
}

type Node_Dispatcher

type Node_Dispatcher struct {
	Dispatcher *Dispatcher `protobuf:"bytes,6,opt,name=dispatcher,proto3,oneof"`
}

type Node_External

type Node_External struct {
	External *External `protobuf:"bytes,7,opt,name=external,proto3,oneof"`
}

type Node_Label

type Node_Label struct {
	Label *Label `protobuf:"bytes,8,opt,name=label,proto3,oneof"`
}

type Node_Map

type Node_Map struct {
	Map *Map `protobuf:"bytes,9,opt,name=map,proto3,oneof"`
}

type Node_Num

type Node_Num struct {
	Num *Num `protobuf:"bytes,10,opt,name=num,proto3,oneof"`
}

type Node_Pod

type Node_Pod struct {
	Pod *Pod `protobuf:"bytes,11,opt,name=pod,proto3,oneof"`
}

type Node_Priority

type Node_Priority struct {
	Priority *Priority `protobuf:"bytes,12,opt,name=priority,proto3,oneof"`
}

type Node_Ref

type Node_Ref struct {
	Ref *Ref `protobuf:"bytes,13,opt,name=ref,proto3,oneof"`
}

type Node_Struct

type Node_Struct struct {
	Struct *Struct `protobuf:"bytes,14,opt,name=struct,proto3,oneof"`
}

type Node_Symbol

type Node_Symbol struct {
	Symbol *Symbol `protobuf:"bytes,15,opt,name=symbol,proto3,oneof"`
}

type Node_Type

type Node_Type struct {
	Type *Type `protobuf:"bytes,2,opt,name=type,proto3,oneof"`
}

type Num

type Num struct {
	O *Origin  `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	T *NumType `protobuf:"bytes,2,opt,name=t,proto3" json:"t,omitempty"`
	// Types that are assignable to Content:
	//	*Num_Normal
	//	*Num_Inf
	//	*Num_Nan
	Content isNum_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*Num) Descriptor deprecated

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

Deprecated: Use Num.ProtoReflect.Descriptor instead.

func (*Num) GetContent

func (m *Num) GetContent() isNum_Content

func (*Num) GetInf

func (x *Num) GetInf() bool

func (*Num) GetNan

func (x *Num) GetNan() *Zero

func (*Num) GetNormal

func (x *Num) GetNormal() string

func (*Num) GetO

func (x *Num) GetO() *Origin

func (*Num) GetT

func (x *Num) GetT() *NumType

func (*Num) ProtoMessage

func (*Num) ProtoMessage()

func (*Num) ProtoReflect

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

func (*Num) Reset

func (x *Num) Reset()

func (*Num) String

func (x *Num) String() string

type NumType

type NumType struct {
	Unit   *Symbol `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*NumType) Descriptor deprecated

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

Deprecated: Use NumType.ProtoReflect.Descriptor instead.

func (*NumType) GetIsType

func (x *NumType) GetIsType() *Zero

func (*NumType) GetUnit

func (x *NumType) GetUnit() *Symbol

func (*NumType) ProtoMessage

func (*NumType) ProtoMessage()

func (*NumType) ProtoReflect

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

func (*NumType) Reset

func (x *NumType) Reset()

func (*NumType) String

func (x *NumType) String() string

type Num_Inf

type Num_Inf struct {
	Inf bool `protobuf:"varint,4,opt,name=inf,proto3,oneof"`
}

type Num_Nan

type Num_Nan struct {
	Nan *Zero `protobuf:"bytes,5,opt,name=nan,proto3,oneof"`
}

type Num_Normal

type Num_Normal struct {
	Normal string `protobuf:"bytes,3,opt,name=normal,proto3,oneof"`
}

type Origin

type Origin struct {
	Filepath    string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"`
	StartLine   uint32 `protobuf:"varint,2,opt,name=startLine,proto3" json:"startLine,omitempty"`
	StartColumn uint32 `protobuf:"varint,3,opt,name=startColumn,proto3" json:"startColumn,omitempty"`
	EndLine     uint32 `protobuf:"varint,4,opt,name=endLine,proto3" json:"endLine,omitempty"`
	EndColumn   uint32 `protobuf:"varint,5,opt,name=endColumn,proto3" json:"endColumn,omitempty"`
	Name        string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func OriginFromCaller

func OriginFromCaller(skip uint) *Origin

func (*Origin) Descriptor deprecated

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

Deprecated: Use Origin.ProtoReflect.Descriptor instead.

func (*Origin) GetEndColumn

func (x *Origin) GetEndColumn() uint32

func (*Origin) GetEndLine

func (x *Origin) GetEndLine() uint32

func (*Origin) GetFilepath

func (x *Origin) GetFilepath() string

func (*Origin) GetName

func (x *Origin) GetName() string

func (*Origin) GetStartColumn

func (x *Origin) GetStartColumn() uint32

func (*Origin) GetStartLine

func (x *Origin) GetStartLine() uint32

func (*Origin) ProtoMessage

func (*Origin) ProtoMessage()

func (*Origin) ProtoReflect

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

func (*Origin) Reset

func (x *Origin) Reset()

func (*Origin) String

func (x *Origin) String() string

type ParseArgs

type ParseArgs struct {
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Content  string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseArgs) Descriptor deprecated

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

Deprecated: Use ParseArgs.ProtoReflect.Descriptor instead.

func (*ParseArgs) GetContent

func (x *ParseArgs) GetContent() string

func (*ParseArgs) GetFilename

func (x *ParseArgs) GetFilename() string

func (*ParseArgs) ProtoMessage

func (*ParseArgs) ProtoMessage()

func (*ParseArgs) ProtoReflect

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

func (*ParseArgs) Reset

func (x *ParseArgs) Reset()

func (*ParseArgs) String

func (x *ParseArgs) String() string

type ParserClient

type ParserClient interface {
	Parse(ctx context.Context, in *ParseArgs, opts ...grpc.CallOption) (*Program, error)
}

ParserClient is the client API for Parser 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 NewParserClient

func NewParserClient(cc grpc.ClientConnInterface) ParserClient

type ParserServer

type ParserServer interface {
	Parse(context.Context, *ParseArgs) (*Program, error)
	// contains filtered or unexported methods
}

ParserServer is the server API for Parser service. All implementations must embed UnimplementedParserServer for forward compatibility

type Pod

type Pod struct {
	O       *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Content *Node   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Path    string  `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*Pod) Descriptor deprecated

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

Deprecated: Use Pod.ProtoReflect.Descriptor instead.

func (*Pod) GetContent

func (x *Pod) GetContent() *Node

func (*Pod) GetO

func (x *Pod) GetO() *Origin

func (*Pod) GetPath

func (x *Pod) GetPath() string

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) ProtoReflect

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

func (*Pod) Reset

func (x *Pod) Reset()

func (*Pod) String

func (x *Pod) String() string

type PodType

type PodType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*PodType) Descriptor deprecated

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

Deprecated: Use PodType.ProtoReflect.Descriptor instead.

func (*PodType) GetIsType

func (x *PodType) GetIsType() *Zero

func (*PodType) GetO

func (x *PodType) GetO() *Origin

func (*PodType) ProtoMessage

func (*PodType) ProtoMessage()

func (*PodType) ProtoReflect

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

func (*PodType) Reset

func (x *PodType) Reset()

func (*PodType) String

func (x *PodType) String() string

type Priority

type Priority struct {
	B *Block `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*Priority) Descriptor deprecated

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

Deprecated: Use Priority.ProtoReflect.Descriptor instead.

func (*Priority) GetB

func (x *Priority) GetB() *Block

func (*Priority) ProtoMessage

func (*Priority) ProtoMessage()

func (*Priority) ProtoReflect

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

func (*Priority) Reset

func (x *Priority) Reset()

func (*Priority) String

func (x *Priority) String() string

type Program

type Program struct {
	O       *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Content []*Node `protobuf:"bytes,2,rep,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Program) Descriptor deprecated

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

Deprecated: Use Program.ProtoReflect.Descriptor instead.

func (*Program) GetContent

func (x *Program) GetContent() []*Node

func (*Program) GetO

func (x *Program) GetO() *Origin

func (*Program) ProtoMessage

func (*Program) ProtoMessage()

func (*Program) ProtoReflect

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

func (*Program) Reset

func (x *Program) Reset()

func (*Program) String

func (x *Program) String() string

type Ref

type Ref struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	Id     string  `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Ref) Descriptor deprecated

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

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetId

func (x *Ref) GetId() string

func (*Ref) GetIsType

func (x *Ref) GetIsType() *Zero

func (*Ref) GetO

func (x *Ref) GetO() *Origin

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect

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

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

type RefAsType

type RefAsType struct {
	Ref    *Ref  `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	IsType *Zero `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*RefAsType) Descriptor deprecated

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

Deprecated: Use RefAsType.ProtoReflect.Descriptor instead.

func (*RefAsType) GetIsType

func (x *RefAsType) GetIsType() *Zero

func (*RefAsType) GetRef

func (x *RefAsType) GetRef() *Ref

func (*RefAsType) ProtoMessage

func (*RefAsType) ProtoMessage()

func (*RefAsType) ProtoReflect

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

func (*RefAsType) Reset

func (x *RefAsType) Reset()

func (*RefAsType) String

func (x *RefAsType) String() string

type RendererClient

type RendererClient interface {
	Render(ctx context.Context, in *Node, opts ...grpc.CallOption) (*RendererRe, 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 RendererRe

type RendererRe struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*RendererRe) Descriptor deprecated

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

Deprecated: Use RendererRe.ProtoReflect.Descriptor instead.

func (*RendererRe) GetContent

func (x *RendererRe) GetContent() string

func (*RendererRe) ProtoMessage

func (*RendererRe) ProtoMessage()

func (*RendererRe) ProtoReflect

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

func (*RendererRe) Reset

func (x *RendererRe) Reset()

func (*RendererRe) String

func (x *RendererRe) String() string

type RendererServer

type RendererServer interface {
	Render(context.Context, *Node) (*RendererRe, error)
	// contains filtered or unexported methods
}

RendererServer is the server API for Renderer service. All implementations must embed UnimplementedRendererServer for forward compatibility

type RootType

type RootType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*RootType) Descriptor deprecated

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

Deprecated: Use RootType.ProtoReflect.Descriptor instead.

func (*RootType) GetIsType

func (x *RootType) GetIsType() *Zero

func (*RootType) GetO

func (x *RootType) GetO() *Origin

func (*RootType) ProtoMessage

func (*RootType) ProtoMessage()

func (*RootType) ProtoReflect

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

func (*RootType) Reset

func (x *RootType) Reset()

func (*RootType) String

func (x *RootType) String() string

type Stack

type Stack struct {
	Pure   bool     `protobuf:"varint,1,opt,name=pure,proto3" json:"pure,omitempty"`
	Frames []*Frame `protobuf:"bytes,2,rep,name=frames,proto3" json:"frames,omitempty"`
	// contains filtered or unexported fields
}

func (*Stack) Descriptor deprecated

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

Deprecated: Use Stack.ProtoReflect.Descriptor instead.

func (*Stack) GetFrames

func (x *Stack) GetFrames() []*Frame

func (*Stack) GetPure

func (x *Stack) GetPure() bool

func (*Stack) ProtoMessage

func (*Stack) ProtoMessage()

func (*Stack) ProtoReflect

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

func (*Stack) Reset

func (x *Stack) Reset()

func (*Stack) String

func (x *Stack) String() string

type Struct

type Struct struct {
	O      *Origin     `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	T      *StructType `protobuf:"bytes,2,opt,name=t,proto3" json:"t,omitempty"`
	Values []*Node     `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Struct) Descriptor deprecated

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

Deprecated: Use Struct.ProtoReflect.Descriptor instead.

func (*Struct) GetO

func (x *Struct) GetO() *Origin

func (*Struct) GetT

func (x *Struct) GetT() *StructType

func (*Struct) GetValues

func (x *Struct) GetValues() []*Node

func (*Struct) ProtoMessage

func (*Struct) ProtoMessage()

func (*Struct) ProtoReflect

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

func (*Struct) Reset

func (x *Struct) Reset()

func (*Struct) String

func (x *Struct) String() string

type StructType

type StructType struct {
	O      *Origin           `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero             `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	IsEnum bool              `protobuf:"varint,3,opt,name=isEnum,proto3" json:"isEnum,omitempty"`
	Pairs  []*StructTypePair `protobuf:"bytes,4,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*StructType) Descriptor deprecated

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

Deprecated: Use StructType.ProtoReflect.Descriptor instead.

func (*StructType) GetIsEnum

func (x *StructType) GetIsEnum() bool

func (*StructType) GetIsType

func (x *StructType) GetIsType() *Zero

func (*StructType) GetO

func (x *StructType) GetO() *Origin

func (*StructType) GetPairs

func (x *StructType) GetPairs() []*StructTypePair

func (*StructType) ProtoMessage

func (*StructType) ProtoMessage()

func (*StructType) ProtoReflect

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

func (*StructType) Reset

func (x *StructType) Reset()

func (*StructType) String

func (x *StructType) String() string

type StructTypePair

type StructTypePair struct {
	Key     string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value   *Type  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Default *Node  `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*StructTypePair) Descriptor deprecated

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

Deprecated: Use StructTypePair.ProtoReflect.Descriptor instead.

func (*StructTypePair) GetDefault

func (x *StructTypePair) GetDefault() *Node

func (*StructTypePair) GetKey

func (x *StructTypePair) GetKey() string

func (*StructTypePair) GetValue

func (x *StructTypePair) GetValue() *Type

func (*StructTypePair) ProtoMessage

func (*StructTypePair) ProtoMessage()

func (*StructTypePair) ProtoReflect

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

func (*StructTypePair) Reset

func (x *StructTypePair) Reset()

func (*StructTypePair) String

func (x *StructTypePair) String() string

type Symbol

type Symbol struct {
	O    *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	Name string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Symbol) Descriptor deprecated

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

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetName

func (x *Symbol) GetName() string

func (*Symbol) GetO

func (x *Symbol) GetO() *Origin

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

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

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

type SymbolType

type SymbolType struct {
	O      *Origin `protobuf:"bytes,1,opt,name=o,proto3" json:"o,omitempty"`
	IsType *Zero   `protobuf:"bytes,2,opt,name=isType,proto3" json:"isType,omitempty"`
	// contains filtered or unexported fields
}

func (*SymbolType) Descriptor deprecated

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

Deprecated: Use SymbolType.ProtoReflect.Descriptor instead.

func (*SymbolType) GetIsType

func (x *SymbolType) GetIsType() *Zero

func (*SymbolType) GetO

func (x *SymbolType) GetO() *Origin

func (*SymbolType) ProtoMessage

func (*SymbolType) ProtoMessage()

func (*SymbolType) ProtoReflect

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

func (*SymbolType) Reset

func (x *SymbolType) Reset()

func (*SymbolType) String

func (x *SymbolType) String() string

type Type

type Type struct {

	// Types that are assignable to Content:
	//	*Type_BlockAsType
	//	*Type_RefAsType
	//	*Type_CallType
	//	*Type_DispatcherType
	//	*Type_ExternalType
	//	*Type_Inter
	//	*Type_MapType
	//	*Type_NumType
	//	*Type_PodType
	//	*Type_RootType
	//	*Type_StructType
	//	*Type_SymbolType
	Content isType_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func ToType

func ToType(node *Node) (*Type, error)

func (*Type) Descriptor deprecated

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

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetBlockAsType

func (x *Type) GetBlockAsType() *BlockAsType

func (*Type) GetCallType

func (x *Type) GetCallType() *CallType

func (*Type) GetContent

func (m *Type) GetContent() isType_Content

func (*Type) GetDispatcherType

func (x *Type) GetDispatcherType() *DispatcherType

func (*Type) GetExternalType

func (x *Type) GetExternalType() *ExternalType

func (*Type) GetInter

func (x *Type) GetInter() *Inter

func (*Type) GetMapType

func (x *Type) GetMapType() *MapType

func (*Type) GetNumType

func (x *Type) GetNumType() *NumType

func (*Type) GetPodType

func (x *Type) GetPodType() *PodType

func (*Type) GetRefAsType

func (x *Type) GetRefAsType() *RefAsType

func (*Type) GetRootType

func (x *Type) GetRootType() *RootType

func (*Type) GetStructType

func (x *Type) GetStructType() *StructType

func (*Type) GetSymbolType

func (x *Type) GetSymbolType() *SymbolType

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

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

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type Type_BlockAsType

type Type_BlockAsType struct {
	BlockAsType *BlockAsType `protobuf:"bytes,1,opt,name=blockAsType,proto3,oneof"`
}

type Type_CallType

type Type_CallType struct {
	CallType *CallType `protobuf:"bytes,3,opt,name=callType,proto3,oneof"`
}

type Type_DispatcherType

type Type_DispatcherType struct {
	DispatcherType *DispatcherType `protobuf:"bytes,4,opt,name=dispatcherType,proto3,oneof"`
}

type Type_ExternalType

type Type_ExternalType struct {
	ExternalType *ExternalType `protobuf:"bytes,5,opt,name=externalType,proto3,oneof"`
}

type Type_Inter

type Type_Inter struct {
	Inter *Inter `protobuf:"bytes,6,opt,name=inter,proto3,oneof"`
}

type Type_MapType

type Type_MapType struct {
	MapType *MapType `protobuf:"bytes,7,opt,name=mapType,proto3,oneof"`
}

type Type_NumType

type Type_NumType struct {
	NumType *NumType `protobuf:"bytes,8,opt,name=numType,proto3,oneof"`
}

type Type_PodType

type Type_PodType struct {
	PodType *PodType `protobuf:"bytes,9,opt,name=podType,proto3,oneof"`
}

type Type_RefAsType

type Type_RefAsType struct {
	RefAsType *RefAsType `protobuf:"bytes,2,opt,name=refAsType,proto3,oneof"`
}

type Type_RootType

type Type_RootType struct {
	RootType *RootType `protobuf:"bytes,10,opt,name=rootType,proto3,oneof"`
}

type Type_StructType

type Type_StructType struct {
	StructType *StructType `protobuf:"bytes,11,opt,name=structType,proto3,oneof"`
}

type Type_SymbolType

type Type_SymbolType struct {
	SymbolType *SymbolType `protobuf:"bytes,12,opt,name=symbolType,proto3,oneof"`
}

type UUID

type UUID struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func FromUUID

func FromUUID(id uuid.UUID) *UUID

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue

func (x *UUID) GetValue() []byte

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

type UnimplementedEvalerServer

type UnimplementedEvalerServer struct {
}

UnimplementedEvalerServer must be embedded to have forward compatible implementations.

func (UnimplementedEvalerServer) EvalProgram

type UnimplementedExternalProviderServer

type UnimplementedExternalProviderServer struct {
}

UnimplementedExternalProviderServer must be embedded to have forward compatible implementations.

func (UnimplementedExternalProviderServer) Call

type UnimplementedParserServer

type UnimplementedParserServer struct {
}

UnimplementedParserServer must be embedded to have forward compatible implementations.

func (UnimplementedParserServer) Parse

type UnimplementedRendererServer

type UnimplementedRendererServer struct {
}

UnimplementedRendererServer must be embedded to have forward compatible implementations.

func (UnimplementedRendererServer) Render

type UnimplementedVerifierServer

type UnimplementedVerifierServer struct {
}

UnimplementedVerifierServer must be embedded to have forward compatible implementations.

func (UnimplementedVerifierServer) Verify

type UnsafeEvalerServer

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

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

type UnsafeExternalProviderServer

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

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

type UnsafeParserServer

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

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

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.

type UnsafeVerifierServer

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

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

type VerifierClient

type VerifierClient interface {
	Verify(ctx context.Context, in *Program, opts ...grpc.CallOption) (*VerifyRe, error)
}

VerifierClient is the client API for Verifier 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 NewVerifierClient

func NewVerifierClient(cc grpc.ClientConnInterface) VerifierClient

type VerifierServer

type VerifierServer interface {
	Verify(context.Context, *Program) (*VerifyRe, error)
	// contains filtered or unexported methods
}

VerifierServer is the server API for Verifier service. All implementations must embed UnimplementedVerifierServer for forward compatibility

type VerifyRe

type VerifyRe struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRe) Descriptor deprecated

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

Deprecated: Use VerifyRe.ProtoReflect.Descriptor instead.

func (*VerifyRe) GetOk

func (x *VerifyRe) GetOk() bool

func (*VerifyRe) ProtoMessage

func (*VerifyRe) ProtoMessage()

func (*VerifyRe) ProtoReflect

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

func (*VerifyRe) Reset

func (x *VerifyRe) Reset()

func (*VerifyRe) String

func (x *VerifyRe) String() string

type Zero

type Zero struct {
	// contains filtered or unexported fields
}

func (*Zero) Descriptor deprecated

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

Deprecated: Use Zero.ProtoReflect.Descriptor instead.

func (*Zero) ProtoMessage

func (*Zero) ProtoMessage()

func (*Zero) ProtoReflect

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

func (*Zero) Reset

func (x *Zero) Reset()

func (*Zero) String

func (x *Zero) String() string

Directories

Path Synopsis
lib
Package lib provides an embed.FS of the standard library and index, sample gob and JSON files for testing.
Package lib provides an embed.FS of the standard library and index, sample gob and JSON files for testing.
run

Jump to

Keyboard shortcuts

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