Documentation
¶
Index ¶
- type ErrorMessage
- type Feedback
- type GorseClient
- func (c *GorseClient) DeleteItem(itemId string) (RowAffected, error)
- func (c *GorseClient) DeleteUser(userId string) (RowAffected, error)
- func (c *GorseClient) GetItem(itemId string) (Item, error)
- func (c *GorseClient) GetNeighbors(itemId string, n int) ([]Score, error)
- func (c *GorseClient) GetRecommend(userId string, category string, n int) ([]string, error)
- func (c *GorseClient) GetUser(userId string) (User, error)
- func (c *GorseClient) InsertFeedback(feedbacks []Feedback) (RowAffected, error)
- func (c *GorseClient) InsertItem(item Item) (RowAffected, error)
- func (c *GorseClient) InsertUser(user User) (RowAffected, error)
- func (c *GorseClient) ListFeedbacks(feedbackType, userId string) ([]Feedback, error)
- func (c *GorseClient) SessionRecommend(feedbacks []Feedback, n int) ([]Score, error)
- type Item
- type RowAffected
- type Score
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorMessage ¶
type ErrorMessage string
func (ErrorMessage) Error ¶
func (e ErrorMessage) Error() string
type GorseClient ¶
type GorseClient struct {
// contains filtered or unexported fields
}
func NewGorseClient ¶
func NewGorseClient(EntryPoint, ApiKey string) *GorseClient
func (*GorseClient) DeleteItem ¶
func (c *GorseClient) DeleteItem(itemId string) (RowAffected, error)
func (*GorseClient) DeleteUser ¶
func (c *GorseClient) DeleteUser(userId string) (RowAffected, error)
func (*GorseClient) GetNeighbors ¶
func (c *GorseClient) GetNeighbors(itemId string, n int) ([]Score, error)
func (*GorseClient) GetRecommend ¶
func (*GorseClient) InsertFeedback ¶
func (c *GorseClient) InsertFeedback(feedbacks []Feedback) (RowAffected, error)
func (*GorseClient) InsertItem ¶
func (c *GorseClient) InsertItem(item Item) (RowAffected, error)
func (*GorseClient) InsertUser ¶
func (c *GorseClient) InsertUser(user User) (RowAffected, error)
func (*GorseClient) ListFeedbacks ¶
func (c *GorseClient) ListFeedbacks(feedbackType, userId string) ([]Feedback, error)
func (*GorseClient) SessionRecommend ¶
func (c *GorseClient) SessionRecommend(feedbacks []Feedback, n int) ([]Score, error)
type RowAffected ¶
type RowAffected struct {
RowAffected int `json:"RowAffected"`
}
Click to show internal directories.
Click to hide internal directories.