Documentation ¶
Index ¶
- func CopyIntegration(integration *resource.Integration) *model.Integration
- func CopyPreferences(preferences *resource.Preferences) *model.Preferences
- func CopyProfile(profile *resource.Profile) *model.Profile
- func CreateIntegration(ctx context.Context, app *inits.App, integrationInput *model.IntegrationInput) (*model.Integration, error)
- func GetIntegration(_ context.Context, app *inits.App, integrationID *string) (*model.Integration, error)
- func GetPreferences(_ context.Context, app *inits.App, preferencesID *string) (*model.Preferences, error)
- func GetSessionUser(ctx context.Context, app *inits.App) (*model.SessionUser, error)
- func GetSessionUserPreferences(_ context.Context, app *inits.App, userID *string) (*model.Preferences, error)
- func UpdateProfile(_ context.Context, app *inits.App, profileID *string, ...) (*model.Profile, error)
- func UploadIntegrationAvatar(_ context.Context, app *inits.App, integrationID *string, file *graphql.Upload) (*string, error)
- func UploadProfileAvatar(_ context.Context, app *inits.App, profileID *string, file *graphql.Upload) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyIntegration ¶
func CopyIntegration(integration *resource.Integration) *model.Integration
CopyIntegration copies integration from one struct to another.
func CopyPreferences ¶
func CopyPreferences(preferences *resource.Preferences) *model.Preferences
CopyPreferences copies preferences from one struct to another.
func CopyProfile ¶
CopyProfile copies profile from one struct to another.
func CreateIntegration ¶
func CreateIntegration(ctx context.Context, app *inits.App, integrationInput *model.IntegrationInput) (*model.Integration, error)
CreateIntegration creates a new integration in the database.
func GetIntegration ¶
func GetIntegration(_ context.Context, app *inits.App, integrationID *string) (*model.Integration, error)
GetIntegration gets an existing integration from the database.
func GetPreferences ¶
func GetPreferences(_ context.Context, app *inits.App, preferencesID *string) (*model.Preferences, error)
GetPreferences gets an existing preferences from the database.
func GetSessionUser ¶
GetSessionUser get the session user main details.
func GetSessionUserPreferences ¶
func GetSessionUserPreferences(_ context.Context, app *inits.App, userID *string) (*model.Preferences, error)
GetSessionUserPreferences gets user's preferences from the database. Dataloader is not needed for this because there is really only going to be one session user.
func UpdateProfile ¶
func UpdateProfile(_ context.Context, app *inits.App, profileID *string, profileInput *model.ProfileInput) (*model.Profile, error)
UpdateProfile updates an existing profile from the database.
Types ¶
This section is empty.