newuser

package module
v0.0.0-...-5417d07 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBotUser

func CreateBotUser(ctx context.Context, tx *firestore.Transaction, client *firestore.Client, i int, roomID string) error

CreateBotUser creates a new Bot user and affects it to the given room

func OnNewUser

func OnNewUser(ctx context.Context, e FirestoreEvent) error

OnNewUser is triggered when a new user is created

Types

type FirestoreEvent

type FirestoreEvent struct {
	OldValue myfirestore.FirestoreValue `json:"oldValue"`
	Value    myfirestore.FirestoreValue `json:"value"`
}

FirestoreEvent is the payload of a Firestore event. Please refer to the docs for additional information regarding Firestore events.

Jump to

Keyboard shortcuts

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