Documentation ¶
Index ¶
- Constants
- func IsValidActivityType(t string) bool
- type GeneratedImage
- type GenerationResponse
- type LeonardoResponse
- type NFTMeta
- type Node
- func (n *Node) AddAPIRegister(register universe.APIRegister)
- func (n *Node) AddObjectToAllObjects(object universe.Object) error
- func (n *Node) AddStakeActivities(stakeEvents []*harvester.StakeEvent) error
- func (n *Node) AddStakeActivity(stakeEvent *harvester.StakeEvent) error
- func (n *Node) CreateObject(objectID umid.UMID) (universe.Object, error)
- func (n *Node) CreateUsers(ctx context.Context, users ...*entry.User) error
- func (n *Node) Filter(predicateFn func(userID umid.UMID, user universe.User) bool) (map[umid.UMID]universe.User, error)
- func (n *Node) FilterAllObjects(predicateFn universe.ObjectsFilterPredicateFn) map[umid.UMID]universe.Object
- func (n *Node) GetActivities() universe.Activities
- func (n *Node) GetAllObjects() map[umid.UMID]universe.Object
- func (n *Node) GetAssets2d() universe.Assets2d
- func (n *Node) GetAssets3d() universe.Assets3d
- func (n *Node) GetAttributeTypes() universe.AttributeTypes
- func (n *Node) GetConfig() *config.Config
- func (n *Node) GetLogger() *zap.SugaredLogger
- func (n *Node) GetNodeAttributes() universe.NodeAttributes
- func (n *Node) GetObjectFromAllObjects(objectID umid.UMID) (universe.Object, bool)
- func (n *Node) GetObjectTypes() universe.ObjectTypes
- func (n *Node) GetObjectUserAttributes() universe.ObjectUserAttributes
- func (n *Node) GetPlugins() universe.Plugins
- func (n *Node) GetUserAttributes() universe.UserAttributes
- func (n *Node) GetUserObjects() universe.UserObjects
- func (n *Node) GetUserTypes() universe.UserTypes
- func (n *Node) GetUserUserAttributes() universe.UserUserAttributes
- func (n *Node) GetWorlds() universe.Worlds
- func (n *Node) GetWorldsByOwnerID(userID umid.UMID) map[umid.UMID]universe.World
- func (n *Node) Initialize(ctx types.NodeContext) error
- func (n *Node) Listener(bcName string, events []*harvester.UpdateEvent, ...) error
- func (n *Node) Load() error
- func (n *Node) LoadUser(userID umid.UMID) (universe.User, error)
- func (n *Node) RegisterAPI(r *gin.Engine)
- func (n *Node) RemoveObjectFromAllObjects(object universe.Object) (bool, error)
- func (n *Node) Run() error
- func (n *Node) Save() error
- func (n *Node) SetParent(parent universe.Object, updateDB bool) error
- func (n *Node) Stop() error
- func (n *Node) ToObject() universe.Object
- func (n *Node) WriteInfluxPoint(point *influxWrite.Point) error
- type NodeJSOut
- type NodeJSOutData
- type SkyboxStatus
- type StoreItem
- type StyleItem
- type StylesCache
- type UpdateProfileStoreItem
- type WalletMeta
Constants ¶
View Source
const StatusDone = "done"
View Source
const StatusFailed = "failed"
View Source
const StatusInProgress = "in progress"
Variables ¶
This section is empty.
Functions ¶
func IsValidActivityType ¶ added in v0.4.0
Types ¶
type GeneratedImage ¶ added in v0.5.0
type GenerationResponse ¶ added in v0.5.0
type GenerationResponse struct { GenerationsByPK struct { GeneratedImages []GeneratedImage `json:"generated_images"` Prompt string `json:"prompt"` Status string `json:"status"` ID string `json:"id"` CreatedAt string `json:"createdAt"` } `json:"generations_by_pk"` }
type LeonardoResponse ¶ added in v0.5.0
type LeonardoResponse struct { SdGenerationJob struct { GenerationId string `json:"generationId"` } `json:"sdGenerationJob"` }
type Node ¶
func (*Node) AddAPIRegister ¶
func (n *Node) AddAPIRegister(register universe.APIRegister)
func (*Node) AddObjectToAllObjects ¶ added in v0.4.0
func (*Node) AddStakeActivities ¶ added in v0.5.0
func (n *Node) AddStakeActivities(stakeEvents []*harvester.StakeEvent) error
func (*Node) AddStakeActivity ¶ added in v0.5.0
func (n *Node) AddStakeActivity(stakeEvent *harvester.StakeEvent) error
func (*Node) CreateObject ¶ added in v0.4.0
func (*Node) CreateUsers ¶ added in v0.4.0
Create new users on this node.
func (*Node) FilterAllObjects ¶ added in v0.4.0
func (*Node) GetActivities ¶ added in v0.4.0
func (n *Node) GetActivities() universe.Activities
func (*Node) GetAllObjects ¶ added in v0.4.0
func (*Node) GetAssets2d ¶
func (*Node) GetAssets3d ¶
func (*Node) GetAttributeTypes ¶
func (n *Node) GetAttributeTypes() universe.AttributeTypes
func (*Node) GetLogger ¶ added in v0.4.0
func (n *Node) GetLogger() *zap.SugaredLogger
func (*Node) GetNodeAttributes ¶
func (n *Node) GetNodeAttributes() universe.NodeAttributes
func (*Node) GetObjectFromAllObjects ¶ added in v0.4.0
func (*Node) GetObjectTypes ¶ added in v0.4.0
func (n *Node) GetObjectTypes() universe.ObjectTypes
func (*Node) GetObjectUserAttributes ¶ added in v0.4.0
func (n *Node) GetObjectUserAttributes() universe.ObjectUserAttributes
func (*Node) GetPlugins ¶
func (*Node) GetUserAttributes ¶
func (n *Node) GetUserAttributes() universe.UserAttributes
func (*Node) GetUserObjects ¶ added in v0.4.0
func (n *Node) GetUserObjects() universe.UserObjects
func (*Node) GetUserTypes ¶
func (*Node) GetUserUserAttributes ¶
func (n *Node) GetUserUserAttributes() universe.UserUserAttributes
func (*Node) GetWorldsByOwnerID ¶ added in v0.4.0
func (*Node) Initialize ¶
func (n *Node) Initialize(ctx types.NodeContext) error
func (*Node) Listener ¶ added in v0.4.0
func (n *Node) Listener(bcName string, events []*harvester.UpdateEvent, stakeEvents []*harvester.StakeEvent, nftEvent []*harvester.NftEvent) error
func (*Node) RegisterAPI ¶
func (*Node) RemoveObjectFromAllObjects ¶ added in v0.4.0
func (*Node) WriteInfluxPoint ¶
func (n *Node) WriteInfluxPoint(point *influxWrite.Point) error
type NodeJSOutData ¶
type SkyboxStatus ¶ added in v0.5.0
type SkyboxStatus struct { Id int `json:"id"` Message *string `json:"message"` Status string `json:"status"` FileUrl string `json:"file_url"` ThumbUrl string `json:"thumb_url"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ErrorMessage interface{} `json:"error_message"` SkyboxStyleId int `json:"skybox_style_id"` }
func (*SkyboxStatus) ToMap ¶ added in v0.5.0
func (s *SkyboxStatus) ToMap() map[string]any
type StyleItem ¶ added in v0.4.0
type StyleItem struct { Id int `json:"id"` Name string `json:"name"` MaxChar int `json:"max-char"` NegativeTextMaxChar int `json:"negative-text-max-char"` Image any `json:"image"` SortOrder int `json:"sort_order"` Premium int `json:"premium"` SkyboxStyleFamilies []any `json:"skybox_style_families"` }
type StylesCache ¶ added in v0.4.0
type StylesCache struct {
// contains filtered or unexported fields
}
type UpdateProfileStoreItem ¶ added in v0.2.0
Source Files ¶
- api.go
- api_auth.go
- api_config.go
- api_drive.go
- api_iot.go
- api_leonardo.go
- api_media.go
- api_members.go
- api_mutual_docks.go
- api_newsfeed.go
- api_object.go
- api_object_attributes.go
- api_object_user_attributes.go
- api_objects.go
- api_posbus.go
- api_pprof.go
- api_profile.go
- api_skybox.go
- api_stakes.go
- api_timeline.go
- api_user_attributes.go
- api_user_user_attributes.go
- api_users.go
- nfts.go
- node.go
- node_attributes.go
- object_user_attributes.go
- objects.go
- posbus_auto.go
- stats.go
- user_attributes.go
- user_objects.go
- user_user_attributes.go
- users.go
- worlds.go
Click to show internal directories.
Click to hide internal directories.