entry

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset2d

type Asset2d struct {
	Asset2dID uuid.UUID       `db:"asset_2d_id"`
	Meta      *Asset2dMeta    `db:"meta"`
	Options   *Asset2dOptions `db:"options"`
	CreatedAt time.Time       `db:"created_at"`
	UpdatedAt *time.Time      `db:"updated_at"`
}

type Asset2dMeta

type Asset2dMeta map[string]any

type Asset2dOptions

type Asset2dOptions map[string]any

type Asset3d

type Asset3d struct {
	Asset3dID uuid.UUID       `db:"asset_3d_id"`
	Meta      *Asset3dMeta    `db:"meta"`
	Options   *Asset3dOptions `db:"options"`
	CreatedAt time.Time       `db:"created_at"`
	UpdatedAt *time.Time      `db:"updated_at"`
}

type Asset3dMeta

type Asset3dMeta map[string]any

type Asset3dOptions

type Asset3dOptions map[string]any

type Attribute

type Attribute struct {
	AttributeID
	*AttributePayload
}

func NewAttribute

func NewAttribute(attributeID AttributeID, payload *AttributePayload) *Attribute

type AttributeID

type AttributeID AttributeTypeID

func NewAttributeID

func NewAttributeID(pluginID uuid.UUID, name string) AttributeID

type AttributeOptions

type AttributeOptions map[string]any

func NewAttributeOptions

func NewAttributeOptions() *AttributeOptions

type AttributePayload

type AttributePayload struct {
	Value   *AttributeValue   `db:"value" json:"value"`
	Options *AttributeOptions `db:"options" json:"options"`
}

func NewAttributePayload

func NewAttributePayload(value *AttributeValue, options *AttributeOptions) *AttributePayload

type AttributeType

type AttributeType struct {
	AttributeTypeID
	Description *string           `db:"description"`
	Options     *AttributeOptions `db:"options"`
}

type AttributeTypeID

type AttributeTypeID struct {
	PluginID uuid.UUID `db:"plugin_id" json:"plugin_id"`
	Name     string    `db:"attribute_name" json:"attribute_name"`
}

type AttributeValue

type AttributeValue map[string]any

func NewAttributeValue

func NewAttributeValue() *AttributeValue

type Node

type Node struct {
	*Space
}

type NodeAttribute

type NodeAttribute struct {
	NodeAttributeID
	*AttributePayload
}

func NewNodeAttribute

func NewNodeAttribute(nodeAttributeID NodeAttributeID, payload *AttributePayload) *NodeAttribute

type NodeAttributeID

type NodeAttributeID struct {
	AttributeID
}

func NewNodeAttributeID

func NewNodeAttributeID(attributeID AttributeID) NodeAttributeID

type Plugin

type Plugin struct {
	PluginID  uuid.UUID      `db:"plugin_id"`
	Meta      *PluginMeta    `db:"meta"`
	Options   *PluginOptions `db:"options"`
	CreatedAt time.Time      `db:"created_at"`
	UpdatedAt *time.Time     `db:"updated_at"`
}

type PluginMeta

type PluginMeta map[string]any

type PluginOptions

type PluginOptions map[string]any

type PosBusAutoAttributeOption

type PosBusAutoAttributeOption struct {
	SendTo PosBusDestinationType            `db:"send_to" json:"send_to"`
	Scope  []PosBusAutoScopeAttributeOption `db:"scope" json:"scope"`
	Topic  string                           `db:"topic" json:"topic"`
}

type PosBusAutoScopeAttributeOption

type PosBusAutoScopeAttributeOption string
const (
	InvalidPosBusAutoScopeAttributeOption PosBusAutoScopeAttributeOption = ""
	NodePosBusAutoScopeAttributeOption    PosBusAutoScopeAttributeOption = "node"
	WorldPosBusAutoScopeAttributeOption   PosBusAutoScopeAttributeOption = "world"
	SpacePosBusAutoScopeAttributeOption   PosBusAutoScopeAttributeOption = "space"
	UserPosBusAutoScopeAttributeOption    PosBusAutoScopeAttributeOption = "user"
)

type PosBusDestinationType

type PosBusDestinationType byte
const (
	InvalidPosBusDestinationType    PosBusDestinationType = 0b00
	ReactPosBusDestinationType      PosBusDestinationType = 0b01
	UnityPosBusDestinationType      PosBusDestinationType = 0b10
	ReactUnityPosBusDestinationType PosBusDestinationType = 0b11
)

type Space

type Space struct {
	SpaceID     uuid.UUID            `db:"space_id"`
	SpaceTypeID *uuid.UUID           `db:"space_type_id"`
	OwnerID     *uuid.UUID           `db:"owner_id"`
	ParentID    *uuid.UUID           `db:"parent_id"`
	Asset2dID   *uuid.UUID           `db:"asset_2d_id"`
	Asset3dID   *uuid.UUID           `db:"asset_3d_id"`
	Options     *SpaceOptions        `db:"options"`
	Position    *cmath.SpacePosition `db:"position"`
	CreatedAt   time.Time            `db:"created_at"`
	UpdatedAt   *time.Time           `db:"updated_at"`
}

type SpaceAttribute

type SpaceAttribute struct {
	SpaceAttributeID
	*AttributePayload
}

func NewSpaceAttribute

func NewSpaceAttribute(spaceAttributeID SpaceAttributeID, payload *AttributePayload) *SpaceAttribute

type SpaceAttributeID

type SpaceAttributeID struct {
	AttributeID
	SpaceID uuid.UUID `db:"space_id"`
}

func NewSpaceAttributeID

func NewSpaceAttributeID(attributeID AttributeID, spaceID uuid.UUID) SpaceAttributeID

type SpaceChildPlacement

type SpaceChildPlacement struct {
	Algo    *string        `db:"algo" json:"algo,omitempty"`
	Options map[string]any `db:"options" json:"options,omitempty"`
}

type SpaceOptions

type SpaceOptions struct {
	Asset2dOptions   any                                `db:"asset_2d_options" json:"asset_2d_options,omitempty"`
	Asset3dOptions   any                                `db:"asset_3d_options" json:"asset_3d_options,omitempty"`
	FrameTemplates   map[string]any                     `db:"frame_templates" json:"frame_templates,omitempty"`
	ChildPlacements  map[uuid.UUID]*SpaceChildPlacement `db:"child_placement" json:"child_placement,omitempty"`
	AllowedSubspaces []uuid.UUID                        `db:"allowed_subspaces" json:"allowed_subspaces,omitempty"`
	DefaultTiles     []any                              `db:"default_tiles" json:"default_tiles,omitempty"`
	InfoUIID         *uuid.UUID                         `db:"infoui_id" json:"infoui_id,omitempty"`
	Minimap          *bool                              `db:"minimap" json:"minimap,omitempty"`
	Visible          *SpaceVisibleType                  `db:"visible" json:"visible,omitempty"`
	Editable         *bool                              `db:"editable" json:"editable,omitempty"`
	Private          *bool                              `db:"private" json:"private,omitempty"`
	DashboardPlugins []string                           `db:"dashboard_plugins" json:"dashboard_plugins,omitempty"`
	Subs             map[string]any                     `db:"subs" json:"subs"`
}

type SpaceType

type SpaceType struct {
	SpaceTypeID   uuid.UUID     `db:"space_type_id"`
	Asset2dID     *uuid.UUID    `db:"asset_2d_id"`
	Asset3dID     *uuid.UUID    `db:"asset_3d_id"`
	SpaceTypeName string        `db:"space_type_name"`
	CategoryName  string        `db:"category_name"`
	Description   *string       `db:"description"`
	Options       *SpaceOptions `db:"options"`
	CreatedAt     time.Time     `db:"created_at"`
	UpdatedAt     *time.Time    `db:"updated_at"`
}

type SpaceUserAttribute

type SpaceUserAttribute struct {
	SpaceUserAttributeID
	*AttributePayload
}

func NewSpaceUserAttribute

func NewSpaceUserAttribute(spaceUserAttributeID SpaceUserAttributeID, payload *AttributePayload) *SpaceUserAttribute

type SpaceUserAttributeID

type SpaceUserAttributeID struct {
	AttributeID
	SpaceID uuid.UUID `db:"space_id"`
	UserID  uuid.UUID `db:"user_id"`
}

func NewSpaceUserAttributeID

func NewSpaceUserAttributeID(attributeID AttributeID, spaceID, userID uuid.UUID) SpaceUserAttributeID

type SpaceVisibleType

type SpaceVisibleType byte
const (
	ReactSpaceVisibleType      SpaceVisibleType = 0b01
	UnitySpaceVisibleType      SpaceVisibleType = 0b10
	ReactUnitySpaceVisibleType SpaceVisibleType = 0b11
)

type UnityAutoAttributeOption

type UnityAutoAttributeOption struct {
	SlotType           UnitySlotType    `db:"slot_type" json:"slot_type"`
	SlotName           string           `db:"slot_name" json:"slot_name"`
	ValueField         string           `db:"value_field" json:"value_field"`
	ContentType        UnityContentType `db:"content_type" json:"content_type"`
	TextRenderTemplate string           `db:"text_render_template" json:"text_render_template"`
}

type UnityContentType

type UnityContentType string
const (
	UnityContentTypeInvalid UnityContentType = ""
	UnityContentTypeString  UnityContentType = "string"
	UnityContentTypeNumber  UnityContentType = "number"
	UnityContentTypeImage   UnityContentType = "image"
	UnityContentTypeText    UnityContentType = "text"
	UnityContentTypeVideo   UnityContentType = "video"
)

type UnitySlotType

type UnitySlotType string
const (
	UnitySlotTypeInvalid UnitySlotType = ""
	UnitySlotTypeTexture UnitySlotType = "texture"
	UnitySlotTypeString  UnitySlotType = "string"
	UnitySlotTypeNumber  UnitySlotType = "number"
)

type User

type User struct {
	UserID     uuid.UUID    `db:"user_id"`
	UserTypeID *uuid.UUID   `db:"user_type_id"`
	Profile    *UserProfile `db:"profile"`
	Options    *UserOptions `db:"options"`
	CreatedAt  time.Time    `db:"created_at"`
	UpdatedAt  *time.Time   `db:"updated_at"`
}

type UserAttribute

type UserAttribute struct {
	UserAttributeID
	*AttributePayload
}

func NewUserAttribute

func NewUserAttribute(userAttributeID UserAttributeID, payload *AttributePayload) *UserAttribute

type UserAttributeID

type UserAttributeID struct {
	AttributeID
	UserID uuid.UUID `db:"user_id"`
}

func NewUserAttributeID

func NewUserAttributeID(attributeID AttributeID, userID uuid.UUID) UserAttributeID

type UserOptions

type UserOptions struct {
	IsGuest *bool `db:"is_guest" json:"is_guest"`
}

type UserProfile

type UserProfile struct {
	Name        *string `db:"name" json:"name"`
	Bio         *string `db:"bio" json:"bio"`
	Location    *string `db:"location" json:"location"`
	AvatarHash  *string `db:"avatar_hash" json:"avatar_hash"`
	ProfileLink *string `db:"profile_link" json:"profile_link"`
	OnBoarded   *bool   `db:"onboarded" json:"onboarded"`
}

type UserSpace

type UserSpace struct {
	SpaceID   uuid.UUID      `db:"space_id"`
	UserID    uuid.UUID      `db:"user_id"`
	CreatedAt time.Time      `db:"created_at"`
	UpdatedAt time.Time      `db:"updated_at"`
	Value     UserSpaceValue `db:"value"`
}

type UserSpaceID

type UserSpaceID struct {
	UserID  uuid.UUID `db:"user_id"`
	SpaceID uuid.UUID `db:"space_id"`
}

func NewUserSpaceID

func NewUserSpaceID(userID uuid.UUID, spaceID uuid.UUID) UserSpaceID

type UserSpaceValue

type UserSpaceValue map[string]any

func NewUserSpaceValue

func NewUserSpaceValue() *UserSpaceValue

type UserType

type UserType struct {
	UserTypeID   uuid.UUID    `db:"user_type_id"`
	UserTypeName string       `db:"user_type_name"`
	Description  *string      `db:"description"`
	Options      *UserOptions `db:"options"`
	CreatedAt    time.Time    `db:"created_at"`
	UpdatedAt    *time.Time   `db:"updated_at"`
}

type UserUserAttribute

type UserUserAttribute struct {
	UserUserAttributeID
	*AttributePayload
}

func NewUserUserAttribute

func NewUserUserAttribute(userUserAttributeID UserUserAttributeID, payload *AttributePayload) *UserUserAttribute

type UserUserAttributeID

type UserUserAttributeID struct {
	AttributeID
	SourceUserID uuid.UUID `db:"source_user_id"`
	TargetUserID uuid.UUID `db:"target_user_id"`
}

func NewUserUserAttributeID

func NewUserUserAttributeID(attributeID AttributeID, sourceUserID, targetUserID uuid.UUID) UserUserAttributeID

Jump to

Keyboard shortcuts

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