core

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: 56 Imported by: 0

Documentation

Index

Constants

View Source
const ACCESS_CONTROL_MANAGER = "AccessControlManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_ACTIVITY_MANAGER = "ActivityPubActivityManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_FOLLOWER_MANAGER = "ActivityPubFollowerManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_INCOMING_ACTIVITY_MANAGER = "ActivityPubIncomingActivityManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_LINK_MANAGER = "ActivityPubLinkManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_MEDIA_MANAGER = "ActivityPubMediaManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_OBJECT_MANAGER = "ActivityPubObjectManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_OUTGOING_ACTIVITY_MANAGER = "ActivityPubOutgoingActivityManager"

noinspection GoSnakeCaseUsage

View Source
const ACTIVITY_PUB_PUBLIC_KEY_MANAGER = "ActivityPubPublicKeyManager"

noinspection GoSnakeCaseUsage

View Source
const CATEGORY_MANAGER = "CategoryManager"

noinspection GoSnakeCaseUsage

View Source
const CATEGORY_TYPE_MANAGER = "CategoryTypeManager"

noinspection GoSnakeCaseUsage

View Source
const DOCUMENT_MANAGER = "DocumentManager"

noinspection GoSnakeCaseUsage

View Source
const IDENTITY_MANAGER = "IdentityManager"

noinspection GoSnakeCaseUsage

View Source
const REMOTE_ACTIVITY_MANAGER = "RemoteActivityManager"

noinspection GoSnakeCaseUsage

View Source
const SPI_MANAGER = "SpiManager"

noinspection GoSnakeCaseUsage

View Source
const SYSTEM_SCHEDULE_MANAGER = "SystemScheduleManager"

noinspection GoSnakeCaseUsage

View Source
const USER_MANAGER = "UserManager"

noinspection GoSnakeCaseUsage

Variables

View Source
var (
	// @formatter:off
	Conductor IConductor

	Dockerized = runningInContainer == "true"
)
View Source
var API_RESULT = make(map[uint64]Pointer)

noinspection GoSnakeCaseUsage

View Source
var EPOCH = time.Date(1970, time.January, 0, 0, 0, 0, 0, time.UTC)

Functions

func Initialize

func Initialize(configuration IConfiguration, logger ILogger) error

func NewAccessControl

func NewAccessControl(id int64, key uint64, value uint64) (IAccessControl, error)

func NewAccessControlFromEntity

func NewAccessControlFromEntity(entity IAccessControlEntity) (IAccessControl, error)

func NewAccessControls

func NewAccessControls() IAccessControlCollection

NewAccessControls creates an empty collection of 'Access Control' which is not thread-safe.

func NewActivityPubActivities

func NewActivityPubActivities() IActivityPubActivityCollection

NewActivityPubActivities creates an empty collection of 'Activity Pub Activity' which is not thread-safe.

func NewActivityPubActivity

func NewActivityPubActivity() (IActivityPubActivity, error)

func NewActivityPubFollower

func NewActivityPubFollower(id int64, handle string, inbox string, subject string, activity string, accepted bool) (IActivityPubFollower, error)

func NewActivityPubFollowerFromEntity

func NewActivityPubFollowerFromEntity(entity IActivityPubFollowerEntity) (IActivityPubFollower, error)

func NewActivityPubFollowers

func NewActivityPubFollowers() IActivityPubFollowerCollection

NewActivityPubFollowers creates an empty collection of 'Activity Pub Follower' which is not thread-safe.

func NewActivityPubIncomingActivities

func NewActivityPubIncomingActivities() IActivityPubIncomingActivityCollection

NewActivityPubIncomingActivities creates an empty collection of 'Activity Pub Incoming Activity' which is not thread-safe.

func NewActivityPubIncomingActivity

func NewActivityPubIncomingActivity(id int64, identityId int64, uniqueIdentifier string, timestamp int64, from string, to string, content string, raw string) (IActivityPubIncomingActivity, error)

func NewActivityPubIncomingActivityFromEntity

func NewActivityPubIncomingActivityFromEntity(entity IActivityPubIncomingActivityEntity) (IActivityPubIncomingActivity, error)
func NewActivityPubLink() (IActivityPubLink, error)
func NewActivityPubLinks() IActivityPubLinkCollection

NewActivityPubLinks creates an empty collection of 'Activity Pub Link' which is not thread-safe.

func NewActivityPubMedia

func NewActivityPubMedia() (IActivityPubMedia, error)

func NewActivityPubMedias

func NewActivityPubMedias() IActivityPubMediaCollection

NewActivityPubMedias creates an empty collection of 'Activity Pub Media' which is not thread-safe.

func NewActivityPubObject

func NewActivityPubObject() (IActivityPubObject, error)

func NewActivityPubObjects

func NewActivityPubObjects() IActivityPubObjectCollection

NewActivityPubObjects creates an empty collection of 'Activity Pub Object' which is not thread-safe.

func NewActivityPubOutgoingActivities

func NewActivityPubOutgoingActivities() IActivityPubOutgoingActivityCollection

NewActivityPubOutgoingActivities creates an empty collection of 'Activity Pub Outgoing Activity' which is not thread-safe.

func NewActivityPubOutgoingActivity

func NewActivityPubOutgoingActivity(id int64, identityId int64, uniqueIdentifier string, timestamp int64, from string, to string, content string, raw string) (IActivityPubOutgoingActivity, error)

func NewActivityPubOutgoingActivityFromEntity

func NewActivityPubOutgoingActivityFromEntity(entity IActivityPubOutgoingActivityEntity) (IActivityPubOutgoingActivity, error)

func NewActivityPubPublicKey

func NewActivityPubPublicKey() (IActivityPubPublicKey, error)

func NewActivityPubPublicKeys

func NewActivityPubPublicKeys() IActivityPubPublicKeyCollection

NewActivityPubPublicKeys creates an empty collection of 'Activity Pub Public Key' which is not thread-safe.

func NewAnonymousIdentity

func NewAnonymousIdentity(token, remoteAddress string, userAgent string) IIdentity

func NewApi

func NewApi(endpoint string, logger ILogger) IApi

func NewAuthorizeInteractionResult

func NewAuthorizeInteractionResult(uri string, success bool, _ interface{}) IAuthorizeInteractionResult

func NewCategories

func NewCategories() ICategoryCollection

NewCategories creates an empty collection of 'Category' which is not thread-safe.

func NewCategory

func NewCategory(id int64, categoryTypeId int64, categoryId int64, title string, description string) (ICategory, error)

func NewCategoryFromEntity

func NewCategoryFromEntity(entity ICategoryEntity) (ICategory, error)

func NewCategoryType

func NewCategoryType(id int64, description string) (ICategoryType, error)

func NewCategoryTypeFromEntity

func NewCategoryTypeFromEntity(entity ICategoryTypeEntity) (ICategoryType, error)

func NewCategoryTypes

func NewCategoryTypes() ICategoryTypeCollection

NewCategoryTypes creates an empty collection of 'Category Type' which is not thread-safe.

func NewChangePasswordResult

func NewChangePasswordResult(_ interface{}) IChangePasswordResult

func NewCheckUsernameAvailabilityResult

func NewCheckUsernameAvailabilityResult(isAvailable bool, _ interface{}) ICheckUsernameAvailabilityResult

func NewDispatcher

func NewDispatcher(conductor IConductor, identity Identity) IDispatcher

func NewDocument

func NewDocument(id int64, content string) (IDocument, error)

func NewDocumentFromEntity

func NewDocumentFromEntity(entity IDocumentEntity) (IDocument, error)

func NewDocuments

func NewDocuments() IDocumentCollection

NewDocuments creates an empty collection of 'Document' which is not thread-safe.

func NewEchoResult

func NewEchoResult(document IDocument, _ interface{}) IEchoResult

func NewFollowActorResult

func NewFollowActorResult(_ interface{}) IFollowActorResult

func NewGetActorResult

func NewGetActorResult(context []string, id string, followers string, following string, inbox string, outbox string, name string, preferredUsername string, type_ string, url string, icon IActivityPubMedia, image IActivityPubMedia, publicKey IActivityPubPublicKey, summary string, published string, _ interface{}) IGetActorResult

func NewGetFollowersResult

func NewGetFollowersResult(context string, id string, type_ string, totalItems int32, orderedItems []string, first string, _ interface{}) IGetFollowersResult

func NewGetFollowingResult

func NewGetFollowingResult(context string, id string, type_ string, totalItems int32, orderedItems []string, first string, _ interface{}) IGetFollowingResult

func NewGetInboxResult

func NewGetInboxResult(context string, id string, type_ string, totalItems int32, orderedItems []IActivityPubActivity, first string, _ interface{}) IGetInboxResult

func NewGetOutboxResult

func NewGetOutboxResult(context string, id string, type_ string, totalItems int32, orderedItems []IActivityPubActivity, first string, _ interface{}) IGetOutboxResult

func NewGetPackagesResult

func NewGetPackagesResult(body []byte, _ interface{}) IGetPackagesResult

func NewGetProfileByUserResult

func NewGetProfileByUserResult(username string, displayName string, avatar string, banner string, summary string, github string, _ interface{}) IGetProfileByUserResult

func NewGetServerConfigurationResult

func NewGetServerConfigurationResult(product string, environment string, fqdn string, _ interface{}) IGetServerConfigurationResult

func NewIdentities

func NewIdentities() IIdentityCollection

NewIdentities creates an empty collection of 'Identity' which is not thread-safe.

func NewIdentity

func NewIdentity(id int64, 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) (IIdentity, error)

func NewIdentityFromEntity

func NewIdentityFromEntity(entity IIdentityEntity) (IIdentity, error)

func NewLoginResult

func NewLoginResult(username string, token string, _ interface{}) ILoginResult

func NewLogoutResult

func NewLogoutResult(_ interface{}) ILogoutResult

func NewPostToInboxResult

func NewPostToInboxResult(body []byte, _ interface{}) IPostToInboxResult

func NewPostToOutboxResult

func NewPostToOutboxResult(body []byte, _ interface{}) IPostToOutboxResult

func NewRemoteActivities

func NewRemoteActivities() IRemoteActivityCollection

NewRemoteActivities creates an empty collection of 'Remote Activity' which is not thread-safe.

func NewRemoteActivity

func NewRemoteActivity(id int64, entryPoint string, duration int64, successful bool, errorMessage string, remoteAddress string, userAgent string, eventType uint32, timestamp int64) (IRemoteActivity, error)

func NewRemoteActivityFromEntity

func NewRemoteActivityFromEntity(entity IRemoteActivityEntity) (IRemoteActivity, error)

func NewResendVerificationCodeResult

func NewResendVerificationCodeResult(code string, _ interface{}) IResendVerificationCodeResult

func NewResetPasswordResult

func NewResetPasswordResult(_ interface{}) IResetPasswordResult

func NewSignupResult

func NewSignupResult(token string, code string, _ interface{}) ISignupResult

func NewSpi

func NewSpi() (ISpi, error)

func NewSpis

func NewSpis() ISpiCollection

NewSpis creates an empty collection of 'Spi' which is not thread-safe.

func NewSystemIdentity

func NewSystemIdentity() IIdentity

func NewSystemSchedule

func NewSystemSchedule(id int64, enabled bool, config string) (ISystemSchedule, error)

func NewSystemScheduleFromEntity

func NewSystemScheduleFromEntity(entity ISystemScheduleEntity) (ISystemSchedule, error)

func NewSystemSchedules

func NewSystemSchedules() ISystemScheduleCollection

NewSystemSchedules creates an empty collection of 'System Schedule' which is not thread-safe.

func NewUpdateProfileByUserResult

func NewUpdateProfileByUserResult(displayName string, avatar string, banner string, summary string, github string, _ interface{}) IUpdateProfileByUserResult

func NewUser

func NewUser(id int64, github string) (IUser, error)

func NewUserFromEntity

func NewUserFromEntity(entity IUserEntity) (IUser, error)

func NewUsers

func NewUsers() IUserCollection

NewUsers creates an empty collection of 'User' which is not thread-safe.

func NewVerifyResult

func NewVerifyResult(token string, _ interface{}) IVerifyResult

func NewWebfingerResult

func NewWebfingerResult(aliases []string, links []IActivityPubLink, subject string, _ interface{}) IWebfingerResult

Types

This section is empty.

Jump to

Keyboard shortcuts

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