Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type UnimplementedAuthServiceServer
- type UnsafeAuthServiceServer
- type VerifyRequest
- func (*VerifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyRequest) GetRouteName() string
- func (x *VerifyRequest) GetToken() string
- func (*VerifyRequest) ProtoMessage()
- func (x *VerifyRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyRequest) Reset()
- func (x *VerifyRequest) String() string
- type VerifyResponse
- func (*VerifyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyResponse) GetDepartment() string
- func (x *VerifyResponse) GetDomain() string
- func (x *VerifyResponse) GetEmailId() string
- func (x *VerifyResponse) GetIsAuthorised() bool
- func (x *VerifyResponse) GetMessage() string
- func (x *VerifyResponse) GetName() string
- func (x *VerifyResponse) GetPhoneNumber() string
- func (x *VerifyResponse) GetRole() string
- func (x *VerifyResponse) GetTenant() string
- func (*VerifyResponse) ProtoMessage()
- func (x *VerifyResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyResponse) Reset()
- func (x *VerifyResponse) String() string
Constants ¶
const (
AuthService_Verify_FullMethodName = "/auth.AuthService/Verify"
)
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Verify", Handler: _AuthService_Verify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/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)
var File_proto_auth_auth_proto protoreflect.FileDescriptor
var File_proto_auth_type_verify_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, 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.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Verify ¶
func (UnimplementedAuthServiceServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
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 VerifyRequest ¶
type VerifyRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` RouteName string `protobuf:"bytes,2,opt,name=routeName,proto3" json:"routeName,omitempty"` // contains filtered or unexported fields }
func (*VerifyRequest) Descriptor
deprecated
func (*VerifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.
func (*VerifyRequest) GetRouteName ¶
func (x *VerifyRequest) GetRouteName() string
func (*VerifyRequest) GetToken ¶
func (x *VerifyRequest) GetToken() string
func (*VerifyRequest) ProtoMessage ¶
func (*VerifyRequest) ProtoMessage()
func (*VerifyRequest) ProtoReflect ¶
func (x *VerifyRequest) ProtoReflect() protoreflect.Message
func (*VerifyRequest) Reset ¶
func (x *VerifyRequest) Reset()
func (*VerifyRequest) String ¶
func (x *VerifyRequest) String() string
type VerifyResponse ¶
type VerifyResponse struct { IsAuthorised bool `protobuf:"varint,1,opt,name=isAuthorised,proto3" json:"isAuthorised,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` EmailId string `protobuf:"bytes,4,opt,name=emailId,proto3" json:"emailId,omitempty"` PhoneNumber string `protobuf:"bytes,5,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Tenant string `protobuf:"bytes,6,opt,name=tenant,proto3" json:"tenant,omitempty"` Domain string `protobuf:"bytes,7,opt,name=domain,proto3" json:"domain,omitempty"` Department string `protobuf:"bytes,8,opt,name=department,proto3" json:"department,omitempty"` Role string `protobuf:"bytes,9,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*VerifyResponse) Descriptor
deprecated
func (*VerifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.
func (*VerifyResponse) GetDepartment ¶
func (x *VerifyResponse) GetDepartment() string
func (*VerifyResponse) GetDomain ¶
func (x *VerifyResponse) GetDomain() string
func (*VerifyResponse) GetEmailId ¶
func (x *VerifyResponse) GetEmailId() string
func (*VerifyResponse) GetIsAuthorised ¶
func (x *VerifyResponse) GetIsAuthorised() bool
func (*VerifyResponse) GetMessage ¶
func (x *VerifyResponse) GetMessage() string
func (*VerifyResponse) GetName ¶
func (x *VerifyResponse) GetName() string
func (*VerifyResponse) GetPhoneNumber ¶
func (x *VerifyResponse) GetPhoneNumber() string
func (*VerifyResponse) GetRole ¶
func (x *VerifyResponse) GetRole() string
func (*VerifyResponse) GetTenant ¶
func (x *VerifyResponse) GetTenant() string
func (*VerifyResponse) ProtoMessage ¶
func (*VerifyResponse) ProtoMessage()
func (*VerifyResponse) ProtoReflect ¶
func (x *VerifyResponse) ProtoReflect() protoreflect.Message
func (*VerifyResponse) Reset ¶
func (x *VerifyResponse) Reset()
func (*VerifyResponse) String ¶
func (x *VerifyResponse) String() string