botzilla

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name string
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent(ServerAddr string, secretKey string, name string, port int, MessageListener func(map[string]string) (map[string]string, error)) (*Component, error)

func (*Component) Broadcast

func (c *Component) Broadcast(message map[string]string) error

func (*Component) GetComponents

func (c *Component) GetComponents() ([]string, error)

func (*Component) SendMessage

func (c *Component) SendMessage(name string, message map[string]string) (map[string]string, error)

Jump to

Keyboard shortcuts

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