Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationToken ¶
type AuthenticationToken struct {
authvalues.BasicAuthToken
ID HexID
User User
}
type Identifier ¶
type Identifier uint64 // Integer based identifier
type Participant ¶
type Participant struct {
Timestamp
ID HexID
RelatedUser User
SecretFriendID HexID
JoinedAt time.Time
IsReady bool
}
func NewParticipant ¶
func NewParticipant(secretFriendID HexID, relatedUser User) Participant
type SecretFriend ¶
type SecretFriend struct {
Timestamp
ID HexID
Name string
Datetime time.Time
Location string
OwnerID HexID
InviteCode string
MaxDenyListSize uint8
Status SecretFriendStatus
Participants []Participant
}
func (*SecretFriend) Normalize ¶
func (sf *SecretFriend) Normalize()
type SecretFriendStatus ¶
type SecretFriendStatus string
const ( StatusDraft SecretFriendStatus = "draft" StatusOpen SecretFriendStatus = "open" StatusDrawn SecretFriendStatus = "drawn" StatusClosed SecretFriendStatus = "closed" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.