server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Directories

Path Synopsis
Package main declares the executable entry point for the CEL server.
Package main declares the executable entry point for the CEL server.

Jump to

Keyboard shortcuts

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