Versions in this module Expand all Collapse all v1 v1.0.0 Nov 28, 2024 Changes in this version + const AuthService_GenerateAuthChallenge_FullMethodName + const AuthService_GenerateAuthTokens_FullMethodName + const AuthService_RefreshAccessToken_FullMethodName + var AuthService_ServiceDesc = grpc.ServiceDesc + var File_auth_proto protoreflect.FileDescriptor + var Role_name = map[int32]string + var Role_value = map[string]int32 + func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) + type AuthServiceClient interface + GenerateAuthChallenge func(ctx context.Context, in *GenerateAuthChallengeRequest, opts ...grpc.CallOption) (*GenerateAuthChallengeResponse, error) + GenerateAuthTokens func(ctx context.Context, in *GenerateAuthTokensRequest, opts ...grpc.CallOption) (*GenerateAuthTokensResponse, error) + RefreshAccessToken func(ctx context.Context, in *RefreshAccessTokenRequest, opts ...grpc.CallOption) (*RefreshAccessTokenResponse, error) + func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient + type AuthServiceServer interface + GenerateAuthChallenge func(context.Context, *GenerateAuthChallengeRequest) (*GenerateAuthChallengeResponse, error) + GenerateAuthTokens func(context.Context, *GenerateAuthTokensRequest) (*GenerateAuthTokensResponse, error) + RefreshAccessToken func(context.Context, *RefreshAccessTokenRequest) (*RefreshAccessTokenResponse, error) + type GenerateAuthChallengeRequest struct + Pubkey []byte + Role Role + func (*GenerateAuthChallengeRequest) Descriptor() ([]byte, []int) + func (*GenerateAuthChallengeRequest) ProtoMessage() + func (x *GenerateAuthChallengeRequest) GetPubkey() []byte + func (x *GenerateAuthChallengeRequest) GetRole() Role + func (x *GenerateAuthChallengeRequest) ProtoReflect() protoreflect.Message + func (x *GenerateAuthChallengeRequest) Reset() + func (x *GenerateAuthChallengeRequest) String() string + type GenerateAuthChallengeResponse struct + Challenge string + func (*GenerateAuthChallengeResponse) Descriptor() ([]byte, []int) + func (*GenerateAuthChallengeResponse) ProtoMessage() + func (x *GenerateAuthChallengeResponse) GetChallenge() string + func (x *GenerateAuthChallengeResponse) ProtoReflect() protoreflect.Message + func (x *GenerateAuthChallengeResponse) Reset() + func (x *GenerateAuthChallengeResponse) String() string + type GenerateAuthTokensRequest struct + Challenge string + ClientPubkey []byte + SignedChallenge []byte + func (*GenerateAuthTokensRequest) Descriptor() ([]byte, []int) + func (*GenerateAuthTokensRequest) ProtoMessage() + func (x *GenerateAuthTokensRequest) GetChallenge() string + func (x *GenerateAuthTokensRequest) GetClientPubkey() []byte + func (x *GenerateAuthTokensRequest) GetSignedChallenge() []byte + func (x *GenerateAuthTokensRequest) ProtoReflect() protoreflect.Message + func (x *GenerateAuthTokensRequest) Reset() + func (x *GenerateAuthTokensRequest) String() string + type GenerateAuthTokensResponse struct + AccessToken *Token + RefreshToken *Token + func (*GenerateAuthTokensResponse) Descriptor() ([]byte, []int) + func (*GenerateAuthTokensResponse) ProtoMessage() + func (x *GenerateAuthTokensResponse) GetAccessToken() *Token + func (x *GenerateAuthTokensResponse) GetRefreshToken() *Token + func (x *GenerateAuthTokensResponse) ProtoReflect() protoreflect.Message + func (x *GenerateAuthTokensResponse) Reset() + func (x *GenerateAuthTokensResponse) String() string + type RefreshAccessTokenRequest struct + RefreshToken string + func (*RefreshAccessTokenRequest) Descriptor() ([]byte, []int) + func (*RefreshAccessTokenRequest) ProtoMessage() + func (x *RefreshAccessTokenRequest) GetRefreshToken() string + func (x *RefreshAccessTokenRequest) ProtoReflect() protoreflect.Message + func (x *RefreshAccessTokenRequest) Reset() + func (x *RefreshAccessTokenRequest) String() string + type RefreshAccessTokenResponse struct + AccessToken *Token + func (*RefreshAccessTokenResponse) Descriptor() ([]byte, []int) + func (*RefreshAccessTokenResponse) ProtoMessage() + func (x *RefreshAccessTokenResponse) GetAccessToken() *Token + func (x *RefreshAccessTokenResponse) ProtoReflect() protoreflect.Message + func (x *RefreshAccessTokenResponse) Reset() + func (x *RefreshAccessTokenResponse) String() string + type Role int32 + const Role_RELAYER + const Role_SEARCHER + const Role_SHREDSTREAM_SUBSCRIBER + const Role_VALIDATOR + func (Role) Descriptor() protoreflect.EnumDescriptor + func (Role) EnumDescriptor() ([]byte, []int) + func (Role) Type() protoreflect.EnumType + func (x Role) Enum() *Role + func (x Role) Number() protoreflect.EnumNumber + func (x Role) String() string + type Token struct + ExpiresAtUtc *timestamppb.Timestamp + Value string + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetExpiresAtUtc() *timestamppb.Timestamp + func (x *Token) GetValue() string + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type UnimplementedAuthServiceServer struct + func (UnimplementedAuthServiceServer) GenerateAuthChallenge(context.Context, *GenerateAuthChallengeRequest) (*GenerateAuthChallengeResponse, error) + func (UnimplementedAuthServiceServer) GenerateAuthTokens(context.Context, *GenerateAuthTokensRequest) (*GenerateAuthTokensResponse, error) + func (UnimplementedAuthServiceServer) RefreshAccessToken(context.Context, *RefreshAccessTokenRequest) (*RefreshAccessTokenResponse, error) + type UnsafeAuthServiceServer interface