package server
import "github.com/google/cel-go/server"
Package server defines the gRPC conformance test server for CEL Go.
Index ¶
- func ErrToStatus(e common.Error, severity confpb.IssueDetails_Severity) *rpcpb.Status
- func ExprValueToRefValue(adapter ref.TypeAdapter, ev *exprpb.ExprValue) (ref.Val, error)
- func RefValueToExprValue(res ref.Val, err error) (*exprpb.ExprValue, error)
- type ConformanceServer
- func (s *ConformanceServer) Check(ctx context.Context, in *confpb.CheckRequest) (*confpb.CheckResponse, error)
- func (s *ConformanceServer) Eval(ctx context.Context, in *confpb.EvalRequest) (*confpb.EvalResponse, error)
- func (s *ConformanceServer) Parse(ctx context.Context, in *confpb.ParseRequest) (*confpb.ParseResponse, error)
Functions ¶
func ErrToStatus ¶
ErrToStatus converts an Error to a Status message with the given severity.
func ExprValueToRefValue ¶
ExprValueToRefValue converts between exprpb.ExprValue and ref.Val.
func RefValueToExprValue ¶
RefValueToExprValue converts between ref.Val and exprpb.ExprValue.
Types ¶
type ConformanceServer ¶
type ConformanceServer struct{}
ConformanceServer contains the server state.
func (*ConformanceServer) Check ¶
func (s *ConformanceServer) Check(ctx context.Context, in *confpb.CheckRequest) (*confpb.CheckResponse, error)
Check implements ConformanceService.Check.
func (*ConformanceServer) Eval ¶
func (s *ConformanceServer) Eval(ctx context.Context, in *confpb.EvalRequest) (*confpb.EvalResponse, error)
Eval implements ConformanceService.Eval.
func (*ConformanceServer) Parse ¶
func (s *ConformanceServer) Parse(ctx context.Context, in *confpb.ParseRequest) (*confpb.ParseResponse, error)
Parse implements ConformanceService.Parse.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
server/main | Package main declares the executable entry point for the CEL server. |
- Version
- v0.10.4
- Published
- Jan 5, 2023
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 2 seconds ago –
Tools for package owners.