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:
299
proto/ory/keto/opl/v1alpha1/syntax_service.pb.go
generated
Normal file
299
proto/ory/keto/opl/v1alpha1/syntax_service.pb.go
generated
Normal file
@@ -0,0 +1,299 @@
|
||||
// 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
|
||||
}
|
||||
28
proto/ory/keto/opl/v1alpha1/syntax_service.proto
Normal file
28
proto/ory/keto/opl/v1alpha1/syntax_service.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package ory.keto.opl.v1alpha1;
|
||||
|
||||
// The service that checks the syntax of an OPL file.
|
||||
service SyntaxService {
|
||||
// Performs a syntax check request.
|
||||
rpc Check(CheckRequest) returns (CheckResponse);
|
||||
}
|
||||
|
||||
message CheckRequest {
|
||||
bytes content = 1;
|
||||
}
|
||||
|
||||
message CheckResponse {
|
||||
repeated ParseError parse_errors = 1;
|
||||
}
|
||||
|
||||
message ParseError {
|
||||
string message = 1;
|
||||
SourcePosition start = 2;
|
||||
SourcePosition end = 3;
|
||||
}
|
||||
|
||||
message SourcePosition {
|
||||
uint32 line = 1;
|
||||
uint32 column = 2;
|
||||
}
|
||||
127
proto/ory/keto/opl/v1alpha1/syntax_service_grpc.pb.go
generated
Normal file
127
proto/ory/keto/opl/v1alpha1/syntax_service_grpc.pb.go
generated
Normal file
@@ -0,0 +1,127 @@
|
||||
// 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