protocel

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
}

func New

type Compiler added in v0.18.0

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

func NewCompiler added in v0.18.0

func NewCompiler(files *protoregistry.Files) (*Compiler, error)

func (*Compiler) Compile added in v0.18.0

func (c *Compiler) Compile(md protoreflect.MessageDescriptor, celString string) (CELMessage, error)

Jump to

Keyboard shortcuts

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