Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MytokenEntry ¶
type MytokenEntry struct { ID mtid.MTID SeqNo uint64 ParentID mtid.MTID `db:"parent_id"` RootID mtid.MTID `db:"root_id"` Token *mytoken.Mytoken Name string IP string `db:"ip_created"` // contains filtered or unexported fields }
MytokenEntry holds the information of a MytokenEntry as stored in the database
func NewMytokenEntry ¶
func NewMytokenEntry(mt *mytoken.Mytoken, name string, networkData api.ClientMetaData) *MytokenEntry
NewMytokenEntry creates a new MytokenEntry
func (*MytokenEntry) InitRefreshToken ¶
func (ste *MytokenEntry) InitRefreshToken(rt string) error
func (*MytokenEntry) Root ¶
func (ste *MytokenEntry) Root() bool
Root checks if this MytokenEntry is a root token
func (*MytokenEntry) SetRefreshToken ¶
func (ste *MytokenEntry) SetRefreshToken(rtID uint64, key []byte) error
Click to show internal directories.
Click to hide internal directories.