Documentation ¶
Overview ¶
Package server defines the gRPC conformance test server for CEL Go.
Index ¶
- func ErrToStatus(e *cel.Error, severity confpb.IssueDetails_Severity) *statuspb.Status
- func ExprValueToRefValue(adapter types.Adapter, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
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.
Click to show internal directories.
Click to hide internal directories.