Documentation ¶
Index ¶
- Variables
- type Credential
- type Store
- type TokenInfo
- func (*TokenInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TokenInfo) GetCreated() *timestamppb.Timestamp
- func (x *TokenInfo) GetCredName() string
- func (x *TokenInfo) GetSessionData() []byte
- func (x *TokenInfo) GetSessionId() string
- func (x *TokenInfo) GetUserId() int64
- func (*TokenInfo) ProtoMessage()
- func (x *TokenInfo) ProtoReflect() protoreflect.Message
- func (x *TokenInfo) Reset()
- func (x *TokenInfo) String() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetCreds() []*Credential
- func (x *UserInfo) GetUserId() int64
- func (x *UserInfo) GetUsername() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_auth_v1_store_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Cred []byte `protobuf:"bytes,2,opt,name=cred" json:"cred,omitempty"` // contains filtered or unexported fields }
func (*Credential) Descriptor
deprecated
func (*Credential) Descriptor() ([]byte, []int)
Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func (*Credential) GetCred ¶
func (x *Credential) GetCred() []byte
func (*Credential) GetName ¶
func (x *Credential) GetName() string
func (*Credential) ProtoMessage ¶
func (*Credential) ProtoMessage()
func (*Credential) ProtoReflect ¶
func (x *Credential) ProtoReflect() protoreflect.Message
func (*Credential) Reset ¶
func (x *Credential) Reset()
func (*Credential) String ¶
func (x *Credential) String() string
type Store ¶
type Store struct { Sessions map[string]*TokenInfo `` /* 136-byte string literal not displayed */ Users map[int64]*UserInfo `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Store) Descriptor
deprecated
func (*Store) GetSessions ¶
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
func (*Store) ProtoReflect ¶
func (x *Store) ProtoReflect() protoreflect.Message
type TokenInfo ¶
type TokenInfo struct { SessionId *string `protobuf:"bytes,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"` UserId *int64 `protobuf:"varint,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` SessionData []byte `protobuf:"bytes,4,opt,name=session_data,json=sessionData" json:"session_data,omitempty"` CredName *string `protobuf:"bytes,5,opt,name=cred_name,json=credName" json:"cred_name,omitempty"` // contains filtered or unexported fields }
func (*TokenInfo) Descriptor
deprecated
func (*TokenInfo) GetCreated ¶
func (x *TokenInfo) GetCreated() *timestamppb.Timestamp
func (*TokenInfo) GetCredName ¶
func (*TokenInfo) GetSessionData ¶
func (*TokenInfo) GetSessionId ¶
func (*TokenInfo) ProtoMessage ¶
func (*TokenInfo) ProtoMessage()
func (*TokenInfo) ProtoReflect ¶
func (x *TokenInfo) ProtoReflect() protoreflect.Message
type UserInfo ¶
type UserInfo struct { UserId *int64 `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` Username *string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Creds []*Credential `protobuf:"bytes,4,rep,name=creds" json:"creds,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetCreds ¶
func (x *UserInfo) GetCreds() []*Credential
func (*UserInfo) GetUsername ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.