auth

package
v0.0.0-...-fe5d25b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuthService_DeleteUser_FullMethodName   = "/auth.AuthService/DeleteUser"
	AuthService_FindAllUsers_FullMethodName = "/auth.AuthService/FindAllUsers"
	AuthService_FindMe_FullMethodName       = "/auth.AuthService/FindMe"
	AuthService_FindOneUser_FullMethodName  = "/auth.AuthService/FindOneUser"
	AuthService_Login_FullMethodName        = "/auth.AuthService/Login"
	AuthService_Register_FullMethodName     = "/auth.AuthService/Register"
	AuthService_UpdateUser_FullMethodName   = "/auth.AuthService/UpdateUser"
	AuthService_Validate_FullMethodName     = "/auth.AuthService/Validate"
)

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DeleteUser",
			Handler:    _AuthService_DeleteUser_Handler,
		},
		{
			MethodName: "FindAllUsers",
			Handler:    _AuthService_FindAllUsers_Handler,
		},
		{
			MethodName: "FindMe",
			Handler:    _AuthService_FindMe_Handler,
		},
		{
			MethodName: "FindOneUser",
			Handler:    _AuthService_FindOneUser_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _AuthService_UpdateUser_Handler,
		},
		{
			MethodName: "Validate",
			Handler:    _AuthService_Validate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_auth_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceHandler

func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthServiceHandlerClient

func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error

RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.

func RegisterAuthServiceHandlerFromEndpoint

func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthServiceHandlerServer

func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error

RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead.

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	FindAllUsers(ctx context.Context, in *FindAllUsersRequest, opts ...grpc.CallOption) (*FindAllUsersResponse, error)
	FindMe(ctx context.Context, in *FindOneUserRequest, opts ...grpc.CallOption) (*FindOneUserResponse, error)
	FindOneUser(ctx context.Context, in *FindOneUserRequest, opts ...grpc.CallOption) (*FindOneUserResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type DeleteUserRequest

type DeleteUserRequest struct {
	Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() []string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	Timestamp    string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level        string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	Message      string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Status       uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Error        string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	RowsAffected uint64 `protobuf:"varint,6,opt,name=rowsAffected,proto3" json:"rowsAffected,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

func (*DeleteUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetError

func (x *DeleteUserResponse) GetError() string

func (*DeleteUserResponse) GetLevel

func (x *DeleteUserResponse) GetLevel() string

func (*DeleteUserResponse) GetMessage

func (x *DeleteUserResponse) GetMessage() string

func (*DeleteUserResponse) GetRowsAffected

func (x *DeleteUserResponse) GetRowsAffected() uint64

func (*DeleteUserResponse) GetStatus

func (x *DeleteUserResponse) GetStatus() uint64

func (*DeleteUserResponse) GetTimestamp

func (x *DeleteUserResponse) GetTimestamp() string

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type FindAllUsersRequest

type FindAllUsersRequest struct {
	// contains filtered or unexported fields
}

Find All Users

func (*FindAllUsersRequest) Descriptor deprecated

func (*FindAllUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindAllUsersRequest.ProtoReflect.Descriptor instead.

func (*FindAllUsersRequest) ProtoMessage

func (*FindAllUsersRequest) ProtoMessage()

func (*FindAllUsersRequest) ProtoReflect

func (x *FindAllUsersRequest) ProtoReflect() protoreflect.Message

func (*FindAllUsersRequest) Reset

func (x *FindAllUsersRequest) Reset()

func (*FindAllUsersRequest) String

func (x *FindAllUsersRequest) String() string

type FindAllUsersResponse

type FindAllUsersResponse struct {
	Status uint64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string  `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Data   []*User `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*FindAllUsersResponse) Descriptor deprecated

func (*FindAllUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindAllUsersResponse.ProtoReflect.Descriptor instead.

func (*FindAllUsersResponse) GetData

func (x *FindAllUsersResponse) GetData() []*User

func (*FindAllUsersResponse) GetError

func (x *FindAllUsersResponse) GetError() string

func (*FindAllUsersResponse) GetStatus

func (x *FindAllUsersResponse) GetStatus() uint64

func (*FindAllUsersResponse) ProtoMessage

func (*FindAllUsersResponse) ProtoMessage()

func (*FindAllUsersResponse) ProtoReflect

func (x *FindAllUsersResponse) ProtoReflect() protoreflect.Message

func (*FindAllUsersResponse) Reset

func (x *FindAllUsersResponse) Reset()

func (*FindAllUsersResponse) String

func (x *FindAllUsersResponse) String() string

type FindOneUserRequest

type FindOneUserRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Find Users

func (*FindOneUserRequest) Descriptor deprecated

func (*FindOneUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindOneUserRequest.ProtoReflect.Descriptor instead.

func (*FindOneUserRequest) GetId

func (x *FindOneUserRequest) GetId() uint64

func (*FindOneUserRequest) ProtoMessage

func (*FindOneUserRequest) ProtoMessage()

func (*FindOneUserRequest) ProtoReflect

func (x *FindOneUserRequest) ProtoReflect() protoreflect.Message

func (*FindOneUserRequest) Reset

func (x *FindOneUserRequest) Reset()

func (*FindOneUserRequest) String

func (x *FindOneUserRequest) String() string

type FindOneUserResponse

type FindOneUserResponse struct {
	Status uint64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Data   *User  `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*FindOneUserResponse) Descriptor deprecated

func (*FindOneUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindOneUserResponse.ProtoReflect.Descriptor instead.

func (*FindOneUserResponse) GetData

func (x *FindOneUserResponse) GetData() *User

func (*FindOneUserResponse) GetError

func (x *FindOneUserResponse) GetError() string

func (*FindOneUserResponse) GetStatus

func (x *FindOneUserResponse) GetStatus() uint64

func (*FindOneUserResponse) ProtoMessage

func (*FindOneUserResponse) ProtoMessage()

func (*FindOneUserResponse) ProtoReflect

func (x *FindOneUserResponse) ProtoReflect() protoreflect.Message

func (*FindOneUserResponse) Reset

func (x *FindOneUserResponse) Reset()

func (*FindOneUserResponse) String

func (x *FindOneUserResponse) String() string

type LoginData

type LoginData struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Role  string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Id    uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginData) Descriptor deprecated

func (*LoginData) Descriptor() ([]byte, []int)

Deprecated: Use LoginData.ProtoReflect.Descriptor instead.

func (*LoginData) GetId

func (x *LoginData) GetId() uint64

func (*LoginData) GetRole

func (x *LoginData) GetRole() string

func (*LoginData) GetToken

func (x *LoginData) GetToken() string

func (*LoginData) ProtoMessage

func (*LoginData) ProtoMessage()

func (*LoginData) ProtoReflect

func (x *LoginData) ProtoReflect() protoreflect.Message

func (*LoginData) Reset

func (x *LoginData) Reset()

func (*LoginData) String

func (x *LoginData) String() string

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Timestamp string     `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level     string     `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	Message   string     `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Status    uint64     `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Error     string     `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	Data      *LoginData `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetData

func (x *LoginResponse) GetData() *LoginData

func (*LoginResponse) GetError

func (x *LoginResponse) GetError() string

func (*LoginResponse) GetLevel

func (x *LoginResponse) GetLevel() string

func (*LoginResponse) GetMessage

func (x *LoginResponse) GetMessage() string

func (*LoginResponse) GetStatus

func (x *LoginResponse) GetStatus() uint64

func (*LoginResponse) GetTimestamp

func (x *LoginResponse) GetTimestamp() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	Email     string                 `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password  string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	FirstName string                 `protobuf:"bytes,3,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName  string                 `protobuf:"bytes,4,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Bio       string                 `protobuf:"bytes,5,opt,name=bio,proto3" json:"bio,omitempty"`
	Role      string                 `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetBio

func (x *RegisterRequest) GetBio() string

func (*RegisterRequest) GetCreatedAt

func (x *RegisterRequest) GetCreatedAt() *timestamppb.Timestamp

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetFirstName

func (x *RegisterRequest) GetFirstName() string

func (*RegisterRequest) GetLastName

func (x *RegisterRequest) GetLastName() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetRole

func (x *RegisterRequest) GetRole() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level     string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Status    uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Error     string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	Data      *User  `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetData

func (x *RegisterResponse) GetData() *User

func (*RegisterResponse) GetError

func (x *RegisterResponse) GetError() string

func (*RegisterResponse) GetLevel

func (x *RegisterResponse) GetLevel() string

func (*RegisterResponse) GetMessage

func (x *RegisterResponse) GetMessage() string

func (*RegisterResponse) GetStatus

func (x *RegisterResponse) GetStatus() uint64

func (*RegisterResponse) GetTimestamp

func (x *RegisterResponse) GetTimestamp() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

func (x *RegisterResponse) ProtoReflect() protoreflect.Message

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) DeleteUser

func (UnimplementedAuthServiceServer) FindAllUsers

func (UnimplementedAuthServiceServer) FindMe

func (UnimplementedAuthServiceServer) FindOneUser

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Register

func (UnimplementedAuthServiceServer) UpdateUser

func (UnimplementedAuthServiceServer) Validate

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UpdateUserRequest

type UpdateUserRequest struct {
	Email     string                 `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password  string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	FirstName string                 `protobuf:"bytes,3,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName  string                 `protobuf:"bytes,4,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Bio       string                 `protobuf:"bytes,5,opt,name=bio,proto3" json:"bio,omitempty"`
	Role      string                 `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Id        uint64                 `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetBio

func (x *UpdateUserRequest) GetBio() string

func (*UpdateUserRequest) GetCreatedAt

func (x *UpdateUserRequest) GetCreatedAt() *timestamppb.Timestamp

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetFirstName

func (x *UpdateUserRequest) GetFirstName() string

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() uint64

func (*UpdateUserRequest) GetLastName

func (x *UpdateUserRequest) GetLastName() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) GetRole

func (x *UpdateUserRequest) GetRole() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

type UpdateUserResponse struct {
	Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level     string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Status    uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Error     string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	Data      *User  `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

func (*UpdateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetData

func (x *UpdateUserResponse) GetData() *User

func (*UpdateUserResponse) GetError

func (x *UpdateUserResponse) GetError() string

func (*UpdateUserResponse) GetLevel

func (x *UpdateUserResponse) GetLevel() string

func (*UpdateUserResponse) GetMessage

func (x *UpdateUserResponse) GetMessage() string

func (*UpdateUserResponse) GetStatus

func (x *UpdateUserResponse) GetStatus() uint64

func (*UpdateUserResponse) GetTimestamp

func (x *UpdateUserResponse) GetTimestamp() string

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type User

type User struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Email     string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password  string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	FirstName string `protobuf:"bytes,4,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName  string `protobuf:"bytes,5,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Bio       string `protobuf:"bytes,6,opt,name=bio,proto3" json:"bio,omitempty"`
	Role      string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"`
	Token     string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"`
	CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetBio

func (x *User) GetBio() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetId

func (x *User) GetId() uint64

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) GetToken

func (x *User) GetToken() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type ValidateRequest

type ValidateRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateRequest) Descriptor deprecated

func (*ValidateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.

func (*ValidateRequest) GetToken

func (x *ValidateRequest) GetToken() string

func (*ValidateRequest) ProtoMessage

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) ProtoReflect

func (x *ValidateRequest) ProtoReflect() protoreflect.Message

func (*ValidateRequest) Reset

func (x *ValidateRequest) Reset()

func (*ValidateRequest) String

func (x *ValidateRequest) String() string

type ValidateResponse

type ValidateResponse struct {
	Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level     string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Status    uint64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Error     string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	UserId    uint64 `protobuf:"varint,6,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateResponse) Descriptor deprecated

func (*ValidateResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.

func (*ValidateResponse) GetError

func (x *ValidateResponse) GetError() string

func (*ValidateResponse) GetLevel

func (x *ValidateResponse) GetLevel() string

func (*ValidateResponse) GetMessage

func (x *ValidateResponse) GetMessage() string

func (*ValidateResponse) GetStatus

func (x *ValidateResponse) GetStatus() uint64

func (*ValidateResponse) GetTimestamp

func (x *ValidateResponse) GetTimestamp() string

func (*ValidateResponse) GetUserId

func (x *ValidateResponse) GetUserId() uint64

func (*ValidateResponse) ProtoMessage

func (*ValidateResponse) ProtoMessage()

func (*ValidateResponse) ProtoReflect

func (x *ValidateResponse) ProtoReflect() protoreflect.Message

func (*ValidateResponse) Reset

func (x *ValidateResponse) Reset()

func (*ValidateResponse) String

func (x *ValidateResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL