Documentation ¶
Index ¶
Constants ¶
View Source
const (
ERROR_CLIENT_INSTANCE = "firebase_connection : failed to get the firebase client instance"
)
Variables ¶
This section is empty.
Functions ¶
func CloseFirebaseClient ¶
func CloseFirebaseClient(temp *FirebaseClientId)
func CreateFirebaseClient ¶
func CreateFirebaseClient(temp *FirebaseClient)
used to create firebase client
func GetFirebaseClient ¶
func GetFirebaseClient(temp *FirebaseClientId) (*firebase.App, error)
used to get the firebase client instance
Types ¶
type FirebaseClient ¶
type FirebaseClient struct { Id *FirebaseClientId MyContext *context.Context Once *sync.Once Conf *firebase.Config Opts []option.ClientOption Err *error // contains filtered or unexported fields }
func GetFirebaseStruct ¶
func GetFirebaseStruct(temp *FirebaseClientId) (*FirebaseClient, error)
used to get the firebase client struct
type FirebaseClientId ¶
type FirebaseClientId struct {
Id string
}
type FirebaseClients ¶
type FirebaseClients struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.