Documentation ¶
Index ¶
- Constants
- type AccessControlEntities
- type ActivityPubFollowerEntities
- type ActivityPubIncomingActivityEntities
- type ActivityPubOutgoingActivityEntities
- type CategoryEntities
- type CategoryTypeEntities
- type DocumentEntities
- type IAccessControlEntity
- type IAccessControlPipeEntity
- type IAccessControlsRepository
- type IActivityPubFollowerEntity
- type IActivityPubFollowerPipeEntity
- type IActivityPubFollowersRepository
- type IActivityPubIncomingActivitiesRepository
- type IActivityPubIncomingActivityEntity
- type IActivityPubIncomingActivityPipeEntity
- type IActivityPubOutgoingActivitiesRepository
- type IActivityPubOutgoingActivityEntity
- type IActivityPubOutgoingActivityPipeEntity
- type ICategoriesRepository
- type ICategoryEntity
- type ICategoryPipeEntity
- type ICategoryTypeEntity
- type ICategoryTypePipeEntity
- type ICategoryTypesRepository
- type IDocumentEntity
- type IDocumentPipeEntity
- type IDocumentsRepository
- type IEntity
- type IIdentitiesRepository
- type IIdentityEntity
- type IIdentityPipeEntity
- type IPipe
- type IPipeDescriptor
- type IPipeEntity
- type IPipeRepository
- type IRemoteActivitiesRepository
- type IRemoteActivityEntity
- type IRemoteActivityPipeEntity
- type IRepository
- type IRepositoryTransaction
- type ISystemScheduleEntity
- type ISystemSchedulePipeEntity
- type ISystemSchedulesRepository
- type IUserEntity
- type IUserPipeEntity
- type IUsersRepository
- type IdentityEntities
- type Parameters
- type RemoteActivityEntities
- type RepositoryTransactionHandler
- type SystemScheduleEntities
- type UserEntities
Constants ¶
View Source
const ( PIPE_DOCUMENT = 0x00000001 PIPE_SYSTEM_SCHEDULE = 0x00000002 PIPE_IDENTITY = 0x00000003 PIPE_ACCESS_CONTROL = 0x00000004 PIPE_REMOTE_ACTIVITY = 0x00000005 PIPE_CATEGORY_TYPE = 0x00000006 PIPE_CATEGORY = 0x00000007 PIPE_USER = 0x00000008 PIPE_ACTIVITY_PUB_INCOMING_ACTIVITY = 0x0000000E PIPE_ACTIVITY_PUB_OUTGOING_ACTIVITY = 0x0000000F PIPE_ACTIVITY_PUB_FOLLOWER = 0x00000010 )
noinspection GoUnusedConst,GoSnakeCaseUsage
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlEntities ¶
type AccessControlEntities []IAccessControlEntity
type ActivityPubFollowerEntities ¶
type ActivityPubFollowerEntities []IActivityPubFollowerEntity
type ActivityPubIncomingActivityEntities ¶
type ActivityPubIncomingActivityEntities []IActivityPubIncomingActivityEntity
type ActivityPubOutgoingActivityEntities ¶
type ActivityPubOutgoingActivityEntities []IActivityPubOutgoingActivityEntity
type CategoryEntities ¶
type CategoryEntities []ICategoryEntity
type CategoryTypeEntities ¶
type CategoryTypeEntities []ICategoryTypeEntity
type DocumentEntities ¶
type DocumentEntities []IDocumentEntity
type IAccessControlEntity ¶
type IAccessControlPipeEntity ¶
type IAccessControlPipeEntity interface { IAccessControlEntity IPipeEntity }
type IAccessControlsRepository ¶
type IAccessControlsRepository interface { IRepository Add(entity IAccessControlEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IAccessControlEntity, editor int64) error FetchById(editor int64) (IAccessControlEntity, error) Update(entity IAccessControlEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IAccessControlEntity, editor int64) error Remove(entity IAccessControlEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IAccessControlEntity, editor int64) error FetchAll() (AccessControlEntities, error) UpdateKey(id int64, value uint64, editor int64) error UpdateKeyAtomic(transaction IRepositoryTransaction, id int64, value uint64, editor int64) error UpdateValue(id int64, value uint64, editor int64) error UpdateValueAtomic(transaction IRepositoryTransaction, id int64, value uint64, editor int64) error }
type IActivityPubFollowerPipeEntity ¶
type IActivityPubFollowerPipeEntity interface { IActivityPubFollowerEntity IPipeEntity }
type IActivityPubFollowersRepository ¶
type IActivityPubFollowersRepository interface { IRepository Add(entity IActivityPubFollowerEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IActivityPubFollowerEntity, editor int64) error FetchById(editor int64) (IActivityPubFollowerEntity, error) Update(entity IActivityPubFollowerEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IActivityPubFollowerEntity, editor int64) error Remove(entity IActivityPubFollowerEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IActivityPubFollowerEntity, editor int64) error FetchAll() (ActivityPubFollowerEntities, error) UpdateHandle(id int64, value string, editor int64) error UpdateHandleAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateInbox(id int64, value string, editor int64) error UpdateInboxAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateSubject(id int64, value string, editor int64) error UpdateSubjectAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateActivity(id int64, value string, editor int64) error UpdateActivityAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateAccepted(id int64, value bool, editor int64) error UpdateAcceptedAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error }
type IActivityPubIncomingActivitiesRepository ¶
type IActivityPubIncomingActivitiesRepository interface { IRepository Add(entity IActivityPubIncomingActivityEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IActivityPubIncomingActivityEntity, editor int64) error FetchById(editor int64) (IActivityPubIncomingActivityEntity, error) Update(entity IActivityPubIncomingActivityEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IActivityPubIncomingActivityEntity, editor int64) error Remove(entity IActivityPubIncomingActivityEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IActivityPubIncomingActivityEntity, editor int64) error FetchAll() (ActivityPubIncomingActivityEntities, error) FetchAllByIdentity(identityId int64) (ActivityPubIncomingActivityEntities, error) UpdateUniqueIdentifier(id int64, value string, editor int64) error UpdateUniqueIdentifierAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateTimestamp(id int64, value int64, editor int64) error UpdateTimestampAtomic(transaction IRepositoryTransaction, id int64, value int64, editor int64) error UpdateFrom(id int64, value string, editor int64) error UpdateFromAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateTo(id int64, value string, editor int64) error UpdateToAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateContent(id int64, value string, editor int64) error UpdateContentAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateRaw(id int64, value string, editor int64) error UpdateRawAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IActivityPubIncomingActivityPipeEntity ¶
type IActivityPubIncomingActivityPipeEntity interface { IActivityPubIncomingActivityEntity IPipeEntity }
type IActivityPubOutgoingActivitiesRepository ¶
type IActivityPubOutgoingActivitiesRepository interface { IRepository Add(entity IActivityPubOutgoingActivityEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IActivityPubOutgoingActivityEntity, editor int64) error FetchById(editor int64) (IActivityPubOutgoingActivityEntity, error) Update(entity IActivityPubOutgoingActivityEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IActivityPubOutgoingActivityEntity, editor int64) error Remove(entity IActivityPubOutgoingActivityEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IActivityPubOutgoingActivityEntity, editor int64) error FetchAll() (ActivityPubOutgoingActivityEntities, error) FetchAllByIdentity(identityId int64) (ActivityPubOutgoingActivityEntities, error) UpdateUniqueIdentifier(id int64, value string, editor int64) error UpdateUniqueIdentifierAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateTimestamp(id int64, value int64, editor int64) error UpdateTimestampAtomic(transaction IRepositoryTransaction, id int64, value int64, editor int64) error UpdateFrom(id int64, value string, editor int64) error UpdateFromAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateTo(id int64, value string, editor int64) error UpdateToAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateContent(id int64, value string, editor int64) error UpdateContentAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateRaw(id int64, value string, editor int64) error UpdateRawAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IActivityPubOutgoingActivityPipeEntity ¶
type IActivityPubOutgoingActivityPipeEntity interface { IActivityPubOutgoingActivityEntity IPipeEntity }
type ICategoriesRepository ¶
type ICategoriesRepository interface { IRepository Add(entity ICategoryEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity ICategoryEntity, editor int64) error FetchById(editor int64) (ICategoryEntity, error) Update(entity ICategoryEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity ICategoryEntity, editor int64) error Remove(entity ICategoryEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity ICategoryEntity, editor int64) error FetchAll() (CategoryEntities, error) FetchAllByCategoryType(categoryTypeId int64) (CategoryEntities, error) FetchAllByCategory(categoryId int64) (CategoryEntities, error) UpdateTitle(id int64, value string, editor int64) error UpdateTitleAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateDescription(id int64, value string, editor int64) error UpdateDescriptionAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateSortOrder(id int64, value float32, editor int64) error UpdateSortOrderAtomic(transaction IRepositoryTransaction, id int64, value float32, editor int64) error }
type ICategoryEntity ¶
type ICategoryPipeEntity ¶
type ICategoryPipeEntity interface { ICategoryEntity IPipeEntity }
type ICategoryTypeEntity ¶
type ICategoryTypePipeEntity ¶
type ICategoryTypePipeEntity interface { ICategoryTypeEntity IPipeEntity }
type ICategoryTypesRepository ¶
type ICategoryTypesRepository interface { IRepository Add(entity ICategoryTypeEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity ICategoryTypeEntity, editor int64) error FetchById(editor int64) (ICategoryTypeEntity, error) Update(entity ICategoryTypeEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity ICategoryTypeEntity, editor int64) error Remove(entity ICategoryTypeEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity ICategoryTypeEntity, editor int64) error FetchAll() (CategoryTypeEntities, error) UpdateDescription(id int64, value string, editor int64) error UpdateDescriptionAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IDocumentEntity ¶
type IDocumentPipeEntity ¶
type IDocumentPipeEntity interface { IDocumentEntity IPipeEntity }
type IDocumentsRepository ¶
type IDocumentsRepository interface { IRepository Add(entity IDocumentEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IDocumentEntity, editor int64) error FetchById(editor int64) (IDocumentEntity, error) Update(entity IDocumentEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IDocumentEntity, editor int64) error Remove(entity IDocumentEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IDocumentEntity, editor int64) error FetchAll() (DocumentEntities, error) UpdateContent(id int64, value string, editor int64) error UpdateContentAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IIdentitiesRepository ¶
type IIdentitiesRepository interface { IRepository Add(entity IIdentityEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IIdentityEntity, editor int64) error FetchById(editor int64) (IIdentityEntity, error) Update(entity IIdentityEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IIdentityEntity, editor int64) error Remove(entity IIdentityEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IIdentityEntity, editor int64) error FetchAll() (IdentityEntities, error) UpdateUsername(id int64, value string, editor int64) error UpdateUsernameAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdatePhoneNumber(id int64, value string, editor int64) error UpdatePhoneNumberAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdatePhoneNumberConfirmed(id int64, value bool, editor int64) error UpdatePhoneNumberConfirmedAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error UpdateFirstName(id int64, value string, editor int64) error UpdateFirstNameAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateLastName(id int64, value string, editor int64) error UpdateLastNameAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateDisplayName(id int64, value string, editor int64) error UpdateDisplayNameAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateEmail(id int64, value string, editor int64) error UpdateEmailAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateEmailConfirmed(id int64, value bool, editor int64) error UpdateEmailConfirmedAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error UpdateAvatar(id int64, value string, editor int64) error UpdateAvatarAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateBanner(id int64, value string, editor int64) error UpdateBannerAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateSummary(id int64, value string, editor int64) error UpdateSummaryAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateToken(id int64, value string, editor int64) error UpdateTokenAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateMultiFactor(id int64, value bool, editor int64) error UpdateMultiFactorAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error UpdateHash(id int64, value string, editor int64) error UpdateHashAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateSalt(id int64, value string, editor int64) error UpdateSaltAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdatePublicKey(id int64, value string, editor int64) error UpdatePublicKeyAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdatePrivateKey(id int64, value string, editor int64) error UpdatePrivateKeyAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdatePermission(id int64, value uint64, editor int64) error UpdatePermissionAtomic(transaction IRepositoryTransaction, id int64, value uint64, editor int64) error UpdateRestriction(id int64, value uint32, editor int64) error UpdateRestrictionAtomic(transaction IRepositoryTransaction, id int64, value uint32, editor int64) error UpdateLastLogin(id int64, value int64, editor int64) error UpdateLastLoginAtomic(transaction IRepositoryTransaction, id int64, value int64, editor int64) error UpdateLoginCount(id int64, value uint32, editor int64) error UpdateLoginCountAtomic(transaction IRepositoryTransaction, id int64, value uint32, editor int64) error }
type IIdentityEntity ¶
type IIdentityEntity interface { IEntity Username() string PhoneNumber() string PhoneNumberConfirmed() bool FirstName() string LastName() string DisplayName() string Email() string EmailConfirmed() bool Avatar() string Banner() string Summary() string Token() string MultiFactor() bool Hash() string Salt() string PublicKey() string PrivateKey() string Permission() uint64 Restriction() uint32 LastLogin() int64 LoginCount() uint32 }
type IIdentityPipeEntity ¶
type IIdentityPipeEntity interface { IIdentityEntity IPipeEntity }
type IPipe ¶
type IPipe interface { Input() chan IPipeEntity Signal() chan int OpenValve() }
type IPipeDescriptor ¶
type IPipeDescriptor interface { Id() int GetSemaphore() *sync.Mutex GetQuery() string GetParametersResolver() func(IPipeEntity) Parameters }
type IPipeEntity ¶
type IPipeRepository ¶
type IPipeRepository interface { IRepository Insert(...IPipeEntity) }
type IRemoteActivitiesRepository ¶
type IRemoteActivitiesRepository interface { IRepository Add(entity IRemoteActivityEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IRemoteActivityEntity, editor int64) error FetchById(editor int64) (IRemoteActivityEntity, error) Update(entity IRemoteActivityEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IRemoteActivityEntity, editor int64) error Remove(entity IRemoteActivityEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IRemoteActivityEntity, editor int64) error FetchAll() (RemoteActivityEntities, error) UpdateEntryPoint(id int64, value string, editor int64) error UpdateEntryPointAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateDuration(id int64, value int64, editor int64) error UpdateDurationAtomic(transaction IRepositoryTransaction, id int64, value int64, editor int64) error UpdateSuccessful(id int64, value bool, editor int64) error UpdateSuccessfulAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error UpdateErrorMessage(id int64, value string, editor int64) error UpdateErrorMessageAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateRemoteAddress(id int64, value string, editor int64) error UpdateRemoteAddressAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateUserAgent(id int64, value string, editor int64) error UpdateUserAgentAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error UpdateEventType(id int64, value uint32, editor int64) error UpdateEventTypeAtomic(transaction IRepositoryTransaction, id int64, value uint32, editor int64) error UpdateTimestamp(id int64, value int64, editor int64) error UpdateTimestampAtomic(transaction IRepositoryTransaction, id int64, value int64, editor int64) error }
type IRemoteActivityEntity ¶
type IRemoteActivityPipeEntity ¶
type IRemoteActivityPipeEntity interface { IRemoteActivityEntity IPipeEntity }
type IRepository ¶
type IRepositoryTransaction ¶
type IRepositoryTransaction interface {
OnCommit(func())
}
type ISystemScheduleEntity ¶
type ISystemSchedulePipeEntity ¶
type ISystemSchedulePipeEntity interface { ISystemScheduleEntity IPipeEntity }
type ISystemSchedulesRepository ¶
type ISystemSchedulesRepository interface { IRepository Add(entity ISystemScheduleEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity ISystemScheduleEntity, editor int64) error FetchById(editor int64) (ISystemScheduleEntity, error) Update(entity ISystemScheduleEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity ISystemScheduleEntity, editor int64) error Remove(entity ISystemScheduleEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity ISystemScheduleEntity, editor int64) error FetchAll() (SystemScheduleEntities, error) UpdateEnabled(id int64, value bool, editor int64) error UpdateEnabledAtomic(transaction IRepositoryTransaction, id int64, value bool, editor int64) error UpdateConfig(id int64, value string, editor int64) error UpdateConfigAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IUserEntity ¶
type IUserPipeEntity ¶
type IUserPipeEntity interface { IUserEntity IPipeEntity }
type IUsersRepository ¶
type IUsersRepository interface { IRepository Add(entity IUserEntity, editor int64) error AddAtomic(transaction IRepositoryTransaction, entity IUserEntity, editor int64) error FetchById(editor int64) (IUserEntity, error) Update(entity IUserEntity, editor int64) error UpdateAtomic(transaction IRepositoryTransaction, entity IUserEntity, editor int64) error Remove(entity IUserEntity, editor int64) error RemoveAtomic(transaction IRepositoryTransaction, entity IUserEntity, editor int64) error FetchAll() (UserEntities, error) UpdateGithub(id int64, value string, editor int64) error UpdateGithubAtomic(transaction IRepositoryTransaction, id int64, value string, editor int64) error }
type IdentityEntities ¶
type IdentityEntities []IIdentityEntity
type Parameters ¶
type Parameters []interface{}
type RemoteActivityEntities ¶
type RemoteActivityEntities []IRemoteActivityEntity
type RepositoryTransactionHandler ¶
type RepositoryTransactionHandler func(transaction IRepositoryTransaction) error
type SystemScheduleEntities ¶
type SystemScheduleEntities []ISystemScheduleEntity
type UserEntities ¶
type UserEntities []IUserEntity
Click to show internal directories.
Click to hide internal directories.