Documentation ¶
Index ¶
- Constants
- Variables
- type Blurb
- type CommentID
- type CommentText
- type Email
- type EmailSubscriber
- type ImdbID
- type InviteCode
- type Invitee
- type MediaTitle
- type Movie
- type MovieID
- type NotificationPreferences
- type Password
- type PasswordHash
- type Rating
- type ReleaseDate
- type Review
- type ReviewComment
- type ReviewID
- type SignupInvitation
- type SortOrder
- type TmdbID
- type User
- type Username
- type WatchDate
Constants ¶
View Source
const (
InviteCodeLength = 6
)
Variables ¶
View Source
var ( InviteePattern = regexp.MustCompile(`(?i)^[a-z0-9áàâüñçå\-\. ]{1,80}$`) // InviteCodeCharset contains the allowed characters for an invite code. It // includes alphanumeric characters with commonly-confused characters removed. InviteCodeCharset = []rune("ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789") )
Functions ¶
This section is empty.
Types ¶
type CommentText ¶
type CommentText string
func (CommentText) String ¶
func (ct CommentText) String() string
type EmailSubscriber ¶
EmailSubscriber represents a user or entity that subscribes to events via email notifications.
type InviteCode ¶
type InviteCode string
func NewInviteCode ¶
func NewInviteCode() InviteCode
func (InviteCode) Empty ¶
func (ic InviteCode) Empty() bool
func (InviteCode) Equal ¶
func (ic InviteCode) Equal(other InviteCode) bool
func (InviteCode) String ¶
func (ic InviteCode) String() string
type MediaTitle ¶
type MediaTitle string
func (MediaTitle) String ¶
func (mt MediaTitle) String() string
type Movie ¶
type Movie struct { ID MovieID TmdbID TmdbID ImdbID ImdbID Title MediaTitle ReleaseDate ReleaseDate PosterPath url.URL }
type NotificationPreferences ¶
type Password ¶
type Password string
type PasswordHash ¶
type PasswordHash []byte
func (PasswordHash) Bytes ¶
func (ph PasswordHash) Bytes() []byte
type ReleaseDate ¶
func (ReleaseDate) Time ¶
func (rd ReleaseDate) Time() time.Time
func (ReleaseDate) Year ¶
func (rd ReleaseDate) Year() int
type ReviewComment ¶
type SignupInvitation ¶
type SignupInvitation struct { Invitee Invitee InviteCode InviteCode }
func (SignupInvitation) Empty ¶
func (si SignupInvitation) Empty() bool
type User ¶
type User struct { IsAdmin bool Username Username Email Email PasswordHash PasswordHash }
Click to show internal directories.
Click to hide internal directories.