Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2019 Changes in this version + type FakeService struct + func NewFakeService(isInFunc func() (bool, error), createIfNotExistsFunc func() error, ...) *FakeService + func (s *FakeService) CreateIfNotExists(id int64, username string) error + func (s *FakeService) Delete(id int64) error + func (s *FakeService) IsIn(id int64) (bool, error) + type FirestoreService struct + func NewFirestoreService(client *firestore.Client) *FirestoreService + func (s *FirestoreService) CreateIfNotExists(id int64, username string) error + func (s *FirestoreService) Delete(id int64) error + func (s *FirestoreService) IsIn(id int64) (bool, error) + type RealtimeDatabaseService struct + func NewRealtimeDatabaseService(client *db.Client) *RealtimeDatabaseService + func (s *RealtimeDatabaseService) CreateIfNotExists(id int64, username string) error + func (s *RealtimeDatabaseService) Delete(id int64) error + func (s *RealtimeDatabaseService) IsIn(id int64) (bool, error) + type Service interface + CreateIfNotExists func(id int64, username string) error + Delete func(id int64) error + IsIn func(id int64) (bool, error) + func NewService(ctx context.Context, serviceType string, app *firebase.App) (Service, error)