Versions in this module Expand all Collapse all v0 v0.56.0 Sep 4, 2025 v0.55.2 May 7, 2025 v0.55.1 Feb 17, 2025 v0.55.0 Jan 6, 2025 v0.54.1 Mar 29, 2024 v0.54.0 Mar 28, 2024 v0.53.1 Mar 26, 2024 v0.53.0 Sep 4, 2023 Changes in this version + func InsertOldUserOrganisation(ctx context.Context, db gorpmapper.SqlExecutorWithTx, userID, orgaName string) error + func InsertUserOrganization(ctx context.Context, db gorpmapper.SqlExecutorWithTx, o *UserOrganization) error + type OrganizationOld struct + AuthentifiedUserID string + ID int64 + Organization string + func LoadOldOrganizationsByUserIDs(ctx context.Context, db gorp.SqlExecutor, userIDs []string) ([]OrganizationOld, error) + func (o OrganizationOld) Canonical() gorpmapper.CanonicalForms + type UserOrganization struct + AuthentifiedUserID string + ID string + OrganizationID string + func LoadAllUserOrganizationsByUserIDs(ctx context.Context, db gorp.SqlExecutor, userIDs []string) ([]UserOrganization, error) + func (o UserOrganization) Canonical() gorpmapper.CanonicalForms v0.52.0 Sep 26, 2022 Changes in this version + func DeleteGPGKey(db gorpmapper.SqlExecutorWithTx, gpgKey sdk.UserGPGKey) error + func InsertGPGKey(ctx context.Context, db gorpmapper.SqlExecutorWithTx, gpgKey *sdk.UserGPGKey) error + func LoadGPGKeyByKeyID(ctx context.Context, db gorp.SqlExecutor, keyID string) (*sdk.UserGPGKey, error) + func LoadGPGKeysByUserID(ctx context.Context, db gorp.SqlExecutor, userID string) ([]sdk.UserGPGKey, error) + func LoadUsersWithoutOrganization(ctx context.Context, db gorp.SqlExecutor) ([]sdk.AuthentifiedUser, error) v0.50.0 Dec 14, 2021 Changes in this version + var LoadOptions = struct{ ... } + func CountAdmin(db gorp.SqlExecutor) (int64, error) + func CountTimelineFilter(db gorp.SqlExecutor, userID string) (int64, error) + func DeleteByID(db gorp.SqlExecutor, id string) error + func Get(ctx context.Context, db gorp.SqlExecutor, q gorpmapping.Query, ...) (*sdk.AuthentifiedUser, error) + func Insert(ctx context.Context, db gorpmapper.SqlExecutorWithTx, au *sdk.AuthentifiedUser) error + func InsertContact(ctx context.Context, db gorpmapper.SqlExecutorWithTx, c *sdk.UserContact) error + func InsertOrganization(ctx context.Context, db gorpmapper.SqlExecutorWithTx, o *Organization) error + func InsertTimelineFilter(db gorp.SqlExecutor, tf sdk.TimelineFilter, userID string) error + func LoadAll(ctx context.Context, db gorp.SqlExecutor, opts ...LoadOptionFunc) (sdk.AuthentifiedUsers, error) + func LoadAllByIDs(ctx context.Context, db gorp.SqlExecutor, ids []string, opts ...LoadOptionFunc) (sdk.AuthentifiedUsers, error) + func LoadAllByRing(ctx context.Context, db gorp.SqlExecutor, ring string, opts ...LoadOptionFunc) (sdk.AuthentifiedUsers, error) + func LoadByID(ctx context.Context, db gorp.SqlExecutor, id string, opts ...LoadOptionFunc) (*sdk.AuthentifiedUser, error) + func LoadByUsername(ctx context.Context, db gorp.SqlExecutor, username string, ...) (*sdk.AuthentifiedUser, error) + func LoadContactByTypeAndValue(ctx context.Context, db gorp.SqlExecutor, contactType, value string) (*sdk.UserContact, error) + func LoadContactsByUserIDs(ctx context.Context, db gorp.SqlExecutor, userIDs []string) ([]sdk.UserContact, error) + func LoadTimelineFilter(db gorp.SqlExecutor, userID string) (sdk.TimelineFilter, error) + func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, au *sdk.AuthentifiedUser) error + func UpdateContact(ctx context.Context, db gorpmapper.SqlExecutorWithTx, c *sdk.UserContact) error + func UpdateTimelineFilter(db gorp.SqlExecutor, timelineFilter sdk.TimelineFilter, userID string) error + type LoadOptionFunc func(context.Context, gorp.SqlExecutor, ...*sdk.AuthentifiedUser) error + type Organization struct + AuthentifiedUserID string + ID int64 + Organization string + func LoadOrganizationByUserID(ctx context.Context, db gorp.SqlExecutor, userID string) (*Organization, error) + func LoadOrganizationsByUserIDs(ctx context.Context, db gorp.SqlExecutor, userIDs []string) ([]Organization, error) + func (o Organization) Canonical() gorpmapper.CanonicalForms