server

package
v0.0.0-...-bd88044 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

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(ev *exprpb.ExprValue) (ref.Value, error)

ExprValueToRefValue converts between exprpb.ExprValue and ref.Value.

func RefValueToExprValue

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

RefValueToExprValue converts between ref.Value and exprpb.ExprValue.

func RefValueToValue

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

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

func ValueToRefValue

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

ValueToRefValue converts between exprpb.Value and ref.Value.

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