orm

package
v0.0.0-...-b8661fc Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient() *datastore.Client

func GetUser

func GetUser(ctx context.Context, searchUser model.User) (user model.User, err error)

func GetUserWithId

func GetUserWithId(ctx context.Context, id string) (user model.User, err error)

func SaveUser

func SaveUser(ctx context.Context, user *model.User) error

Types

type SssUser

type SssUser interface {
	GetUser(email string) (model.User, error)
	SaveUser(user *model.User) error
}

SssUser defines interface for user data persistence on SSS

Jump to

Keyboard shortcuts

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