Back to

Package firebase

Latest Go to latest

The latest major version is v4.

Published: Sep 13, 2017 | License: Apache-2.0 | Module:


Package firebase is the entry point to the Firebase Admin SDK. It provides functionality for initializing App instances, which serve as the central entities that provide access to various other Firebase services exposed from the SDK.



const Version = "1.0.2"

Version of the Firebase Go Admin SDK.

type App

type App struct {
	// contains filtered or unexported fields

An App holds configuration and state common to all Firebase services that are exposed from the SDK.

func NewApp

func NewApp(ctx context.Context, config *Config, opts ...option.ClientOption) (*App, error)

NewApp creates a new App from the provided config and client options.

If the client options contain a valid credential (a service account file, a refresh token file or an oauth2.TokenSource) the App will be authenticated using that credential. Otherwise, NewApp attempts to authenticate the App with Google application default credentials.

func (*App) Auth

func (a *App) Auth() (*auth.Client, error)

Auth returns an instance of auth.Client.

type Config

type Config struct {
	ProjectID string

Config represents the configuration used to initialize an App.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier