Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(files *protoregistry.Files, md protoreflect.MessageDescriptor, celString string) (*protocel, error)
func WithCELContext ¶
func WithCELContext(ctx context.Context, celCtx *CELContext) context.Context
Types ¶
type CELContext ¶
type CELContext struct { MethodDescriptor protoreflect.MethodDescriptor Req proto.Message }
func GetCELContext ¶
func GetCELContext(ctx context.Context) *CELContext
func (*CELContext) ToInput ¶
func (c *CELContext) ToInput() map[string]any
type CELMessage ¶
type CELMessage interface { NewMessage(ctx context.Context) (proto.Message, error) SetDataOnMessage(ctx context.Context, msg protoreflect.ProtoMessage) error }
Click to show internal directories.
Click to hide internal directories.