Documentation
¶
Index ¶
- type Group
- type Notification
- type Notifications
- type System
- func (s *System) CreateUser(w http.ResponseWriter, r *http.Request)
- func (s *System) CreateUserDetails(subject, knownAs, email, firstname, lastname, location string, userGroup int) error
- func (s *System) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (s *System) DeleteUserInDB(subject string) error
- func (s *System) DeleteUserInKeycloak(subject string) error
- func (s *System) DeleteUserNotification(w http.ResponseWriter, r *http.Request)
- func (s *System) DeleteUserNotificationInDB(subject, notificationId string) error
- func (s *System) GetKeycloakDetails(subject string) (*gocloak.User, error)
- func (s *System) GetUser(w http.ResponseWriter, r *http.Request)
- func (s *System) GetUserNotifications(w http.ResponseWriter, r *http.Request)
- func (s *System) MarkNotificationAsRead(subject, notificationId string) error
- func (s *System) RetrieveUserDetailsDB(subject string) (*User, error)
- func (s *System) RetrieveUserNotifications(subject string) ([]Notification, error)
- func (s *System) SetContext(ctx context.Context) *System
- func (s *System) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateUserDetailsDB(subject, knownAs, email, firstname, lastname, location string) error
- func (s *System) UpdateUserImage(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateUserImageInDB(subject string, image string) error
- func (s *System) UpdateUserNotification(w http.ResponseWriter, r *http.Request)
- func (s *System) UploadThing(w http.ResponseWriter, r *http.Request)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notifications ¶
type Notifications struct {
Notifications []Notification `json:"notifications,omitempty"`
}
type System ¶
type System struct {
Config *ConfigBuilder.Config
Context context.Context
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) CreateUser ¶
func (s *System) CreateUser(w http.ResponseWriter, r *http.Request)
func (*System) CreateUserDetails ¶
func (*System) DeleteUser ¶
func (s *System) DeleteUser(w http.ResponseWriter, r *http.Request)
func (*System) DeleteUserInDB ¶
func (*System) DeleteUserInKeycloak ¶
func (*System) DeleteUserNotification ¶
func (s *System) DeleteUserNotification(w http.ResponseWriter, r *http.Request)
func (*System) DeleteUserNotificationInDB ¶
func (*System) GetKeycloakDetails ¶
func (*System) GetUserNotifications ¶
func (s *System) GetUserNotifications(w http.ResponseWriter, r *http.Request)
func (*System) MarkNotificationAsRead ¶
func (*System) RetrieveUserDetailsDB ¶
func (*System) RetrieveUserNotifications ¶
func (s *System) RetrieveUserNotifications(subject string) ([]Notification, error)
func (*System) UpdateUser ¶
func (s *System) UpdateUser(w http.ResponseWriter, r *http.Request)
func (*System) UpdateUserDetailsDB ¶
func (*System) UpdateUserImage ¶
func (s *System) UpdateUserImage(w http.ResponseWriter, r *http.Request)
func (*System) UpdateUserImageInDB ¶
func (*System) UpdateUserNotification ¶
func (s *System) UpdateUserNotification(w http.ResponseWriter, r *http.Request)
func (*System) UploadThing ¶
func (s *System) UploadThing(w http.ResponseWriter, r *http.Request)
type User ¶
type User struct {
Id *string `json:"id,omitempty"`
KnownAs *string `json:"known_as,omitempty"`
Email *string `json:"email_address,omitempty"`
Subject *string `json:"subject,omitempty"`
Timezone *string `json:"timezone,omitempty"`
JobTitle *string `json:"job_title,omitempty"`
Location *string `json:"location,omitempty"`
Avatar *string `json:"avatar,omitempty"`
FirstName *string `json:"first_name,omitempty"`
LastName *string `json:"last_name,omitempty"`
UserGroup *Group `json:"user_group,omitempty"`
Onboarded bool `json:"onboarded,omitempty"`
Created bool `json:"created,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.