refact: to use go-dbw CreateItems, DeleteItems (#4974)
* refact: to use go-dbw CreateItems, DeleteItems Latest version of go-dbw updated the signature of CreateItems(...) and DeleteItems(...) on a happy note this latest version of go-dbw actually does batch inserts and updates for this functions. * all: regenerate protos with new protoc-gen-go version
This commit is contained in:
167 files changed
+2254
-2248
No files matched your search
@@ -3,7 +3,7 @@
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.33.0
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc (unknown)
|
||||
// source: controller/api/services/v1/role_service.proto
|
||||
|
||||
@@ -2045,7 +2045,7 @@ func file_controller_api_services_v1_role_service_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_controller_api_services_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
|
||||
var file_controller_api_services_v1_role_service_proto_goTypes = []interface{}{
|
||||
var file_controller_api_services_v1_role_service_proto_goTypes = []any{
|
||||
(*GetRoleRequest)(nil), // 0: controller.api.services.v1.GetRoleRequest
|
||||
(*GetRoleResponse)(nil), // 1: controller.api.services.v1.GetRoleResponse
|
||||
(*ListRolesRequest)(nil), // 2: controller.api.services.v1.ListRolesRequest
|
||||
@@ -2135,7 +2135,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GetRoleRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2147,7 +2147,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GetRoleResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2159,7 +2159,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListRolesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2171,7 +2171,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListRolesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2183,7 +2183,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CreateRoleRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2195,7 +2195,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CreateRoleResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2207,7 +2207,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UpdateRoleRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2219,7 +2219,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UpdateRoleResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2231,7 +2231,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeleteRoleRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2243,7 +2243,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeleteRoleResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2255,7 +2255,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRolePrincipalsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2267,7 +2267,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRolePrincipalsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2279,7 +2279,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRolePrincipalsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2291,7 +2291,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRolePrincipalsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2303,7 +2303,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRolePrincipalsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2315,7 +2315,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRolePrincipalsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2327,7 +2327,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRoleGrantsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2339,7 +2339,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRoleGrantsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2351,7 +2351,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRoleGrantsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2363,7 +2363,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRoleGrantsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2375,7 +2375,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRoleGrantsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2387,7 +2387,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRoleGrantsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2399,7 +2399,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRoleGrantScopesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2411,7 +2411,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AddRoleGrantScopesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2423,7 +2423,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRoleGrantScopesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2435,7 +2435,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SetRoleGrantScopesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2447,7 +2447,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRoleGrantScopesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2459,7 +2459,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RemoveRoleGrantScopesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
||||
Reference in new issue
Block a user