service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAttendeeRole

func AddAttendeeRole(id string) error

Add Attendee role to user with auth service

func CanUserCheckin

func CanUserCheckin(id string, user_has_override bool) (bool, error)

Returns true, nil if a user with specified ID is allowed to checkin, and false, nil if not allowed.

func CreateUserCheckin

func CreateUserCheckin(id string, user_checkin models.UserCheckin) error

Create the checkin associated with the given user id

func GetAllCheckedInUsers

func GetAllCheckedInUsers() (*models.CheckinList, error)

Returns a list of all checked in user IDs

func GetStats

func GetStats() (map[string]interface{}, error)

Returns all checkin stats

func GetUserCheckin

func GetUserCheckin(id string) (*models.UserCheckin, error)

Returns the checkin associated with the given user id

func IsAttendeeRsvped

func IsAttendeeRsvped(id string) (bool, error)

Checks if the user has been rsvped in the decision service

func IsUserRegistered

func IsUserRegistered(id string) (bool, error)

Returns true if the user with specified id is registered, and false if not.

func UpdateUserCheckin

func UpdateUserCheckin(id string, user_checkin models.UserCheckin) error

Update the checkin associated with the given user id

Types

This section is empty.

Jump to

Keyboard shortcuts

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