looprpc: convert looprpc into a versioned module

This commit transforms the looprpc subpackage into a versioned module.
By doing so, projects that rely solely on the generated RPC code from
the proto files will benefit from significantly reduced dependencies
during compilation.
This commit is contained in:
Andras Banki-Horvath 2024-08-16 17:34:30 +02:00
parent 07791664c6
commit 64886dfc66
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
6 changed files with 1656 additions and 95 deletions

View file

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc v3.21.12
// source: debug.proto
@ -128,7 +128,7 @@ func file_debug_proto_rawDescGZIP() []byte {
}
var file_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_debug_proto_goTypes = []interface{}{
var file_debug_proto_goTypes = []any{
(*ForceAutoLoopRequest)(nil), // 0: looprpc.ForceAutoLoopRequest
(*ForceAutoLoopResponse)(nil), // 1: looprpc.ForceAutoLoopResponse
}
@ -148,7 +148,7 @@ func file_debug_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_debug_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*ForceAutoLoopRequest); i {
case 0:
return &v.state
@ -160,7 +160,7 @@ func file_debug_proto_init() {
return nil
}
}
file_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_debug_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ForceAutoLoopResponse); i {
case 0:
return &v.state