user

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserExists

func UserExists(uid string) (bool, error)

UserExists verifies if a user already exists

Types

type User

type User struct {
	UID    string   `json:"uid" bson:"uid,omitempty"`
	Email  string   `json:"email" bson:"email,omitempty"`
	Labels []string `json:"labels" bson:"labels,omitempty"`
}

User struct represents the authenticated/registered user

func Get

func Get(uid string) (User, error)

Get retrives the registered user

func Set

func Set(u User) (User, error)

Set is used to register a new user

Jump to

Keyboard shortcuts

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