core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponent

func GetComponent(body []byte) ([]byte, error)

func GetComponents

func GetComponents() ([]byte, error)

func RegisterComponent

func RegisterComponent(body []byte, addr string) ([]byte, error)

func StartTCPServer

func StartTCPServer(port int, secretKey string)

Types

type Component

type Component struct {
	Name    string
	Group   []string
	Address string
}

type Registery

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

func GetRegistery

func GetRegistery() *Registery

func (*Registery) AddComponent

func (r *Registery) AddComponent(name string, address string) ([]byte, error)

func (*Registery) GetComponent

func (r *Registery) GetComponent(name string) *Component

func (*Registery) RemoveComponent

func (r *Registery) RemoveComponent(name string)

Jump to

Keyboard shortcuts

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