server

package module
v0.0.0-...-32a6867 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0, BSD-3-Clause Imports: 13 Imported by: 2

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 *cel.Error, severity confpb.IssueDetails_Severity) *statuspb.Status

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

func ExprValueToRefValue

func ExprValueToRefValue(adapter types.Adapter, 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.

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