services

package
v0.0.0-...-fb9e2ab Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(app *firebase.App) (*AuthService, error)

func (*AuthService) CreateUserWithEmailAndPassword

func (s *AuthService) CreateUserWithEmailAndPassword(email, password, name string) (*fbAuth.UserRecord, error)

func (*AuthService) GetUserByEmail

func (s *AuthService) GetUserByEmail(email string) (*fbAuth.UserRecord, error)

func (*AuthService) SignIn

func (s *AuthService) SignIn(email, password string) (string, error)

func (*AuthService) SignUp

func (s *AuthService) SignUp(email, password string) (*fbAuth.UserRecord, error)

type StorageService

type StorageService struct {
	BucketName string
	// contains filtered or unexported fields
}

func NewStorageService

func NewStorageService(app *firebase.App, bucketName string) (*StorageService, error)

func (*StorageService) DownloadFile

func (s *StorageService) DownloadFile(ctx context.Context, objectName string, writer io.Writer) error

func (*StorageService) UploadFile

func (s *StorageService) UploadFile(ctx context.Context, objectName string, reader io.Reader) error

Jump to

Keyboard shortcuts

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