Documentation ¶
Index ¶
- func GetPrivateArmored(userID int64) (privateArmored pgp.PrivateKey, err error)
- func GetSalt(userID int64) (salt string, err error)
- type Private
- func (z *Private) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Private) EncodeMsg(en *msgp.Writer) (err error)
- func (k *Private) Insert() error
- func (z *Private) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Private) Msgsize() (s int)
- func (z *Private) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Public
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivateArmored ¶
func GetPrivateArmored(userID int64) (privateArmored pgp.PrivateKey, err error)
Types ¶
type Private ¶
type Private struct { Public AuthKeyHash string AuthKeySalt string PrivateArmored pgp.PrivateKey RecoveryKeyHash string RecoveryArmored pgp.PrivateKey }
func NewPrivate ¶
func NewPrivate() *Private
func (*Private) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Public ¶
type Public struct { ID int64 `json:"id" msg:"id"` UserID int64 `json:"userId" msg:"userId"` Created int64 `json:"created" msg:"created"` Replaced int64 `json:"replaced,omitempty" msg:"replaced"` PublicArmored pgp.PublicKey `json:"publicArmored" msg:"publicArmored"` }
func GetPublicKeys ¶
GetPublicKeys get user's encrypted publicKey
func (*Public) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.