Rename the module, proto service, and all identifiers from simple_bank/ SimpleBank to api_tmpl/ApiTmpl, and regenerate the gRPC/gateway/swagger/ mock code accordingly. - Scrub real secrets (SMTP password, auth token secret) from api.env/ api_test.env, untrack them, and add api.env.example/api_test.env.example - Remove committed build artifacts (tmp/main, tmp/build-errors.log, dbml-error.log) and gitignore them going forward - Fix Dockerfile paths (build target, migrations copy) that referenced a stale project layout - Rewrite README to match the actual cmd/ + internal/ structure and add a "using this as a template" section
93 lines
4.2 KiB
Go
93 lines
4.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v7.36.0
|
|
// source: service_api_tmpl.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
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)
|
|
)
|
|
|
|
var File_service_api_tmpl_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_api_tmpl_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x16service_api_tmpl.proto\x12\x02pb\x1a\x1cgoogle/api/annotations.proto\x1a\x15rpc_create_user.proto\x1a\x14rpc_login_user.proto\x1a\x15rpc_update_user.proto\x1a\x16rpc_verify_email.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\x8b\x04\n" +
|
|
"\aApiTmpl\x12{\n" +
|
|
"\n" +
|
|
"CreateUser\x12\x15.pb.CreateUserRequest\x1a\x16.pb.CreateUserResponse\">\x92A!\x12\vCreate User\x1a\x12Create a new user.\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/create_user\x12{\n" +
|
|
"\tLoginUser\x12\x14.pb.LoginUserRequest\x1a\x15.pb.LoginUserResponse\"A\x92A%\x12\n" +
|
|
"Login User\x1a\x17Login an existing user.\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v1/login_user\x12\x81\x01\n" +
|
|
"\vVerifyEmail\x12\x16.pb.VerifyEmailRequest\x1a\x17.pb.VerifyEmailResponse\"A\x92A&\x12\fVerify Email\x1a\x16Verify a user's email.\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/verify_email\x12\x81\x01\n" +
|
|
"\n" +
|
|
"UpdateUser\x12\x15.pb.UpdateUserRequest\x1a\x16.pb.UpdateUserResponse\"D\x92A'\x12\vUpdate User\x1a\x18Update an existing user.\x82\xd3\xe4\x93\x02\x14:\x01*2\x0f/v1/update_userB\x92\x01\x92Af\x12d\n" +
|
|
"\fAPI Template\"M\n" +
|
|
"\bfvideira\x12,https://github.com/FernandoJVideira/api_tmpl\x1a\[email protected]\x050.0.1Z'github.com/FernandoJVideira/api_tmpl/pbb\x06proto3"
|
|
|
|
var file_service_api_tmpl_proto_goTypes = []any{
|
|
(*CreateUserRequest)(nil), // 0: pb.CreateUserRequest
|
|
(*LoginUserRequest)(nil), // 1: pb.LoginUserRequest
|
|
(*VerifyEmailRequest)(nil), // 2: pb.VerifyEmailRequest
|
|
(*UpdateUserRequest)(nil), // 3: pb.UpdateUserRequest
|
|
(*CreateUserResponse)(nil), // 4: pb.CreateUserResponse
|
|
(*LoginUserResponse)(nil), // 5: pb.LoginUserResponse
|
|
(*VerifyEmailResponse)(nil), // 6: pb.VerifyEmailResponse
|
|
(*UpdateUserResponse)(nil), // 7: pb.UpdateUserResponse
|
|
}
|
|
var file_service_api_tmpl_proto_depIdxs = []int32{
|
|
0, // 0: pb.ApiTmpl.CreateUser:input_type -> pb.CreateUserRequest
|
|
1, // 1: pb.ApiTmpl.LoginUser:input_type -> pb.LoginUserRequest
|
|
2, // 2: pb.ApiTmpl.VerifyEmail:input_type -> pb.VerifyEmailRequest
|
|
3, // 3: pb.ApiTmpl.UpdateUser:input_type -> pb.UpdateUserRequest
|
|
4, // 4: pb.ApiTmpl.CreateUser:output_type -> pb.CreateUserResponse
|
|
5, // 5: pb.ApiTmpl.LoginUser:output_type -> pb.LoginUserResponse
|
|
6, // 6: pb.ApiTmpl.VerifyEmail:output_type -> pb.VerifyEmailResponse
|
|
7, // 7: pb.ApiTmpl.UpdateUser:output_type -> pb.UpdateUserResponse
|
|
4, // [4:8] is the sub-list for method output_type
|
|
0, // [0:4] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_api_tmpl_proto_init() }
|
|
func file_service_api_tmpl_proto_init() {
|
|
if File_service_api_tmpl_proto != nil {
|
|
return
|
|
}
|
|
file_rpc_create_user_proto_init()
|
|
file_rpc_login_user_proto_init()
|
|
file_rpc_update_user_proto_init()
|
|
file_rpc_verify_email_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_api_tmpl_proto_rawDesc), len(file_service_api_tmpl_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_api_tmpl_proto_goTypes,
|
|
DependencyIndexes: file_service_api_tmpl_proto_depIdxs,
|
|
}.Build()
|
|
File_service_api_tmpl_proto = out.File
|
|
file_service_api_tmpl_proto_goTypes = nil
|
|
file_service_api_tmpl_proto_depIdxs = nil
|
|
}
|