Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection interface { GetUser(context.Context, string) (UserItem, error) GetDomain(context.Context, string) (Domain, error) }
func NewFirestoreCollection ¶
func NewFirestoreCollection(ctx context.Context, sc *firestore.Client) Collection
type FsCollection ¶
Currently only implemented for Firestore, later we will make dynamoDB possbile
type User ¶
type User struct { Login string `firestore:"login"` Passwd string `firestore:"passwd"` Salt string `firestore:"salt"` Domains []string `firestore:"domains"` Apps []string `firestore:"apps"` Lastname string `firestore:"lastname"` Firstname string `firestore:"firstname"` }
func (User) VerifyDomain ¶
func (User) VerifyPasswd ¶
Click to show internal directories.
Click to hide internal directories.