Documentation ¶
Index ¶
- func ErrToStatus(e common.Error, severity exprpb.IssueDetails_Severity) *rpc.Status
- func ExprValueToRefValue(ev *exprpb.ExprValue) (ref.Val, error)
- func RefValueToExprValue(res ref.Val, err error) (*exprpb.ExprValue, error)
- func RefValueToValue(res ref.Val) (*exprpb.Value, error)
- func ValueToRefValue(v *exprpb.Value) (ref.Val, error)
- type ConformanceServer
- func (s *ConformanceServer) Check(ctx context.Context, in *exprpb.CheckRequest) (*exprpb.CheckResponse, error)
- func (s *ConformanceServer) Eval(ctx context.Context, in *exprpb.EvalRequest) (*exprpb.EvalResponse, error)
- func (s *ConformanceServer) Parse(ctx context.Context, in *exprpb.ParseRequest) (*exprpb.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.
func RefValueToExprValue ¶
RefValueToExprValue converts between ref.Val and exprpb.ExprValue.
func RefValueToValue ¶
RefValueToValue converts between ref.Val and Value. The ref.Val must not be error or unknown.
Types ¶
type ConformanceServer ¶
type ConformanceServer struct{}
ConformanceServer contains the server state.
func (*ConformanceServer) Check ¶
func (s *ConformanceServer) Check(ctx context.Context, in *exprpb.CheckRequest) (*exprpb.CheckResponse, error)
Check implements ConformanceService.Check.
func (*ConformanceServer) Eval ¶
func (s *ConformanceServer) Eval(ctx context.Context, in *exprpb.EvalRequest) (*exprpb.EvalResponse, error)
Eval implements ConformanceService.Eval.
func (*ConformanceServer) Parse ¶
func (s *ConformanceServer) Parse(ctx context.Context, in *exprpb.ParseRequest) (*exprpb.ParseResponse, error)
Parse implements ConformanceService.Parse.
Click to show internal directories.
Click to hide internal directories.