Documentation ¶
Index ¶
Constants ¶
View Source
const ( HS256 = "HS256" HS384 = "HS384" HS512 = "HS512" ES256 = "ES256" ES384 = "ES384" ES512 = "ES512" )
Variables ¶
View Source
var File_blob_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBlobStore ¶
func RegisterBlobStore(proto string, factory BlobStoreFactory)
Types ¶
type Blob ¶
type Blob struct { Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` EcdsaKey []byte `protobuf:"bytes,3,opt,name=ecdsa_key,json=ecdsaKey,proto3" json:"ecdsa_key,omitempty"` // contains filtered or unexported fields }
func (*Blob) Descriptor
deprecated
func (*Blob) GetAlgorithm ¶
func (*Blob) GetEcdsaKey ¶
func (*Blob) ProtoMessage ¶
func (*Blob) ProtoMessage()
func (*Blob) ProtoReflect ¶
func (x *Blob) ProtoReflect() protoreflect.Message
type BlobStore ¶
type BlobStoreFactory ¶
type Key ¶
type Key struct { ID string Algorithm Algorithm Secret []byte ECDSAKey *ecdsa.PrivateKey }
func (*Key) CreateToken ¶
func (*Key) ParseToken ¶
func (*Key) SetAlgorithm ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.