Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApnsTokenConfig ¶
type Dashboard ¶
type Dashboard struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` WidgetContainer []WidgetContainer `json:"widget_container,omitempty" bson:"widget_container,omitempty"` User string `json:"user,omitempty" bson:"user,omitempty"` Official bool `json:"official,omitempty" bson:"official,omitempty"` Default bool `json:"default,omitempty" bson:"default,omitempty"` MeetingStates []string `json:"meeting_states,omitempty" bson:"meeting_states,omitempty"` }
type Device ¶
type Device struct { Name string `json:"name" bson:"name"` Model string `json:"model" bson:"model"` LocalizedModel string `json:"localized_model" bson:"localized_model"` SystemName string `json:"system_name" bson:"system_name"` SystemVersion string `json:"system_version" bson:"system_version"` Type string `json:"type" bson:"type"` UISize string `json:"ui_size" bson:"ui_size"` Language string `json:"language" bson:"language"` AppVersion string `json:"app_version" bson:"app_version"` }
type Following ¶
type Following struct { FollowingAthletes []FollowingAthlete `json:"following_athletes,omitempty" bson:"following_athletes,omitempty"` FollowingTeams []FollowingTeam `json:"following_teams,omitempty" bson:"following_teams,omitempty"` }
Following TODO use merged struct
type FollowingAthlete ¶
type FollowingTeam ¶
type FollowingTeam struct { TeamId primitive.ObjectID `json:"team_id" bson:"team_id"` AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` }
FollowingTeam TODO make teams followable
type NotificationSettings ¶
type NotificationUser ¶
type NotificationUser struct { Identifier primitive.ObjectID `json:"_id" bson:"_id,omitempty"` UserId primitive.ObjectID `json:"user_id" bson:"user_id,omitempty"` Token string `json:"token" bson:"token"` Settings NotificationSettings `json:"settings,omitempty" bson:"settings"` Device Device `json:"device" bson:"device"` AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"` }
func (*NotificationUser) HasSetting ¶ added in v0.1.4
func (user *NotificationUser) HasSetting(notificationType string) bool
type TokenClaims ¶
func (*TokenClaims) IsRoot ¶
func (tc *TokenClaims) IsRoot() bool
type User ¶
type User struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` KeycloakId string `json:"keycloak_id,omitempty" bson:"keycloak_id,omitempty"` Following []FollowingAthlete `json:"following,omitempty" bson:"following,omitempty"` OwnAthleteId *primitive.ObjectID `json:"own_athlete_id,omitempty" bson:"own_athlete_id,omitempty"` Settings Settings `json:"settings,omitempty" bson:"settings,omitempty"` Meetings []string `json:"meetings,omitempty" bson:"meetings,omitempty"` }
type WidgetContainer ¶
type WidgetContainer struct { OrderPosition int `json:"order_position,omitempty" bson:"order_position,omitempty"` Widgets []WidgetTile `json:"widgets,omitempty" bson:"widgets,omitempty"` }
Click to show internal directories.
Click to hide internal directories.