xfirebase

package
v0.0.0-...-ec3babd Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(ctx context.Context, config Config) (*firebase.App, error)

Types

type Config

type Config struct {
	JSONCredentials JSONCredentials `yaml:"json_credentials"`
}

func (*Config) ResetToDefault

func (c *Config) ResetToDefault()

type JSONCredentials

type JSONCredentials struct {
	Type                    string `json:"type" yaml:"type"`
	ProjectID               string `json:"project_id" yaml:"project_id"`
	PrivateKeyID            string `json:"private_key_id" yaml:"private_key_id"`
	PrivateKey              string `json:"private_key" yaml:"private_key"`
	ClientEmail             string `json:"client_email" yaml:"client_email"`
	ClientID                string `json:"client_id" yaml:"client_id"`
	AuthURI                 string `json:"auth_uri" yaml:"auth_uri"`
	AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url" yaml:"auth_provider_x509_cert_url"`
	ClientX509CertURL       string `json:"client_x509_cert_url" yaml:"client_x509_cert_url"`
}

func (*JSONCredentials) AsJSON

func (c *JSONCredentials) AsJSON() []byte

func (*JSONCredentials) ResetToDefault

func (c *JSONCredentials) ResetToDefault()

Jump to

Keyboard shortcuts

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