feat: 0.0.1
This commit is contained in:
146 files changed
+10444
No files matched your search
@@ -0,0 +1,232 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc v6.33.1
|
||||
// source: rpc_login_user.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
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 LoginUserRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LoginUserRequest) Reset() {
|
||||
*x = LoginUserRequest{}
|
||||
mi := &file_rpc_login_user_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LoginUserRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*LoginUserRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginUserRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_rpc_login_user_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 LoginUserRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginUserRequest) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_login_user_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *LoginUserRequest) GetUsername() string {
|
||||
if x != nil {
|
||||
return x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LoginUserRequest) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type LoginUserResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||||
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||
AccessTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=access_token_expires_at,json=accessTokenExpiresAt,proto3" json:"access_token_expires_at,omitempty"`
|
||||
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
RefreshTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=refresh_token_expires_at,json=refreshTokenExpiresAt,proto3" json:"refresh_token_expires_at,omitempty"`
|
||||
User *User `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) Reset() {
|
||||
*x = LoginUserResponse{}
|
||||
mi := &file_rpc_login_user_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*LoginUserResponse) ProtoMessage() {}
|
||||
|
||||
func (x *LoginUserResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_rpc_login_user_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 LoginUserResponse.ProtoReflect.Descriptor instead.
|
||||
func (*LoginUserResponse) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_login_user_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetSessionId() string {
|
||||
if x != nil {
|
||||
return x.SessionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetAccessToken() string {
|
||||
if x != nil {
|
||||
return x.AccessToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.AccessTokenExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetRefreshToken() string {
|
||||
if x != nil {
|
||||
return x.RefreshToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.RefreshTokenExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LoginUserResponse) GetUser() *User {
|
||||
if x != nil {
|
||||
return x.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_rpc_login_user_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_rpc_login_user_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x14rpc_login_user.proto\x12\x02pb\x1a\n" +
|
||||
"user.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"J\n" +
|
||||
"\x10LoginUserRequest\x12\x1a\n" +
|
||||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"\xc0\x02\n" +
|
||||
"\x11LoginUserResponse\x12\x1d\n" +
|
||||
"\n" +
|
||||
"session_id\x18\x01 \x01(\tR\tsessionId\x12!\n" +
|
||||
"\faccess_token\x18\x02 \x01(\tR\vaccessToken\x12Q\n" +
|
||||
"\x17access_token_expires_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x14accessTokenExpiresAt\x12#\n" +
|
||||
"\rrefresh_token\x18\x04 \x01(\tR\frefreshToken\x12S\n" +
|
||||
"\x18refresh_token_expires_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x15refreshTokenExpiresAt\x12\x1c\n" +
|
||||
"\x04user\x18\x06 \x01(\v2\b.pb.UserR\x04userB,Z*github.com/FernandoJVideira/simple_bank/pbb\x06proto3"
|
||||
|
||||
var (
|
||||
file_rpc_login_user_proto_rawDescOnce sync.Once
|
||||
file_rpc_login_user_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_rpc_login_user_proto_rawDescGZIP() []byte {
|
||||
file_rpc_login_user_proto_rawDescOnce.Do(func() {
|
||||
file_rpc_login_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_login_user_proto_rawDesc), len(file_rpc_login_user_proto_rawDesc)))
|
||||
})
|
||||
return file_rpc_login_user_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_rpc_login_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_rpc_login_user_proto_goTypes = []any{
|
||||
(*LoginUserRequest)(nil), // 0: pb.LoginUserRequest
|
||||
(*LoginUserResponse)(nil), // 1: pb.LoginUserResponse
|
||||
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
||||
(*User)(nil), // 3: pb.User
|
||||
}
|
||||
var file_rpc_login_user_proto_depIdxs = []int32{
|
||||
2, // 0: pb.LoginUserResponse.access_token_expires_at:type_name -> google.protobuf.Timestamp
|
||||
2, // 1: pb.LoginUserResponse.refresh_token_expires_at:type_name -> google.protobuf.Timestamp
|
||||
3, // 2: pb.LoginUserResponse.user:type_name -> pb.User
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] 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_rpc_login_user_proto_init() }
|
||||
func file_rpc_login_user_proto_init() {
|
||||
if File_rpc_login_user_proto != nil {
|
||||
return
|
||||
}
|
||||
file_user_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_login_user_proto_rawDesc), len(file_rpc_login_user_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_rpc_login_user_proto_goTypes,
|
||||
DependencyIndexes: file_rpc_login_user_proto_depIdxs,
|
||||
MessageInfos: file_rpc_login_user_proto_msgTypes,
|
||||
}.Build()
|
||||
File_rpc_login_user_proto = out.File
|
||||
file_rpc_login_user_proto_goTypes = nil
|
||||
file_rpc_login_user_proto_depIdxs = nil
|
||||
}
|
||||
Reference in new issue
Block a user