Documentation ¶
Index ¶
- Variables
- type Algorithm
- func (*Algorithm) Descriptor() ([]byte, []int)deprecated
- func (x *Algorithm) GetHash() HashAlgorithm
- func (x *Algorithm) GetSignature() SignatureAlgorithm
- func (*Algorithm) ProtoMessage()
- func (x *Algorithm) ProtoReflect() protoreflect.Message
- func (x *Algorithm) Reset()
- func (x *Algorithm) String() string
- type HashAlgorithm
- func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x HashAlgorithm) Enum() *HashAlgorithm
- func (HashAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x HashAlgorithm) Number() protoreflect.EnumNumber
- func (x HashAlgorithm) String() string
- func (HashAlgorithm) Type() protoreflect.EnumType
- type Header
- type Payload
- type PayloadType
- func (PayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x PayloadType) Enum() *PayloadType
- func (PayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PayloadType) Number() protoreflect.EnumNumber
- func (x PayloadType) String() string
- func (PayloadType) Type() protoreflect.EnumType
- type SignatureAlgorithm
- func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
- func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
- func (x SignatureAlgorithm) String() string
- func (SignatureAlgorithm) Type() protoreflect.EnumType
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetHeader() *Header
- func (x *Token) GetPayloads() map[string]*Payload
- func (x *Token) GetSignature() []byte
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SignatureAlgorithm_name = map[int32]string{ 0: "NONE", 1: "HMAC", 2: "ECDSA", 3: "ED25519", } SignatureAlgorithm_value = map[string]int32{ "NONE": 0, "HMAC": 1, "ECDSA": 2, "ED25519": 3, } )
Enum value maps for SignatureAlgorithm.
View Source
var ( HashAlgorithm_name = map[int32]string{ 0: "SHA3_256", 1: "SHA3_384", 2: "SHA3_512", 3: "BLAKE2B_256", 4: "BLAKE2B_384", 5: "BLAKE2B_512", 6: "BLAKE2S_256", 7: "BLAKE2S_384", 8: "BLAKE2S_512", 9: "BLAKE3_256", 10: "BLAKE3_512", } HashAlgorithm_value = map[string]int32{ "SHA3_256": 0, "SHA3_384": 1, "SHA3_512": 2, "BLAKE2B_256": 3, "BLAKE2B_384": 4, "BLAKE2B_512": 5, "BLAKE2S_256": 6, "BLAKE2S_384": 7, "BLAKE2S_512": 8, "BLAKE3_256": 9, "BLAKE3_512": 10, } )
Enum value maps for HashAlgorithm.
View Source
var ( Type_name = map[int32]string{ 0: "ACCESS", 1: "REFRESH", 2: "RESET_PASSWORD", 3: "VERIFY_EMAIL", 4: "VERIFY_PHONE", 5: "VERIFY_IDENTITY", 6: "VERIFY_ADDRESS", 7: "VERIFY_DOCUMENT", 8: "VERIFY_FACE", 9: "VERIFY_FINGERPRINT", 10: "VERIFY_VOICE", 11: "VERIFY_EYE", 12: "VERIFY_SIGNATURE", 13: "VERIFY_BEHAVIOR", 14: "VERIFY_LOCATION", 15: "VERIFY_DEVICE", 16: "VERIFY_BIOMETRIC", 17: "VERIFY_OTP", 18: "VERIFY_PIN", 19: "VERIFY_PATTERN", 20: "VERIFY_PASSWORD", 21: "VERIFY_ANSWER", 22: "VERIFY_QUESTION", 23: "VERIFY_TOKEN", 24: "VERIFY_CODE", } Type_value = map[string]int32{ "ACCESS": 0, "REFRESH": 1, "RESET_PASSWORD": 2, "VERIFY_EMAIL": 3, "VERIFY_PHONE": 4, "VERIFY_IDENTITY": 5, "VERIFY_ADDRESS": 6, "VERIFY_DOCUMENT": 7, "VERIFY_FACE": 8, "VERIFY_FINGERPRINT": 9, "VERIFY_VOICE": 10, "VERIFY_EYE": 11, "VERIFY_SIGNATURE": 12, "VERIFY_BEHAVIOR": 13, "VERIFY_LOCATION": 14, "VERIFY_DEVICE": 15, "VERIFY_BIOMETRIC": 16, "VERIFY_OTP": 17, "VERIFY_PIN": 18, "VERIFY_PATTERN": 19, "VERIFY_PASSWORD": 20, "VERIFY_ANSWER": 21, "VERIFY_QUESTION": 22, "VERIFY_TOKEN": 23, "VERIFY_CODE": 24, } )
Enum value maps for Type.
View Source
var ( PayloadType_name = map[int32]string{ 0: "INT", 1: "INT8", 2: "INT16", 3: "INT32", 4: "INT64", 5: "UINT", 6: "UINT8", 7: "UINT16", 8: "UINT32", 9: "UINT64", 10: "FLOAT32", 11: "FLOAT64", 12: "STRING", 13: "BYTES", 14: "BOOL", 15: "MESSAGE", } PayloadType_value = map[string]int32{ "INT": 0, "INT8": 1, "INT16": 2, "INT32": 3, "INT64": 4, "UINT": 5, "UINT8": 6, "UINT16": 7, "UINT32": 8, "UINT64": 9, "FLOAT32": 10, "FLOAT64": 11, "STRING": 12, "BYTES": 13, "BOOL": 14, "MESSAGE": 15, } )
Enum value maps for PayloadType.
View Source
var File_model_token_token_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm struct { Signature SignatureAlgorithm `protobuf:"varint,1,opt,name=signature,proto3,enum=token.SignatureAlgorithm" json:"signature,omitempty"` Hash HashAlgorithm `protobuf:"varint,2,opt,name=hash,proto3,enum=token.HashAlgorithm" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*Algorithm) Descriptor
deprecated
func (*Algorithm) GetHash ¶
func (x *Algorithm) GetHash() HashAlgorithm
func (*Algorithm) GetSignature ¶
func (x *Algorithm) GetSignature() SignatureAlgorithm
func (*Algorithm) ProtoMessage ¶
func (*Algorithm) ProtoMessage()
func (*Algorithm) ProtoReflect ¶
func (x *Algorithm) ProtoReflect() protoreflect.Message
type HashAlgorithm ¶
type HashAlgorithm int32
const ( HashAlgorithm_SHA3_256 HashAlgorithm = 0 HashAlgorithm_SHA3_384 HashAlgorithm = 1 HashAlgorithm_SHA3_512 HashAlgorithm = 2 HashAlgorithm_BLAKE2B_256 HashAlgorithm = 3 HashAlgorithm_BLAKE2B_384 HashAlgorithm = 4 HashAlgorithm_BLAKE2B_512 HashAlgorithm = 5 HashAlgorithm_BLAKE2S_256 HashAlgorithm = 6 HashAlgorithm_BLAKE2S_384 HashAlgorithm = 7 HashAlgorithm_BLAKE2S_512 HashAlgorithm = 8 HashAlgorithm_BLAKE3_256 HashAlgorithm = 9 HashAlgorithm_BLAKE3_512 HashAlgorithm = 10 )
func (HashAlgorithm) Descriptor ¶
func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (HashAlgorithm) Enum ¶
func (x HashAlgorithm) Enum() *HashAlgorithm
func (HashAlgorithm) EnumDescriptor
deprecated
func (HashAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use HashAlgorithm.Descriptor instead.
func (HashAlgorithm) Number ¶
func (x HashAlgorithm) Number() protoreflect.EnumNumber
func (HashAlgorithm) String ¶
func (x HashAlgorithm) String() string
func (HashAlgorithm) Type ¶
func (HashAlgorithm) Type() protoreflect.EnumType
type Header ¶
type Header struct { Algorithm *Algorithm `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=token.Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetAlgorithm ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Payload ¶
type Payload struct { Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=token.PayloadType" json:"type,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetType ¶
func (x *Payload) GetType() PayloadType
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type PayloadType ¶
type PayloadType int32
const ( PayloadType_INT PayloadType = 0 PayloadType_INT8 PayloadType = 1 PayloadType_INT16 PayloadType = 2 PayloadType_INT32 PayloadType = 3 PayloadType_INT64 PayloadType = 4 PayloadType_UINT PayloadType = 5 PayloadType_UINT8 PayloadType = 6 PayloadType_UINT16 PayloadType = 7 PayloadType_UINT32 PayloadType = 8 PayloadType_UINT64 PayloadType = 9 PayloadType_FLOAT32 PayloadType = 10 PayloadType_FLOAT64 PayloadType = 11 PayloadType_STRING PayloadType = 12 PayloadType_BYTES PayloadType = 13 PayloadType_BOOL PayloadType = 14 PayloadType_MESSAGE PayloadType = 15 )
func (PayloadType) Descriptor ¶
func (PayloadType) Descriptor() protoreflect.EnumDescriptor
func (PayloadType) Enum ¶
func (x PayloadType) Enum() *PayloadType
func (PayloadType) EnumDescriptor
deprecated
func (PayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PayloadType.Descriptor instead.
func (PayloadType) Number ¶
func (x PayloadType) Number() protoreflect.EnumNumber
func (PayloadType) String ¶
func (x PayloadType) String() string
func (PayloadType) Type ¶
func (PayloadType) Type() protoreflect.EnumType
type SignatureAlgorithm ¶
type SignatureAlgorithm int32
const ( SignatureAlgorithm_NONE SignatureAlgorithm = 0 SignatureAlgorithm_HMAC SignatureAlgorithm = 1 SignatureAlgorithm_ECDSA SignatureAlgorithm = 2 SignatureAlgorithm_ED25519 SignatureAlgorithm = 3 )
func (SignatureAlgorithm) Descriptor ¶
func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (SignatureAlgorithm) Enum ¶
func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
func (SignatureAlgorithm) EnumDescriptor
deprecated
func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use SignatureAlgorithm.Descriptor instead.
func (SignatureAlgorithm) Number ¶
func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
func (SignatureAlgorithm) String ¶
func (x SignatureAlgorithm) String() string
func (SignatureAlgorithm) Type ¶
func (SignatureAlgorithm) Type() protoreflect.EnumType
type Token ¶
type Token struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Payloads map[string]*Payload `` /* 157-byte string literal not displayed */ Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetPayloads ¶
func (*Token) GetSignature ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
const ( Type_ACCESS Type = 0 Type_REFRESH Type = 1 Type_RESET_PASSWORD Type = 2 Type_VERIFY_EMAIL Type = 3 Type_VERIFY_PHONE Type = 4 Type_VERIFY_IDENTITY Type = 5 Type_VERIFY_ADDRESS Type = 6 Type_VERIFY_DOCUMENT Type = 7 Type_VERIFY_FACE Type = 8 Type_VERIFY_FINGERPRINT Type = 9 Type_VERIFY_VOICE Type = 10 Type_VERIFY_EYE Type = 11 Type_VERIFY_SIGNATURE Type = 12 Type_VERIFY_BEHAVIOR Type = 13 Type_VERIFY_LOCATION Type = 14 Type_VERIFY_DEVICE Type = 15 Type_VERIFY_BIOMETRIC Type = 16 Type_VERIFY_OTP Type = 17 Type_VERIFY_PIN Type = 18 Type_VERIFY_PATTERN Type = 19 Type_VERIFY_PASSWORD Type = 20 Type_VERIFY_ANSWER Type = 21 Type_VERIFY_QUESTION Type = 22 Type_VERIFY_TOKEN Type = 23 Type_VERIFY_CODE Type = 24 )
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.