setupnewuser

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockNames = map[lib.KeyType]string{
	lib.Custom:  "Mutual Funds",
	lib.Teacher: "Algebra",
	lib.Project: "Mobile App",
}
View Source
var BlockPodNames = map[lib.KeyType]string{
	lib.Custom:  "Systematic Investment Plan",
	lib.Teacher: "Sequence and Series",
	lib.Project: "Android App",
}
View Source
var KeyNames = map[lib.KeyType]string{
	lib.Custom:  "Investments",
	lib.Teacher: "Math Class",
	lib.Project: "Snowpal Pitch",
}
View Source
var KeyPodName = "Fixed Deposit"

Functions

func DisplayData

func DisplayData(user response.User, anotherUserEmail string)

func RegisterNewUser

func RegisterNewUser() (string, error)

RegisterNewUser Register a new user. Ignore errors due to existing users, keep trying till we get successful.

func SetupNewUser

func SetupNewUser()

func ShareData

func ShareData(user response.User, anotherUserEmail string, allKeys AllKeys) error

Types

type AllKeys

type AllKeys struct {
	CustomKey  KeyWithResources
	TeacherKey KeyWithResources
	ProjectKey KeyWithResources
}

func CreateData

func CreateData(user response.User) (AllKeys, error)

type BlockWithPods

type BlockWithPods struct {
	Block     response.Block
	BlockPods []response.Pod
}

type KeyWithResources

type KeyWithResources struct {
	Key    response.Key
	Blocks []BlockWithPods
	Pods   []response.Pod
}

Jump to

Keyboard shortcuts

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