Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type InfoUpdateRequest
- func (*InfoUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InfoUpdateRequest) GetDepartment() string
- func (x *InfoUpdateRequest) GetDesignation() string
- func (x *InfoUpdateRequest) GetDomain() string
- func (x *InfoUpdateRequest) GetId() string
- func (x *InfoUpdateRequest) GetImageURL() string
- func (x *InfoUpdateRequest) GetRole() string
- func (*InfoUpdateRequest) ProtoMessage()
- func (x *InfoUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *InfoUpdateRequest) Reset()
- func (x *InfoUpdateRequest) String() string
- type InfoUpdateResponse
- func (*InfoUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoUpdateResponse) GetIsError() bool
- func (x *InfoUpdateResponse) GetMessage() string
- func (*InfoUpdateResponse) ProtoMessage()
- func (x *InfoUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *InfoUpdateResponse) Reset()
- func (x *InfoUpdateResponse) String() string
- 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" AuthService_UpdateInfo_FullMethodName = "/auth.AuthService/UpdateInfo" )
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Verify", Handler: _AuthService_Verify_Handler, }, { MethodName: "UpdateInfo", Handler: _AuthService_UpdateInfo_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_update_info_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) UpdateInfo(ctx context.Context, in *InfoUpdateRequest, opts ...grpc.CallOption) (*InfoUpdateResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/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) UpdateInfo(context.Context, *InfoUpdateRequest) (*InfoUpdateResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type InfoUpdateRequest ¶
type InfoUpdateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ImageURL string `protobuf:"bytes,2,opt,name=imageURL,proto3" json:"imageURL,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` Designation string `protobuf:"bytes,4,opt,name=designation,proto3" json:"designation,omitempty"` Department string `protobuf:"bytes,5,opt,name=department,proto3" json:"department,omitempty"` Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*InfoUpdateRequest) Descriptor
deprecated
func (*InfoUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoUpdateRequest.ProtoReflect.Descriptor instead.
func (*InfoUpdateRequest) GetDepartment ¶
func (x *InfoUpdateRequest) GetDepartment() string
func (*InfoUpdateRequest) GetDesignation ¶
func (x *InfoUpdateRequest) GetDesignation() string
func (*InfoUpdateRequest) GetDomain ¶
func (x *InfoUpdateRequest) GetDomain() string
func (*InfoUpdateRequest) GetId ¶
func (x *InfoUpdateRequest) GetId() string
func (*InfoUpdateRequest) GetImageURL ¶
func (x *InfoUpdateRequest) GetImageURL() string
func (*InfoUpdateRequest) GetRole ¶
func (x *InfoUpdateRequest) GetRole() string
func (*InfoUpdateRequest) ProtoMessage ¶
func (*InfoUpdateRequest) ProtoMessage()
func (*InfoUpdateRequest) ProtoReflect ¶
func (x *InfoUpdateRequest) ProtoReflect() protoreflect.Message
func (*InfoUpdateRequest) Reset ¶
func (x *InfoUpdateRequest) Reset()
func (*InfoUpdateRequest) String ¶
func (x *InfoUpdateRequest) String() string
type InfoUpdateResponse ¶
type InfoUpdateResponse struct { IsError bool `protobuf:"varint,1,opt,name=isError,proto3" json:"isError,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*InfoUpdateResponse) Descriptor
deprecated
func (*InfoUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoUpdateResponse.ProtoReflect.Descriptor instead.
func (*InfoUpdateResponse) GetIsError ¶
func (x *InfoUpdateResponse) GetIsError() bool
func (*InfoUpdateResponse) GetMessage ¶
func (x *InfoUpdateResponse) GetMessage() string
func (*InfoUpdateResponse) ProtoMessage ¶
func (*InfoUpdateResponse) ProtoMessage()
func (*InfoUpdateResponse) ProtoReflect ¶
func (x *InfoUpdateResponse) ProtoReflect() protoreflect.Message
func (*InfoUpdateResponse) Reset ¶
func (x *InfoUpdateResponse) Reset()
func (*InfoUpdateResponse) String ¶
func (x *InfoUpdateResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) UpdateInfo ¶
func (UnimplementedAuthServiceServer) UpdateInfo(context.Context, *InfoUpdateRequest) (*InfoUpdateResponse, error)
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