package
Version:
v0.0.0-...-a9a82f6
Opens a new window with list of versions in this module.
Published: Feb 6, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Event struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
TypeID int32 `json:"eventTypeId"`
Date time.Time `json:"date"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type EventType struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
EventType string `json:"eventType"`
IsVisible bool `json:"isVisible"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type Friend struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
WithUserID int32 `json:"withUserId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type FriendInvite struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
WithUserID int32 `json:"withUserId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type Password struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
PasswordHash string `json:"passwordHash"`
FailedAttempts int32 `json:"failedAttempts"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
BlockedAt *time.Time `json:"blockedAt"`
}
type Session struct {
ID int32 `json:"id"`
UserID int32 `json:"userId"`
Session string `json:"session,omitempty"`
SessionHash string `json:"sessionHash"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type User struct {
ID int32 `json:"id"`
Username string `json:"username"`
DisplayedName string `json:"displayedName"`
Email *string `json:"email"`
ProfileImage *string `json:"profileImage"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.