model

package
v0.0.0-...-cdf258e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 IAccessControlEntity interface {
	IEntity
	Key() uint64
	Value() uint64
}

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 IActivityPubFollowerEntity

type IActivityPubFollowerEntity interface {
	IEntity
	Handle() string
	Inbox() string
	Subject() string
	Activity() string
	Accepted() bool
}

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 IActivityPubIncomingActivityEntity

type IActivityPubIncomingActivityEntity interface {
	IEntity
	IdentityId() int64
	UniqueIdentifier() string
	Timestamp() int64
	From() string
	To() string
	Content() string
	Raw() string
}

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 IActivityPubOutgoingActivityEntity

type IActivityPubOutgoingActivityEntity interface {
	IEntity
	IdentityId() int64
	UniqueIdentifier() string
	Timestamp() int64
	From() string
	To() string
	Content() string
	Raw() string
}

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 ICategoryEntity interface {
	IEntity
	CategoryTypeId() int64
	CategoryId() int64
	Title() string
	Description() string
}

type ICategoryPipeEntity

type ICategoryPipeEntity interface {
	ICategoryEntity
	IPipeEntity
}

type ICategoryTypeEntity

type ICategoryTypeEntity interface {
	IEntity
	Description() string
}

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 IDocumentEntity interface {
	IEntity
	Content() string
}

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 IEntity

type IEntity interface {
	Stringer
	Id() int64
	SortOrder() float32
	SetSortOrder(float32)
	Payload() string
	SetPayload(string)
	Validate() 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 IPipeEntity interface {
	GetPipe() int
	GetSource() string
	GetEditor() int64
	GetQueueTimestamp() Time
}

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 IRemoteActivityEntity interface {
	IEntity
	EntryPoint() string
	Duration() int64
	Successful() bool
	ErrorMessage() string
	RemoteAddress() string
	UserAgent() string
	EventType() uint32
	Timestamp() int64
}

type IRemoteActivityPipeEntity

type IRemoteActivityPipeEntity interface {
	IRemoteActivityEntity
	IPipeEntity
}

type IRepository

type IRepository interface {
	Name() string
	Migrate() error
	GetSqlDatabase() ISqlDatabase
	SetSqlDatabase(ISqlDatabase)
	Serialize(Pointer, error)
}

type IRepositoryTransaction

type IRepositoryTransaction interface {
	OnCommit(func())
}

type ISystemScheduleEntity

type ISystemScheduleEntity interface {
	IEntity
	Enabled() bool
	Config() string
}

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 IUserEntity interface {
	IEntity
	Github() string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL