Categorygithub.com/TheCount/protoeval
modulepackage
0.0.11
Repository: https://github.com/thecount/protoeval.git
Documentation: pkg.go.dev

# README

Still experimenting, nothing to see here yet…

# Functions

Eval evaluates the given message within the given environment according to the specified value, with the given arguments.
NewEnv creates a new, empty environment.

# Constants

DefaultEvalMax is the default maximum number of sub-evaluations before a call to Eval is aborted.
BOOL is the kind of the bool type.
BYTES is the kind for the bytes type.
DOUBLE is the kind of the double type.
ENUM is the kind for all enum types.
FIXED32 is the kind of the fixed32 type.
FIXED64 is the kind of the fixed64 type.
FLOAT is the kind of the float type.
INT32 is the kind of the int32 type.
INT64 is the kind of the int64 type.
INVALID has no counterpart in google.protobuf.FieldDescriptorProto.Type, but proto3 enums must start with zero.
MESSAGE is the kind for all message types.
SFIXED32 is the kind for the sfixed32 type.
SFIXED64 is the kind for the sfixed64 type.
SINT32 is the kind for the sint32 type.
SINT64 is the kind for the sint64 type.
STRING is the kind of the string type.
UINT32 is the kind for the uint32 type.
UINT64 is the kind of the uint64 type.

# Variables

CelArgListType is the CEL type for an argument list.
CelEnvType is the CEL type for the protoeval environment.
ErrEvalTooLong is returned when an evaluation is too complex.
No description provided by the author
Enum value maps for Value_Kind.
Enum value maps for Value_Kind.

# Structs

Env describes an environment within which an evaluation can take place.
Scope describes a scope for CEL programs.
Value describes how to arrive at a value given an environment and a scope.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Branch describes a conditional branch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum describes an enum value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
List describes a list value.
No description provided by the author
No description provided by the author
Map describes a map value.
No description provided by the author
Value_Map_Entry
Entry describes a map entry.
Message describes a message value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Program describes a CEL program.
No description provided by the author
Range describes a value obtained by ranging over an aggregate, i.
No description provided by the author
No description provided by the author
No description provided by the author
StoredValue describes a value stored in the environment.
Switch describes a value selection by condition.
No description provided by the author
No description provided by the author
No description provided by the author
ValueList is a list of values, not necessarily of the same type (though users of ValueList often prescribe certain type constraints).
No description provided by the author

# Type aliases

Kind enumerates protobuf type kinds as in google.protobuf.FieldDescriptorProto.Type.