Documentation ¶
Index ¶
- func AddUserToMailList(id string, decision *models.DecisionHistory) error
- func AssignValueType(key, value string) (interface{}, error)
- func GetDecision(id string) (*models.DecisionHistory, error)
- func GetFilteredDecisions(parameters map[string][]string) (*models.FilteredDecisions, error)
- func GetStats() (map[string]interface{}, error)
- func HasDecision(id string) (bool, error)
- func UpdateDecision(id string, decision models.Decision) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToMailList ¶
func AddUserToMailList(id string, decision *models.DecisionHistory) error
Adds user with specified id to an appropriate mail list, based on their current decision. If the mail list doesn't exist, a new one is created, containing the user.
func AssignValueType ¶
func GetDecision ¶
func GetDecision(id string) (*models.DecisionHistory, error)
Returns the decision associated with the given user id
func GetFilteredDecisions ¶
func GetFilteredDecisions(parameters map[string][]string) (*models.FilteredDecisions, error)
Returns decisions based on a filter
func HasDecision ¶
Checks if a decision with the provided id exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.