firestore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSNOption

type DSNOption func(*FirestoreDSN)

DSNOption defines a function that configures a FirestoreDSN.

func WithDatabase

func WithDatabase(database string) DSNOption

WithDatabase sets the database for the DSN.

type FirestoreDSN

type FirestoreDSN struct {
	ProjectID string `json:"project_id"`
	Database  string `json:"database"`
}

func NewDSN

func NewDSN(projectID string, opts ...DSNOption) *FirestoreDSN

NewDSN creates a new FirestoreDSN with the given options.

func (FirestoreDSN) DSN

func (f FirestoreDSN) DSN() string

func (*FirestoreDSN) Info

func (f *FirestoreDSN) Info() string

Info implements database.DataSourceNamer.

func (FirestoreDSN) Type

func (f FirestoreDSN) Type() database.Type

Type implements database.DataSourceNamer.

Jump to

Keyboard shortcuts

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