Documentation ¶
Index ¶
- type Handler
- func (ud *Handler) Add(id int64, keyword string) error
- func (ud *Handler) Exists(id int64, keyword string) bool
- func (ud *Handler) Get(id int64) Keywords
- func (ud *Handler) GetByKeyword(keyword string) []int64
- func (ud *Handler) GetKeywords() []string
- func (ud *Handler) Increment(id int64, keyword string) error
- func (ud *Handler) Remove(id int64, keyword string) error
- func (ud *Handler) Sync()
- type Interface
- type Keywords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents all information stored by the application
func (*Handler) GetByKeyword ¶
GetByKeyword returns a list of user IDs for a given keyword
func (*Handler) GetKeywords ¶
GetKeywords returns the list of all keywords being searched for
Click to show internal directories.
Click to hide internal directories.