snapshot of https://github.com/ory/keto.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
// Copyright © 2026 Ory Corp
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Code generated by protoc-gen-connect-go. DO NOT EDIT.
|
||||
//
|
||||
// Source: ory/keto/opl/v1alpha1/syntax_service.proto
|
||||
|
||||
package oplconnect
|
||||
|
||||
import (
|
||||
connect "connectrpc.com/connect"
|
||||
context "context"
|
||||
errors "errors"
|
||||
v1alpha1 "github.com/ory/keto/gen/go/ory/keto/opl/v1alpha1"
|
||||
http "net/http"
|
||||
strings "strings"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file and the connect package are
|
||||
// compatible. If you get a compiler error that this constant is not defined, this code was
|
||||
// generated with a version of connect newer than the one compiled into your binary. You can fix the
|
||||
// problem by either regenerating this code with an older version of connect or updating the connect
|
||||
// version compiled into your binary.
|
||||
const _ = connect.IsAtLeastVersion1_13_0
|
||||
|
||||
const (
|
||||
// SyntaxServiceName is the fully-qualified name of the SyntaxService service.
|
||||
SyntaxServiceName = "ory.keto.opl.v1alpha1.SyntaxService"
|
||||
)
|
||||
|
||||
// These constants are the fully-qualified names of the RPCs defined in this package. They're
|
||||
// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
|
||||
//
|
||||
// Note that these are different from the fully-qualified method names used by
|
||||
// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
|
||||
// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
|
||||
// period.
|
||||
const (
|
||||
// SyntaxServiceCheckProcedure is the fully-qualified name of the SyntaxService's Check RPC.
|
||||
SyntaxServiceCheckProcedure = "/ory.keto.opl.v1alpha1.SyntaxService/Check"
|
||||
)
|
||||
|
||||
// SyntaxServiceClient is a client for the ory.keto.opl.v1alpha1.SyntaxService service.
|
||||
type SyntaxServiceClient interface {
|
||||
// Performs a syntax check request.
|
||||
Check(context.Context, *connect.Request[v1alpha1.CheckRequest]) (*connect.Response[v1alpha1.CheckResponse], error)
|
||||
}
|
||||
|
||||
// NewSyntaxServiceClient constructs a client for the ory.keto.opl.v1alpha1.SyntaxService service.
|
||||
// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped
|
||||
// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
|
||||
// connect.WithGRPC() or connect.WithGRPCWeb() options.
|
||||
//
|
||||
// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
|
||||
// http://api.acme.com or https://acme.com/grpc).
|
||||
func NewSyntaxServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SyntaxServiceClient {
|
||||
baseURL = strings.TrimRight(baseURL, "/")
|
||||
syntaxServiceMethods := v1alpha1.File_ory_keto_opl_v1alpha1_syntax_service_proto.Services().ByName("SyntaxService").Methods()
|
||||
return &syntaxServiceClient{
|
||||
check: connect.NewClient[v1alpha1.CheckRequest, v1alpha1.CheckResponse](
|
||||
httpClient,
|
||||
baseURL+SyntaxServiceCheckProcedure,
|
||||
connect.WithSchema(syntaxServiceMethods.ByName("Check")),
|
||||
connect.WithClientOptions(opts...),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// syntaxServiceClient implements SyntaxServiceClient.
|
||||
type syntaxServiceClient struct {
|
||||
check *connect.Client[v1alpha1.CheckRequest, v1alpha1.CheckResponse]
|
||||
}
|
||||
|
||||
// Check calls ory.keto.opl.v1alpha1.SyntaxService.Check.
|
||||
func (c *syntaxServiceClient) Check(ctx context.Context, req *connect.Request[v1alpha1.CheckRequest]) (*connect.Response[v1alpha1.CheckResponse], error) {
|
||||
return c.check.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// SyntaxServiceHandler is an implementation of the ory.keto.opl.v1alpha1.SyntaxService service.
|
||||
type SyntaxServiceHandler interface {
|
||||
// Performs a syntax check request.
|
||||
Check(context.Context, *connect.Request[v1alpha1.CheckRequest]) (*connect.Response[v1alpha1.CheckResponse], error)
|
||||
}
|
||||
|
||||
// NewSyntaxServiceHandler builds an HTTP handler from the service implementation. It returns the
|
||||
// path on which to mount the handler and the handler itself.
|
||||
//
|
||||
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
||||
// and JSON codecs. They also support gzip compression.
|
||||
func NewSyntaxServiceHandler(svc SyntaxServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
||||
syntaxServiceMethods := v1alpha1.File_ory_keto_opl_v1alpha1_syntax_service_proto.Services().ByName("SyntaxService").Methods()
|
||||
syntaxServiceCheckHandler := connect.NewUnaryHandler(
|
||||
SyntaxServiceCheckProcedure,
|
||||
svc.Check,
|
||||
connect.WithSchema(syntaxServiceMethods.ByName("Check")),
|
||||
connect.WithHandlerOptions(opts...),
|
||||
)
|
||||
return "/ory.keto.opl.v1alpha1.SyntaxService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
case SyntaxServiceCheckProcedure:
|
||||
syntaxServiceCheckHandler.ServeHTTP(w, r)
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// UnimplementedSyntaxServiceHandler returns CodeUnimplemented from all methods.
|
||||
type UnimplementedSyntaxServiceHandler struct{}
|
||||
|
||||
func (UnimplementedSyntaxServiceHandler) Check(context.Context, *connect.Request[v1alpha1.CheckRequest]) (*connect.Response[v1alpha1.CheckResponse], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("ory.keto.opl.v1alpha1.SyntaxService.Check is not implemented"))
|
||||
}
|
||||
302
gen/go/ory/keto/opl/v1alpha1/syntax_service.pb.go
Normal file
302
gen/go/ory/keto/opl/v1alpha1/syntax_service.pb.go
Normal file
@@ -0,0 +1,302 @@
|
||||
// Copyright © 2026 Ory Corp
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: ory/keto/opl/v1alpha1/syntax_service.proto
|
||||
|
||||
package opl
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type CheckRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CheckRequest) Reset() {
|
||||
*x = CheckRequest{}
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CheckRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CheckRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CheckRequest) Descriptor() ([]byte, []int) {
|
||||
return file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CheckRequest) GetContent() []byte {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CheckResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ParseErrors []*ParseError `protobuf:"bytes,1,rep,name=parse_errors,json=parseErrors,proto3" json:"parse_errors,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CheckResponse) Reset() {
|
||||
*x = CheckResponse{}
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CheckResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CheckResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CheckResponse) Descriptor() ([]byte, []int) {
|
||||
return file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CheckResponse) GetParseErrors() []*ParseError {
|
||||
if x != nil {
|
||||
return x.ParseErrors
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ParseError struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||
Start *SourcePosition `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
|
||||
End *SourcePosition `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ParseError) Reset() {
|
||||
*x = ParseError{}
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ParseError) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ParseError) ProtoMessage() {}
|
||||
|
||||
func (x *ParseError) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ParseError.ProtoReflect.Descriptor instead.
|
||||
func (*ParseError) Descriptor() ([]byte, []int) {
|
||||
return file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ParseError) GetMessage() string {
|
||||
if x != nil {
|
||||
return x.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ParseError) GetStart() *SourcePosition {
|
||||
if x != nil {
|
||||
return x.Start
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ParseError) GetEnd() *SourcePosition {
|
||||
if x != nil {
|
||||
return x.End
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SourcePosition struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Line uint32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
|
||||
Column uint32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SourcePosition) Reset() {
|
||||
*x = SourcePosition{}
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SourcePosition) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SourcePosition) ProtoMessage() {}
|
||||
|
||||
func (x *SourcePosition) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SourcePosition.ProtoReflect.Descriptor instead.
|
||||
func (*SourcePosition) Descriptor() ([]byte, []int) {
|
||||
return file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SourcePosition) GetLine() uint32 {
|
||||
if x != nil {
|
||||
return x.Line
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SourcePosition) GetColumn() uint32 {
|
||||
if x != nil {
|
||||
return x.Column
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_ory_keto_opl_v1alpha1_syntax_service_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"*ory/keto/opl/v1alpha1/syntax_service.proto\x12\x15ory.keto.opl.v1alpha1\"(\n" +
|
||||
"\fCheckRequest\x12\x18\n" +
|
||||
"\acontent\x18\x01 \x01(\fR\acontent\"U\n" +
|
||||
"\rCheckResponse\x12D\n" +
|
||||
"\fparse_errors\x18\x01 \x03(\v2!.ory.keto.opl.v1alpha1.ParseErrorR\vparseErrors\"\x9c\x01\n" +
|
||||
"\n" +
|
||||
"ParseError\x12\x18\n" +
|
||||
"\amessage\x18\x01 \x01(\tR\amessage\x12;\n" +
|
||||
"\x05start\x18\x02 \x01(\v2%.ory.keto.opl.v1alpha1.SourcePositionR\x05start\x127\n" +
|
||||
"\x03end\x18\x03 \x01(\v2%.ory.keto.opl.v1alpha1.SourcePositionR\x03end\"<\n" +
|
||||
"\x0eSourcePosition\x12\x12\n" +
|
||||
"\x04line\x18\x01 \x01(\rR\x04line\x12\x16\n" +
|
||||
"\x06column\x18\x02 \x01(\rR\x06column2c\n" +
|
||||
"\rSyntaxService\x12R\n" +
|
||||
"\x05Check\x12#.ory.keto.opl.v1alpha1.CheckRequest\x1a$.ory.keto.opl.v1alpha1.CheckResponseB\xdc\x01\n" +
|
||||
"\x19com.ory.keto.opl.v1alpha1B\x12SyntaxServiceProtoP\x01Z4github.com/ory/keto/gen/go/ory/keto/opl/v1alpha1;opl\xa2\x02\x03OKO\xaa\x02\x15Ory.Keto.Opl.V1alpha1\xca\x02\x15Ory\\Keto\\Opl\\V1alpha1\xe2\x02!Ory\\Keto\\Opl\\V1alpha1\\GPBMetadata\xea\x02\x18Ory::Keto::Opl::V1alpha1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescOnce sync.Once
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescGZIP() []byte {
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescOnce.Do(func() {
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDesc), len(file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDesc)))
|
||||
})
|
||||
return file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_ory_keto_opl_v1alpha1_syntax_service_proto_goTypes = []any{
|
||||
(*CheckRequest)(nil), // 0: ory.keto.opl.v1alpha1.CheckRequest
|
||||
(*CheckResponse)(nil), // 1: ory.keto.opl.v1alpha1.CheckResponse
|
||||
(*ParseError)(nil), // 2: ory.keto.opl.v1alpha1.ParseError
|
||||
(*SourcePosition)(nil), // 3: ory.keto.opl.v1alpha1.SourcePosition
|
||||
}
|
||||
var file_ory_keto_opl_v1alpha1_syntax_service_proto_depIdxs = []int32{
|
||||
2, // 0: ory.keto.opl.v1alpha1.CheckResponse.parse_errors:type_name -> ory.keto.opl.v1alpha1.ParseError
|
||||
3, // 1: ory.keto.opl.v1alpha1.ParseError.start:type_name -> ory.keto.opl.v1alpha1.SourcePosition
|
||||
3, // 2: ory.keto.opl.v1alpha1.ParseError.end:type_name -> ory.keto.opl.v1alpha1.SourcePosition
|
||||
0, // 3: ory.keto.opl.v1alpha1.SyntaxService.Check:input_type -> ory.keto.opl.v1alpha1.CheckRequest
|
||||
1, // 4: ory.keto.opl.v1alpha1.SyntaxService.Check:output_type -> ory.keto.opl.v1alpha1.CheckResponse
|
||||
4, // [4:5] is the sub-list for method output_type
|
||||
3, // [3:4] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_ory_keto_opl_v1alpha1_syntax_service_proto_init() }
|
||||
func file_ory_keto_opl_v1alpha1_syntax_service_proto_init() {
|
||||
if File_ory_keto_opl_v1alpha1_syntax_service_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDesc), len(file_ory_keto_opl_v1alpha1_syntax_service_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_ory_keto_opl_v1alpha1_syntax_service_proto_goTypes,
|
||||
DependencyIndexes: file_ory_keto_opl_v1alpha1_syntax_service_proto_depIdxs,
|
||||
MessageInfos: file_ory_keto_opl_v1alpha1_syntax_service_proto_msgTypes,
|
||||
}.Build()
|
||||
File_ory_keto_opl_v1alpha1_syntax_service_proto = out.File
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_goTypes = nil
|
||||
file_ory_keto_opl_v1alpha1_syntax_service_proto_depIdxs = nil
|
||||
}
|
||||
130
gen/go/ory/keto/opl/v1alpha1/syntax_service_grpc.pb.go
Normal file
130
gen/go/ory/keto/opl/v1alpha1/syntax_service_grpc.pb.go
Normal file
@@ -0,0 +1,130 @@
|
||||
// Copyright © 2026 Ory Corp
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: ory/keto/opl/v1alpha1/syntax_service.proto
|
||||
|
||||
package opl
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
SyntaxService_Check_FullMethodName = "/ory.keto.opl.v1alpha1.SyntaxService/Check"
|
||||
)
|
||||
|
||||
// SyntaxServiceClient is the client API for SyntaxService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
//
|
||||
// The service that checks the syntax of an OPL file.
|
||||
type SyntaxServiceClient interface {
|
||||
// Performs a syntax check request.
|
||||
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
|
||||
}
|
||||
|
||||
type syntaxServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewSyntaxServiceClient(cc grpc.ClientConnInterface) SyntaxServiceClient {
|
||||
return &syntaxServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *syntaxServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CheckResponse)
|
||||
err := c.cc.Invoke(ctx, SyntaxService_Check_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// SyntaxServiceServer is the server API for SyntaxService service.
|
||||
// All implementations must embed UnimplementedSyntaxServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// The service that checks the syntax of an OPL file.
|
||||
type SyntaxServiceServer interface {
|
||||
// Performs a syntax check request.
|
||||
Check(context.Context, *CheckRequest) (*CheckResponse, error)
|
||||
mustEmbedUnimplementedSyntaxServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedSyntaxServiceServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedSyntaxServiceServer struct{}
|
||||
|
||||
func (UnimplementedSyntaxServiceServer) Check(context.Context, *CheckRequest) (*CheckResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Check not implemented")
|
||||
}
|
||||
func (UnimplementedSyntaxServiceServer) mustEmbedUnimplementedSyntaxServiceServer() {}
|
||||
func (UnimplementedSyntaxServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeSyntaxServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to SyntaxServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeSyntaxServiceServer interface {
|
||||
mustEmbedUnimplementedSyntaxServiceServer()
|
||||
}
|
||||
|
||||
func RegisterSyntaxServiceServer(s grpc.ServiceRegistrar, srv SyntaxServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedSyntaxServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&SyntaxService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _SyntaxService_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SyntaxServiceServer).Check(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: SyntaxService_Check_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SyntaxServiceServer).Check(ctx, req.(*CheckRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// SyntaxService_ServiceDesc is the grpc.ServiceDesc for SyntaxService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var SyntaxService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "ory.keto.opl.v1alpha1.SyntaxService",
|
||||
HandlerType: (*SyntaxServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Check",
|
||||
Handler: _SyntaxService_Check_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "ory/keto/opl/v1alpha1/syntax_service.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user