Documentation ¶
Index ¶
Constants ¶
View Source
const ( RatingEventTypePut = "put" RatingEventTypeDelete = "delete" )
Rating event types.
View Source
const (
RecordTypeMovie = RecordType("movie")
)
Existing record types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rating ¶
type Rating struct { RecordID string `json:"recordId"` RecordType string `json:"recordType"` UserID UserID `json:"userId"` Value RatingValue `json:"value"` }
Rating define an individual rating created by a user for some record.
type RatingEvent ¶
type RatingEvent struct { RecordID string `json:"recordId"` RecordType string `json:"recordType"` UserID UserID `json:"userId"` Value RatingValue `json:"value"` EventType RatingEventType `json:"eventType"` }
RatingEvent defines an event containing rating information.
type RatingEventType ¶
type RatingEventType string
RatingEventType defines the type of a rating event.
type RecordID ¶
type RecordID string
RecordID defines a record id. Together with RecordType identifies unique records across all types.
type RecordType ¶
type RecordType string
RecordType defines a record type. Together with RecordID identifies unique records across all types.
Click to show internal directories.
Click to hide internal directories.