Documentation ¶
Index ¶
- func New(db *sql.DB) picklist.Service
- type Service
- func (s *Service) Delete(id string) error
- func (s *Service) Get(id string) (p picklist.Picklist, err error)
- func (s *Service) GetBasicPicklists(username string) (bPicklists []picklist.BasicPicklist, err error)
- func (s *Service) GetByEvent(username, eventKey string) (bPicklists []picklist.BasicPicklist, err error)
- func (s *Service) GetOwner(id string) (username string, err error)
- func (s *Service) Insert(p picklist.Picklist) (string, error)
- func (s *Service) Update(p picklist.Picklist) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used for getting information about a picklist from a postgres database.
func (*Service) GetBasicPicklists ¶
func (s *Service) GetBasicPicklists(username string) (bPicklists []picklist.BasicPicklist, err error)
GetBasicPicklists gets all basic picklists that belong to a certain user from the postgresql database.
func (*Service) GetByEvent ¶
func (s *Service) GetByEvent(username, eventKey string) (bPicklists []picklist.BasicPicklist, err error)
GetByEvent gets basic picklists from the postgresql database by username and eventKey.
Click to show internal directories.
Click to hide internal directories.