package server

import "github.com/google/cel-go/server"

Package server defines the gRPC conformance test server for CEL Go.

Index

Functions

func ErrToStatus

func ErrToStatus(e common.Error, severity confpb.IssueDetails_Severity) *rpcpb.Status

ErrToStatus converts an Error to a Status message with the given severity.

func ExprValueToRefValue

func ExprValueToRefValue(adapter ref.TypeAdapter, ev *exprpb.ExprValue) (ref.Val, error)

ExprValueToRefValue converts between exprpb.ExprValue and ref.Val.

func RefValueToExprValue

func RefValueToExprValue(res ref.Val, err error) (*exprpb.ExprValue, error)

RefValueToExprValue converts between ref.Val and exprpb.ExprValue.

Types

type ConformanceServer

type ConformanceServer struct{}

ConformanceServer contains the server state.

func (*ConformanceServer) Check

Check implements ConformanceService.Check.

func (*ConformanceServer) Eval

Eval implements ConformanceService.Eval.

func (*ConformanceServer) Parse

Parse implements ConformanceService.Parse.

Source Files

server.go

Directories

PathSynopsis
server/mainPackage main declares the executable entry point for the CEL server.
Version
v0.10.3
Published
Jan 5, 2023
Platform
js/wasm
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.