Documentation
¶
Index ¶
- type Firebase
- func (f *Firebase) AddAdminRole(user *auth.UserRecord) error
- func (f *Firebase) AddCandidateRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) AddCreatorRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) AddMediaRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) AddTrustPersonRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) CreateAuthUser(email string, phone string, pwd string, name string) (*auth.UserRecord, error)
- func (f *Firebase) DeleteAuthUser(email string) error
- func (f *Firebase) GetCustomUserClaims(user *auth.UserRecord) (UserCustomClaims, error)
- func (f *Firebase) GetUserIdFromCustomClaims(user *auth.UserRecord) (int64, error)
- func (f *Firebase) InitCustomClaims(user *auth.UserRecord, voto_id int64) error
- func (f *Firebase) RemoveAdminRole(user *auth.UserRecord) error
- func (f *Firebase) RemoveCandidateRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) RemoveCreatorRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) RemoveMediaRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) RemoveTrustPersonRole(user *auth.UserRecord, instanceID int) error
- func (f *Firebase) SetCustomUserClaims(user *auth.UserRecord, claims UserCustomClaims) error
- func (f *Firebase) VerifyIDToken(ctx context.Context, idToken string) (*auth.Token, error)
- type UserCustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firebase ¶
func SetupFirebase ¶
func SetupFirebase() Firebase
func (*Firebase) AddAdminRole ¶
func (f *Firebase) AddAdminRole(user *auth.UserRecord) error
func (*Firebase) AddCandidateRole ¶
func (f *Firebase) AddCandidateRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) AddCreatorRole ¶
func (f *Firebase) AddCreatorRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) AddMediaRole ¶
func (f *Firebase) AddMediaRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) AddTrustPersonRole ¶
func (f *Firebase) AddTrustPersonRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) CreateAuthUser ¶
func (*Firebase) DeleteAuthUser ¶
func (*Firebase) GetCustomUserClaims ¶
func (f *Firebase) GetCustomUserClaims(user *auth.UserRecord) (UserCustomClaims, error)
func (*Firebase) GetUserIdFromCustomClaims ¶
func (f *Firebase) GetUserIdFromCustomClaims(user *auth.UserRecord) (int64, error)
func (*Firebase) InitCustomClaims ¶
func (f *Firebase) InitCustomClaims(user *auth.UserRecord, voto_id int64) error
func (*Firebase) RemoveAdminRole ¶
func (f *Firebase) RemoveAdminRole(user *auth.UserRecord) error
func (*Firebase) RemoveCandidateRole ¶
func (f *Firebase) RemoveCandidateRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) RemoveCreatorRole ¶
func (f *Firebase) RemoveCreatorRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) RemoveMediaRole ¶
func (f *Firebase) RemoveMediaRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) RemoveTrustPersonRole ¶
func (f *Firebase) RemoveTrustPersonRole(user *auth.UserRecord, instanceID int) error
func (*Firebase) SetCustomUserClaims ¶
func (f *Firebase) SetCustomUserClaims(user *auth.UserRecord, claims UserCustomClaims) error
Click to show internal directories.
Click to hide internal directories.