auth

package
v0.0.0-...-dc85e11 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthService_Verify_FullMethodName           = "/auth.AuthService/Verify"
	AuthService_UpdateInfo_FullMethodName       = "/auth.AuthService/UpdateInfo"
	AuthService_GetNewEmailToken_FullMethodName = "/auth.AuthService/GetNewEmailToken"
	AuthService_VerifyEmailToken_FullMethodName = "/auth.AuthService/VerifyEmailToken"
)

Variables

View Source
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,
		},
		{
			MethodName: "GetNewEmailToken",
			Handler:    _AuthService_GetNewEmailToken_Handler,
		},
		{
			MethodName: "VerifyEmailToken",
			Handler:    _AuthService_VerifyEmailToken_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)

View Source
var File_proto_auth_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_auth_type_update_info_proto protoreflect.FileDescriptor
View Source
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)
	GetNewEmailToken(ctx context.Context, in *EmailTokenRequest, opts ...grpc.CallOption) (*EmailTokenResponse, error)
	VerifyEmailToken(ctx context.Context, in *VerifyEmailTokenRequest, opts ...grpc.CallOption) (*VerifyEmailTokenResponse, 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

type AuthServiceServer interface {
	Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
	UpdateInfo(context.Context, *InfoUpdateRequest) (*InfoUpdateResponse, error)
	GetNewEmailToken(context.Context, *EmailTokenRequest) (*EmailTokenResponse, error)
	VerifyEmailToken(context.Context, *VerifyEmailTokenRequest) (*VerifyEmailTokenResponse, error)
	// contains filtered or unexported methods
}

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

type EmailTokenRequest

type EmailTokenRequest struct {
	TenantId  string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"`
	Domain    string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	SubDomain string `protobuf:"bytes,3,opt,name=subDomain,proto3" json:"subDomain,omitempty"`
	EmailId   string `protobuf:"bytes,4,opt,name=emailId,proto3" json:"emailId,omitempty"`
	SecretId  string `protobuf:"bytes,5,opt,name=secretId,proto3" json:"secretId,omitempty"`
	Name      string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailTokenRequest) Descriptor deprecated

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

Deprecated: Use EmailTokenRequest.ProtoReflect.Descriptor instead.

func (*EmailTokenRequest) GetDomain

func (x *EmailTokenRequest) GetDomain() string

func (*EmailTokenRequest) GetEmailId

func (x *EmailTokenRequest) GetEmailId() string

func (*EmailTokenRequest) GetName

func (x *EmailTokenRequest) GetName() string

func (*EmailTokenRequest) GetSecretId

func (x *EmailTokenRequest) GetSecretId() string

func (*EmailTokenRequest) GetSubDomain

func (x *EmailTokenRequest) GetSubDomain() string

func (*EmailTokenRequest) GetTenantId

func (x *EmailTokenRequest) GetTenantId() string

func (*EmailTokenRequest) ProtoMessage

func (*EmailTokenRequest) ProtoMessage()

func (*EmailTokenRequest) ProtoReflect

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

func (*EmailTokenRequest) Reset

func (x *EmailTokenRequest) Reset()

func (*EmailTokenRequest) String

func (x *EmailTokenRequest) String() string

type EmailTokenResponse

type EmailTokenResponse struct {
	Token        string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	IsError      bool   `protobuf:"varint,2,opt,name=isError,proto3" json:"isError,omitempty"`
	ErrorMessage string `protobuf:"bytes,3,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailTokenResponse) Descriptor deprecated

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

Deprecated: Use EmailTokenResponse.ProtoReflect.Descriptor instead.

func (*EmailTokenResponse) GetErrorMessage

func (x *EmailTokenResponse) GetErrorMessage() string

func (*EmailTokenResponse) GetIsError

func (x *EmailTokenResponse) GetIsError() bool

func (*EmailTokenResponse) GetToken

func (x *EmailTokenResponse) GetToken() string

func (*EmailTokenResponse) ProtoMessage

func (*EmailTokenResponse) ProtoMessage()

func (*EmailTokenResponse) ProtoReflect

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

func (*EmailTokenResponse) Reset

func (x *EmailTokenResponse) Reset()

func (*EmailTokenResponse) String

func (x *EmailTokenResponse) String() string

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) GetNewEmailToken

func (UnimplementedAuthServiceServer) UpdateInfo

func (UnimplementedAuthServiceServer) Verify

func (UnimplementedAuthServiceServer) VerifyEmailToken

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 VerifyEmailTokenRequest

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

func (*VerifyEmailTokenRequest) Descriptor deprecated

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

Deprecated: Use VerifyEmailTokenRequest.ProtoReflect.Descriptor instead.

func (*VerifyEmailTokenRequest) GetDomain

func (x *VerifyEmailTokenRequest) GetDomain() string

func (*VerifyEmailTokenRequest) GetToken

func (x *VerifyEmailTokenRequest) GetToken() string

func (*VerifyEmailTokenRequest) ProtoMessage

func (*VerifyEmailTokenRequest) ProtoMessage()

func (*VerifyEmailTokenRequest) ProtoReflect

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

func (*VerifyEmailTokenRequest) Reset

func (x *VerifyEmailTokenRequest) Reset()

func (*VerifyEmailTokenRequest) String

func (x *VerifyEmailTokenRequest) String() string

type VerifyEmailTokenResponse

type VerifyEmailTokenResponse struct {
	TenantId     string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"`
	Domain       string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	SubDomain    string `protobuf:"bytes,3,opt,name=subDomain,proto3" json:"subDomain,omitempty"`
	EmailId      string `protobuf:"bytes,4,opt,name=emailId,proto3" json:"emailId,omitempty"`
	SecretId     string `protobuf:"bytes,5,opt,name=secretId,proto3" json:"secretId,omitempty"`
	Name         string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	IsError      bool   `protobuf:"varint,7,opt,name=isError,proto3" json:"isError,omitempty"`
	ErrorMessage string `protobuf:"bytes,8,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyEmailTokenResponse) Descriptor deprecated

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

Deprecated: Use VerifyEmailTokenResponse.ProtoReflect.Descriptor instead.

func (*VerifyEmailTokenResponse) GetDomain

func (x *VerifyEmailTokenResponse) GetDomain() string

func (*VerifyEmailTokenResponse) GetEmailId

func (x *VerifyEmailTokenResponse) GetEmailId() string

func (*VerifyEmailTokenResponse) GetErrorMessage

func (x *VerifyEmailTokenResponse) GetErrorMessage() string

func (*VerifyEmailTokenResponse) GetIsError

func (x *VerifyEmailTokenResponse) GetIsError() bool

func (*VerifyEmailTokenResponse) GetName

func (x *VerifyEmailTokenResponse) GetName() string

func (*VerifyEmailTokenResponse) GetSecretId

func (x *VerifyEmailTokenResponse) GetSecretId() string

func (*VerifyEmailTokenResponse) GetSubDomain

func (x *VerifyEmailTokenResponse) GetSubDomain() string

func (*VerifyEmailTokenResponse) GetTenantId

func (x *VerifyEmailTokenResponse) GetTenantId() string

func (*VerifyEmailTokenResponse) ProtoMessage

func (*VerifyEmailTokenResponse) ProtoMessage()

func (*VerifyEmailTokenResponse) ProtoReflect

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

func (*VerifyEmailTokenResponse) Reset

func (x *VerifyEmailTokenResponse) Reset()

func (*VerifyEmailTokenResponse) String

func (x *VerifyEmailTokenResponse) String() string

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"`
	OrgName      string `protobuf:"bytes,10,opt,name=orgName,proto3" json:"orgName,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) GetOrgName

func (x *VerifyResponse) GetOrgName() 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

Jump to

Keyboard shortcuts

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