engine

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartEngine added in v0.0.15

func StartEngine(ctx context.Context) (string, error)

StartEngine starts the Hydra engine and returns the server address

func StartMetricsUpdater added in v0.0.15

func StartMetricsUpdater(server *WorldServer)

Types

type Bus

type Bus struct {
	// contains filtered or unexported fields
}

func NewBus

func NewBus() *Bus

type Event

type Event struct {
	Entity *pb.Entity
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

remember to design this to sync over nats AND into kv

func NewStore

func NewStore() *Store

func (*Store) GetEventsInTimeRange

func (s *Store) GetEventsInTimeRange(targetTime time.Time) []*pb.Entity

func (*Store) GetTimeline

func (s *Store) GetTimeline() (time.Time, time.Time)

func (*Store) Push

func (s *Store) Push(ctx context.Context, e Event) error

type WorldServer added in v0.0.12

type WorldServer struct {
	// contains filtered or unexported fields
}

func NewWorldServer added in v0.0.12

func NewWorldServer() *WorldServer

func (*WorldServer) EntityCount added in v0.0.15

func (s *WorldServer) EntityCount() int

func (*WorldServer) GetEntity added in v0.0.12

func (*WorldServer) GetTimeline added in v0.0.12

func (*WorldServer) ListEntities added in v0.0.12

func (*WorldServer) MoveTimeline added in v0.0.12

func (*WorldServer) Observe added in v0.0.12

func (*WorldServer) Push added in v0.0.12

func (*WorldServer) RunTask added in v0.0.13

func (*WorldServer) WatchEntities added in v0.0.12

Jump to

Keyboard shortcuts

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