Skip to content

r-gochain/firetils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firestore utils for golang

Data Handling

Add TimeStamped and Firestored to your objects, eg:

type X struct {
    firetils.Firestored
    firetils.TimeStamped
}

You can do pre-saving and after-loading by adding PreSave(ctx context.Context) and/or AfterLoad(ctx context.Context) function to your models.

Authentication

Authenticate function will validate an auth token.

Or use FireAuth middleware to do it automatically.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%