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 exprpb.IssueDetails_Severity) *rpc.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.

func RefValueToValue

func RefValueToValue(res ref.Val) (*exprpb.Value, error)

RefValueToValue converts between ref.Val and Value. The ref.Val must not be error or unknown.

func ValueToRefValue

func ValueToRefValue(adapter ref.TypeAdapter, v *exprpb.Value) (ref.Val, error)

ValueToRefValue converts between exprpb.Value and ref.Val.

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.2.0
Published
Apr 1, 2019
Platform
js/wasm
Imports
13 packages
Last checked
14 seconds ago

Tools for package owners.