Documentation ¶
Index ¶
- func ActivateUser(id int) error
- func CheckProhibitedUser(w http.ResponseWriter, r *http.Request) bool
- func DeactivateUser(id int) error
- func GetAllUsers() ([]database.User, error)
- func GetEndDateForUser(id int) (database.Date, error)
- func GetUserByEmail(email string) (database.User, error)
- func GetUserByID(id int) (database.User, error)
- func IsProhibited(id int) (bool, error)
- func ProhibitUser(id int) error
- func UnprohibitUser(id int) error
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateUser ¶ added in v0.2.17
func CheckProhibitedUser ¶ added in v0.2.17
func CheckProhibitedUser(w http.ResponseWriter, r *http.Request) bool
assumes that the user is already validated
func DeactivateUser ¶ added in v0.2.17
func GetAllUsers ¶
func IsProhibited ¶ added in v0.2.17
func ProhibitUser ¶ added in v0.2.17
func UnprohibitUser ¶ added in v0.2.17
Types ¶
type Subscription ¶ added in v0.2.19
type Subscription struct { ID string `json:"id"` ScheduleID string `json:"ScheduleID"` UserID int `json:"user_id"` StartDate database.Date `json:"start_date"` EndDate database.Date `json:"end_date"` Active bool `json:"active"` Trial bool `json:"trial"` Used bool `json:"used"` Schedule bool `json:"schedule"` }
subscription funs
func GetAllSubscriptions ¶ added in v0.2.19
func GetAllSubscriptions(userID int) ([]Subscription, error)
func (Subscription) String ¶ added in v0.2.19
func (s Subscription) String() string
Click to show internal directories.
Click to hide internal directories.