pb

package
v0.0.0-...-e235655 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _AuthService_GetUser_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Validate",
			Handler:    _AuthService_Validate_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _AuthService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/pb/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_pkg_pb_auth_proto protoreflect.FileDescriptor
View Source
var File_pkg_pb_school_proto protoreflect.FileDescriptor
View Source
var SchoolService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "school.SchoolService",
	HandlerType: (*SchoolServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSchool",
			Handler:    _SchoolService_CreateSchool_Handler,
		},
		{
			MethodName: "CreateClass",
			Handler:    _SchoolService_CreateClass_Handler,
		},
		{
			MethodName: "GetClass",
			Handler:    _SchoolService_GetClass_Handler,
		},
		{
			MethodName: "CreateStudent",
			Handler:    _SchoolService_CreateStudent_Handler,
		},
		{
			MethodName: "CheckHealth",
			Handler:    _SchoolService_CheckHealth_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/pb/school.proto",
}

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

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterSchoolServiceServer

func RegisterSchoolServiceServer(s grpc.ServiceRegistrar, srv SchoolServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	GetUser(ctx context.Context, in *EntityID, opts ...grpc.CallOption) (*UserResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error)
	DeleteUser(ctx context.Context, in *EntityID, opts ...grpc.CallOption) (*DeleteResponse, 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 should embed UnimplementedAuthServiceServer for forward compatibility

type Class

type Class struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	HeadTeacher int64  `protobuf:"varint,3,opt,name=headTeacher,proto3" json:"headTeacher,omitempty"`
	SchoolId    int64  `protobuf:"varint,4,opt,name=schoolId,proto3" json:"schoolId,omitempty"`
	// contains filtered or unexported fields
}

func (*Class) Descriptor deprecated

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

Deprecated: Use Class.ProtoReflect.Descriptor instead.

func (*Class) GetHeadTeacher

func (x *Class) GetHeadTeacher() int64

func (*Class) GetId

func (x *Class) GetId() int64

func (*Class) GetName

func (x *Class) GetName() string

func (*Class) GetSchoolId

func (x *Class) GetSchoolId() int64

func (*Class) ProtoMessage

func (*Class) ProtoMessage()

func (*Class) ProtoReflect

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

func (*Class) Reset

func (x *Class) Reset()

func (*Class) String

func (x *Class) String() string

type ClassRequest

type ClassRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	HeadTeacher int64  `protobuf:"varint,2,opt,name=headTeacher,proto3" json:"headTeacher,omitempty"`
	SchoolId    int64  `protobuf:"varint,3,opt,name=schoolId,proto3" json:"schoolId,omitempty"`
	// contains filtered or unexported fields
}

func (*ClassRequest) Descriptor deprecated

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

Deprecated: Use ClassRequest.ProtoReflect.Descriptor instead.

func (*ClassRequest) GetHeadTeacher

func (x *ClassRequest) GetHeadTeacher() int64

func (*ClassRequest) GetName

func (x *ClassRequest) GetName() string

func (*ClassRequest) GetSchoolId

func (x *ClassRequest) GetSchoolId() int64

func (*ClassRequest) ProtoMessage

func (*ClassRequest) ProtoMessage()

func (*ClassRequest) ProtoReflect

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

func (*ClassRequest) Reset

func (x *ClassRequest) Reset()

func (*ClassRequest) String

func (x *ClassRequest) String() string

type ClassResponse

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

func (*ClassResponse) Descriptor deprecated

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

Deprecated: Use ClassResponse.ProtoReflect.Descriptor instead.

func (*ClassResponse) GetData

func (x *ClassResponse) GetData() *Class

func (*ClassResponse) GetError

func (x *ClassResponse) GetError() string

func (*ClassResponse) GetStatus

func (x *ClassResponse) GetStatus() int64

func (*ClassResponse) ProtoMessage

func (*ClassResponse) ProtoMessage()

func (*ClassResponse) ProtoReflect

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

func (*ClassResponse) Reset

func (x *ClassResponse) Reset()

func (*ClassResponse) String

func (x *ClassResponse) String() string

type CreateResponse

type CreateResponse struct {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetError

func (x *CreateResponse) GetError() string

func (*CreateResponse) GetStatus

func (x *CreateResponse) GetStatus() int64

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteResponse

type DeleteResponse struct {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetError

func (x *DeleteResponse) GetError() string

func (*DeleteResponse) GetStatus

func (x *DeleteResponse) GetStatus() int64

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type EntityID

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

func (*EntityID) Descriptor deprecated

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

Deprecated: Use EntityID.ProtoReflect.Descriptor instead.

func (*EntityID) GetId

func (x *EntityID) GetId() int64

func (*EntityID) ProtoMessage

func (*EntityID) ProtoMessage()

func (*EntityID) ProtoReflect

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

func (*EntityID) Reset

func (x *EntityID) Reset()

func (*EntityID) String

func (x *EntityID) String() string

type HealthRequest

type HealthRequest struct {
	Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthRequest) Descriptor deprecated

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

Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.

func (*HealthRequest) GetCheck

func (x *HealthRequest) GetCheck() bool

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) ProtoReflect

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

func (*HealthRequest) Reset

func (x *HealthRequest) Reset()

func (*HealthRequest) String

func (x *HealthRequest) String() string

type HealthResponse

type HealthResponse struct {
	Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthResponse) Descriptor deprecated

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

Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.

func (*HealthResponse) GetHealthy

func (x *HealthResponse) GetHealthy() bool

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) ProtoReflect

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

func (*HealthResponse) Reset

func (x *HealthResponse) Reset()

func (*HealthResponse) String

func (x *HealthResponse) String() string

type ID

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

func (*ID) Descriptor deprecated

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetId

func (x *ID) GetId() int64

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) 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 {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Token  string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetError

func (x *LoginResponse) GetError() string

func (*LoginResponse) GetStatus

func (x *LoginResponse) GetStatus() int64

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() 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"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	SchoolId int64  `protobuf:"varint,4,opt,name=schoolId,proto3" json:"schoolId,omitempty"`
	RoleId   int64  `protobuf:"varint,5,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetName

func (x *RegisterRequest) GetName() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetRoleId

func (x *RegisterRequest) GetRoleId() int64

func (*RegisterRequest) GetSchoolId

func (x *RegisterRequest) GetSchoolId() int64

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 {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	UserId int64  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Error  string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetError

func (x *RegisterResponse) GetError() string

func (*RegisterResponse) GetStatus

func (x *RegisterResponse) GetStatus() int64

func (*RegisterResponse) GetUserId

func (x *RegisterResponse) GetUserId() int64

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 SchoolRequest

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

func (*SchoolRequest) Descriptor deprecated

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

Deprecated: Use SchoolRequest.ProtoReflect.Descriptor instead.

func (*SchoolRequest) GetName

func (x *SchoolRequest) GetName() string

func (*SchoolRequest) ProtoMessage

func (*SchoolRequest) ProtoMessage()

func (*SchoolRequest) ProtoReflect

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

func (*SchoolRequest) Reset

func (x *SchoolRequest) Reset()

func (*SchoolRequest) String

func (x *SchoolRequest) String() string

type SchoolServiceClient

type SchoolServiceClient interface {
	CreateSchool(ctx context.Context, in *SchoolRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	CreateClass(ctx context.Context, in *ClassRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	GetClass(ctx context.Context, in *ID, opts ...grpc.CallOption) (*ClassResponse, error)
	CreateStudent(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	CheckHealth(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}

SchoolServiceClient is the client API for SchoolService 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 SchoolServiceServer

type SchoolServiceServer interface {
	CreateSchool(context.Context, *SchoolRequest) (*CreateResponse, error)
	CreateClass(context.Context, *ClassRequest) (*CreateResponse, error)
	GetClass(context.Context, *ID) (*ClassResponse, error)
	CreateStudent(context.Context, *StudentRequest) (*CreateResponse, error)
	CheckHealth(context.Context, *HealthRequest) (*HealthResponse, error)
}

SchoolServiceServer is the server API for SchoolService service. All implementations should embed UnimplementedSchoolServiceServer for forward compatibility

type StudentRequest

type StudentRequest struct {
	UserID  int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	ClassID int64 `protobuf:"varint,2,opt,name=classID,proto3" json:"classID,omitempty"`
	// contains filtered or unexported fields
}

func (*StudentRequest) Descriptor deprecated

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

Deprecated: Use StudentRequest.ProtoReflect.Descriptor instead.

func (*StudentRequest) GetClassID

func (x *StudentRequest) GetClassID() int64

func (*StudentRequest) GetUserID

func (x *StudentRequest) GetUserID() int64

func (*StudentRequest) ProtoMessage

func (*StudentRequest) ProtoMessage()

func (*StudentRequest) ProtoReflect

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

func (*StudentRequest) Reset

func (x *StudentRequest) Reset()

func (*StudentRequest) String

func (x *StudentRequest) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) DeleteUser

func (UnimplementedAuthServiceServer) GetUser

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Register

func (UnimplementedAuthServiceServer) Validate

type UnimplementedSchoolServiceServer

type UnimplementedSchoolServiceServer struct {
}

UnimplementedSchoolServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSchoolServiceServer) CheckHealth

func (UnimplementedSchoolServiceServer) CreateClass

func (UnimplementedSchoolServiceServer) CreateSchool

func (UnimplementedSchoolServiceServer) CreateStudent

func (UnimplementedSchoolServiceServer) GetClass

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 UnsafeSchoolServiceServer

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

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

type User

type User struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	SchoolId int64  `protobuf:"varint,4,opt,name=schoolId,proto3" json:"schoolId,omitempty"`
	RoleId   int64  `protobuf:"varint,5,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRoleId

func (x *User) GetRoleId() int64

func (*User) GetSchoolId

func (x *User) GetSchoolId() int64

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 UserResponse

type UserResponse struct {
	Status int64  `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 (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetData

func (x *UserResponse) GetData() *User

func (*UserResponse) GetError

func (x *UserResponse) GetError() string

func (*UserResponse) GetStatus

func (x *UserResponse) GetStatus() int64

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) 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 {
	Status int64  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	UserId int64  `protobuf:"varint,3,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) GetStatus

func (x *ValidateResponse) GetStatus() int64

func (*ValidateResponse) GetUserId

func (x *ValidateResponse) GetUserId() int64

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