firebase

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL