-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jzelinskie/legacy-registration
v0: add legacy registration
- Loading branch information
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package v0 | ||
|
||
import "google.golang.org/grpc" | ||
|
||
// RegisterACLServiceServer registers an ACLService under its legacy | ||
// package-less descriptor. | ||
func RegisterLegacyACLServiceServer(s grpc.ServiceRegistrar, srv ACLServiceServer) { | ||
s.RegisterService(&Legacy_ACLService_ServiceDesc, srv) | ||
} | ||
|
||
// Legacy_ACLService_ServiceDesc is an grpc.ServiceDesc for the original | ||
// ACLService service that had no Protobuf package. | ||
// | ||
// It's only intended for direct use with grpc.RegisterService, | ||
// and not to be introspected or modified (even as a copy) | ||
var Legacy_ACLService_ServiceDesc = grpc.ServiceDesc{ | ||
ServiceName: "ACLService", | ||
HandlerType: (*ACLServiceServer)(nil), | ||
Methods: []grpc.MethodDesc{ | ||
{ | ||
MethodName: "Read", | ||
Handler: _ACLService_Read_Handler, | ||
}, | ||
{ | ||
MethodName: "Write", | ||
Handler: _ACLService_Write_Handler, | ||
}, | ||
{ | ||
MethodName: "Check", | ||
Handler: _ACLService_Check_Handler, | ||
}, | ||
{ | ||
MethodName: "ContentChangeCheck", | ||
Handler: _ACLService_ContentChangeCheck_Handler, | ||
}, | ||
{ | ||
MethodName: "Expand", | ||
Handler: _ACLService_Expand_Handler, | ||
}, | ||
{ | ||
MethodName: "Lookup", | ||
Handler: _ACLService_Lookup_Handler, | ||
}, | ||
}, | ||
Streams: []grpc.StreamDesc{}, | ||
Metadata: "authzed/api/v0/acl_service.proto", | ||
} | ||
|
||
// RegisterLegacyNamespaceServiceServer registers a NamespaceService under | ||
// its legacy package-less descriptor. | ||
func RegisterLegacyNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer) { | ||
s.RegisterService(&Legacy_NamespaceService_ServiceDesc, srv) | ||
} | ||
|
||
// Legacy_NamespaceService_ServiceDesc is an grpc.ServiceDesc for the original | ||
// NamespaceService service that had no Protobuf package. | ||
// | ||
// It's only intended for direct use with grpc.RegisterService, | ||
// and not to be introspected or modified (even as a copy) | ||
var Legacy_NamespaceService_ServiceDesc = grpc.ServiceDesc{ | ||
ServiceName: "NamespaceService", | ||
HandlerType: (*NamespaceServiceServer)(nil), | ||
Methods: []grpc.MethodDesc{ | ||
{ | ||
MethodName: "ReadConfig", | ||
Handler: _NamespaceService_ReadConfig_Handler, | ||
}, | ||
{ | ||
MethodName: "WriteConfig", | ||
Handler: _NamespaceService_WriteConfig_Handler, | ||
}, | ||
}, | ||
Streams: []grpc.StreamDesc{}, | ||
Metadata: "authzed/api/v0/namespace_service.proto", | ||
} |