Documentation ¶
Index ¶
- Variables
- type EncryptionAlgorithm
- func (EncryptionAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x EncryptionAlgorithm) Enum() *EncryptionAlgorithm
- func (EncryptionAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x EncryptionAlgorithm) Number() protoreflect.EnumNumber
- func (x EncryptionAlgorithm) String() string
- func (EncryptionAlgorithm) Type() protoreflect.EnumType
- type JwtStatus
- func (*JwtStatus) Descriptor() ([]byte, []int)deprecated
- func (x *JwtStatus) GetAud() []string
- func (x *JwtStatus) GetIss() string
- func (x *JwtStatus) GetJti() string
- func (x *JwtStatus) GetSub() string
- func (x *JwtStatus) GetTimeLeft() int64
- func (*JwtStatus) ProtoMessage()
- func (x *JwtStatus) ProtoReflect() protoreflect.Message
- func (x *JwtStatus) Reset()
- func (x *JwtStatus) String() string
- type ResponseStatus
- func (*ResponseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseStatus) GetMessage() string
- func (x *ResponseStatus) GetStatus() ResponseStatus_Stat
- func (*ResponseStatus) ProtoMessage()
- func (x *ResponseStatus) ProtoReflect() protoreflect.Message
- func (x *ResponseStatus) Reset()
- func (x *ResponseStatus) String() string
- type ResponseStatus_Stat
- func (ResponseStatus_Stat) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseStatus_Stat) Enum() *ResponseStatus_Stat
- func (ResponseStatus_Stat) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseStatus_Stat) Number() protoreflect.EnumNumber
- func (x ResponseStatus_Stat) String() string
- func (ResponseStatus_Stat) Type() protoreflect.EnumType
- type SignerMeta
- func (*SignerMeta) Descriptor() ([]byte, []int)deprecated
- func (x *SignerMeta) GetAlgo() EncryptionAlgorithm
- func (x *SignerMeta) GetDefaultEffectiveInterval() int64
- func (x *SignerMeta) GetDefaultTTL() int64
- func (x *SignerMeta) GetIss() string
- func (x *SignerMeta) GetJtiGen() string
- func (*SignerMeta) ProtoMessage()
- func (x *SignerMeta) ProtoReflect() protoreflect.Message
- func (x *SignerMeta) Reset()
- func (x *SignerMeta) String() string
- type Token
- type VerifierMeta
- func (*VerifierMeta) Descriptor() ([]byte, []int)deprecated
- func (x *VerifierMeta) GetAlgo() EncryptionAlgorithm
- func (x *VerifierMeta) GetDefaultAUD() string
- func (x *VerifierMeta) GetDefaultISSRange() []string
- func (*VerifierMeta) ProtoMessage()
- func (x *VerifierMeta) ProtoReflect() protoreflect.Message
- func (x *VerifierMeta) Reset()
- func (x *VerifierMeta) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncryptionAlgorithm_name = map[int32]string{ 0: "UNKNOWN", 1: "HS256", 2: "HS384", 3: "HS512", 4: "RS256", 5: "RS384", 6: "RS512", 7: "ES256", 8: "ES384", 9: "ES512", 10: "EdDSA", } EncryptionAlgorithm_value = map[string]int32{ "UNKNOWN": 0, "HS256": 1, "HS384": 2, "HS512": 3, "RS256": 4, "RS384": 5, "RS512": 6, "ES256": 7, "ES384": 8, "ES512": 9, "EdDSA": 10, } )
Enum value maps for EncryptionAlgorithm.
View Source
var ( ResponseStatus_Stat_name = map[int32]string{ 0: "SUCCEED", 1: "FAILED", } ResponseStatus_Stat_value = map[string]int32{ "SUCCEED": 0, "FAILED": 1, } )
Enum value maps for ResponseStatus_Stat.
View Source
var File_pbschema_jwt_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EncryptionAlgorithm ¶
type EncryptionAlgorithm int32
const ( EncryptionAlgorithm_UNKNOWN EncryptionAlgorithm = 0 EncryptionAlgorithm_HS256 EncryptionAlgorithm = 1 EncryptionAlgorithm_HS384 EncryptionAlgorithm = 2 EncryptionAlgorithm_HS512 EncryptionAlgorithm = 3 EncryptionAlgorithm_RS256 EncryptionAlgorithm = 4 EncryptionAlgorithm_RS384 EncryptionAlgorithm = 5 EncryptionAlgorithm_RS512 EncryptionAlgorithm = 6 EncryptionAlgorithm_ES256 EncryptionAlgorithm = 7 EncryptionAlgorithm_ES384 EncryptionAlgorithm = 8 EncryptionAlgorithm_ES512 EncryptionAlgorithm = 9 EncryptionAlgorithm_EdDSA EncryptionAlgorithm = 10 )
func (EncryptionAlgorithm) Descriptor ¶
func (EncryptionAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (EncryptionAlgorithm) Enum ¶
func (x EncryptionAlgorithm) Enum() *EncryptionAlgorithm
func (EncryptionAlgorithm) EnumDescriptor
deprecated
func (EncryptionAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use EncryptionAlgorithm.Descriptor instead.
func (EncryptionAlgorithm) Number ¶
func (x EncryptionAlgorithm) Number() protoreflect.EnumNumber
func (EncryptionAlgorithm) String ¶
func (x EncryptionAlgorithm) String() string
func (EncryptionAlgorithm) Type ¶
func (EncryptionAlgorithm) Type() protoreflect.EnumType
type JwtStatus ¶ added in v0.0.3
type JwtStatus struct { Jti string `protobuf:"bytes,1,opt,name=jti,proto3" json:"jti,omitempty"` Sub string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` Iss string `protobuf:"bytes,3,opt,name=iss,proto3" json:"iss,omitempty"` TimeLeft int64 `protobuf:"varint,4,opt,name=time_left,json=timeLeft,proto3" json:"time_left,omitempty"` Aud []string `protobuf:"bytes,5,rep,name=aud,proto3" json:"aud,omitempty"` // contains filtered or unexported fields }
func (*JwtStatus) Descriptor
deprecated
added in
v0.0.3
func (*JwtStatus) GetTimeLeft ¶ added in v0.0.3
func (*JwtStatus) ProtoMessage ¶ added in v0.0.3
func (*JwtStatus) ProtoMessage()
func (*JwtStatus) ProtoReflect ¶ added in v0.0.3
func (x *JwtStatus) ProtoReflect() protoreflect.Message
type ResponseStatus ¶
type ResponseStatus struct { Status ResponseStatus_Stat `protobuf:"varint,1,opt,name=status,proto3,enum=jwt.ResponseStatus_Stat" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseStatus) Descriptor
deprecated
func (*ResponseStatus) Descriptor() ([]byte, []int)
Deprecated: Use ResponseStatus.ProtoReflect.Descriptor instead.
func (*ResponseStatus) GetMessage ¶
func (x *ResponseStatus) GetMessage() string
func (*ResponseStatus) GetStatus ¶
func (x *ResponseStatus) GetStatus() ResponseStatus_Stat
func (*ResponseStatus) ProtoMessage ¶
func (*ResponseStatus) ProtoMessage()
func (*ResponseStatus) ProtoReflect ¶
func (x *ResponseStatus) ProtoReflect() protoreflect.Message
func (*ResponseStatus) Reset ¶
func (x *ResponseStatus) Reset()
func (*ResponseStatus) String ¶
func (x *ResponseStatus) String() string
type ResponseStatus_Stat ¶
type ResponseStatus_Stat int32
const ( ResponseStatus_SUCCEED ResponseStatus_Stat = 0 ResponseStatus_FAILED ResponseStatus_Stat = 1 )
func (ResponseStatus_Stat) Descriptor ¶
func (ResponseStatus_Stat) Descriptor() protoreflect.EnumDescriptor
func (ResponseStatus_Stat) Enum ¶
func (x ResponseStatus_Stat) Enum() *ResponseStatus_Stat
func (ResponseStatus_Stat) EnumDescriptor
deprecated
func (ResponseStatus_Stat) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseStatus_Stat.Descriptor instead.
func (ResponseStatus_Stat) Number ¶
func (x ResponseStatus_Stat) Number() protoreflect.EnumNumber
func (ResponseStatus_Stat) String ¶
func (x ResponseStatus_Stat) String() string
func (ResponseStatus_Stat) Type ¶
func (ResponseStatus_Stat) Type() protoreflect.EnumType
type SignerMeta ¶
type SignerMeta struct { Algo EncryptionAlgorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=jwt.EncryptionAlgorithm" json:"algo,omitempty"` Iss string `protobuf:"bytes,2,opt,name=iss,proto3" json:"iss,omitempty"` DefaultTTL int64 `protobuf:"varint,3,opt,name=defaultTTL,proto3" json:"defaultTTL,omitempty"` //单位s DefaultEffectiveInterval int64 `protobuf:"varint,4,opt,name=defaultEffectiveInterval,proto3" json:"defaultEffectiveInterval,omitempty"` //单位s JtiGen string `protobuf:"bytes,5,opt,name=jtiGen,proto3" json:"jtiGen,omitempty"` // contains filtered or unexported fields }
func (*SignerMeta) Descriptor
deprecated
func (*SignerMeta) Descriptor() ([]byte, []int)
Deprecated: Use SignerMeta.ProtoReflect.Descriptor instead.
func (*SignerMeta) GetAlgo ¶
func (x *SignerMeta) GetAlgo() EncryptionAlgorithm
func (*SignerMeta) GetDefaultEffectiveInterval ¶
func (x *SignerMeta) GetDefaultEffectiveInterval() int64
func (*SignerMeta) GetDefaultTTL ¶
func (x *SignerMeta) GetDefaultTTL() int64
func (*SignerMeta) GetIss ¶
func (x *SignerMeta) GetIss() string
func (*SignerMeta) GetJtiGen ¶
func (x *SignerMeta) GetJtiGen() string
func (*SignerMeta) ProtoMessage ¶
func (*SignerMeta) ProtoMessage()
func (*SignerMeta) ProtoReflect ¶
func (x *SignerMeta) ProtoReflect() protoreflect.Message
func (*SignerMeta) Reset ¶
func (x *SignerMeta) Reset()
func (*SignerMeta) String ¶
func (x *SignerMeta) String() string
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"RefreshToken,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetAccessToken ¶
func (*Token) GetRefreshToken ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type VerifierMeta ¶
type VerifierMeta struct { Algo EncryptionAlgorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=jwt.EncryptionAlgorithm" json:"algo,omitempty"` DefaultAUD string `protobuf:"bytes,2,opt,name=defaultAUD,proto3" json:"defaultAUD,omitempty"` DefaultISSRange []string `protobuf:"bytes,3,rep,name=defaultISSRange,proto3" json:"defaultISSRange,omitempty"` // contains filtered or unexported fields }
func (*VerifierMeta) Descriptor
deprecated
func (*VerifierMeta) Descriptor() ([]byte, []int)
Deprecated: Use VerifierMeta.ProtoReflect.Descriptor instead.
func (*VerifierMeta) GetAlgo ¶
func (x *VerifierMeta) GetAlgo() EncryptionAlgorithm
func (*VerifierMeta) GetDefaultAUD ¶
func (x *VerifierMeta) GetDefaultAUD() string
func (*VerifierMeta) GetDefaultISSRange ¶
func (x *VerifierMeta) GetDefaultISSRange() []string
func (*VerifierMeta) ProtoMessage ¶
func (*VerifierMeta) ProtoMessage()
func (*VerifierMeta) ProtoReflect ¶
func (x *VerifierMeta) ProtoReflect() protoreflect.Message
func (*VerifierMeta) Reset ¶
func (x *VerifierMeta) Reset()
func (*VerifierMeta) String ¶
func (x *VerifierMeta) String() string
Click to show internal directories.
Click to hide internal directories.