schema

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const RouteBase = "/opl/syntax/check"

Variables

This section is empty.

Functions

func Lex

func Lex(name, input string) *lexer

Lex creates a new scanner for the input string.

func LibfuzzerFuzzParser

func LibfuzzerFuzzParser(data []byte) int

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(d handlerDependencies) *Handler

func (*Handler) Check

func (h *Handler) Check(_ context.Context, request *opl.CheckRequest) (*opl.CheckResponse, error)

func (*Handler) RegisterSyntaxGRPC

func (h *Handler) RegisterSyntaxGRPC(s *grpc.Server)

func (*Handler) RegisterSyntaxRoutes

func (h *Handler) RegisterSyntaxRoutes(r *x.OPLSyntaxRouter)

type ParseError

type ParseError struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(input string) ([]namespace, []*ParseError)

func (*ParseError) Error

func (e *ParseError) Error() string

func (*ParseError) ToAPI

func (e *ParseError) ToAPI() *ketoapi.ParseError

func (*ParseError) ToProto

func (e *ParseError) ToProto() *opl.ParseError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL