Run NodesReference
vms
Package vms
import "github.com/luxfi/node/vms"Functions
DelegateHandlers
func DelegateHandlers(ctx context.Context, vm interface{}) (map[string]http.Handler, error)DelegateHandlers delegates the CreateHandlers call to the underlying VM
Types
Factory
Factory creates new instances of a VM
HandlerDelegator
HandlerDelegator wraps a VM and delegates handler creation
func NewHandlerDelegator[T any](vm T) *HandlerDelegator[T]func (h *HandlerDelegator[T]) CreateHandlers(ctx context.Context) (map[string]http.Handler, error)func (h *HandlerDelegator[T]) CreateStaticHandlers(ctx context.Context) (map[string]http.Handler, error)HandlerProvider
HandlerProvider is the interface that VMs must implement to provide HTTP handlers
Manager
Manager tracks a collection of VM factories, their aliases, and their versions.