script

package
v0.0.0-...-77593ae Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Folder              []string
	RegistrySize        int
	RegistryMaxSize     int
	RegistryGrowStep    int
	IncludeGoStackTrace bool
}

type Script

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

func New

func New(ctx context.Context, cfg *Config, log *logger.Logger) *Script

func (*Script) SendMessageEvent

func (s *Script) SendMessageEvent(scriptPath []string, topic string, payload map[string]interface{})

func (*Script) SetBotHandler

func (s *Script) SetBotHandler(bot entity.BotHandler)

func (*Script) SetNotificationHandler

func (s *Script) SetNotificationHandler(notify entity.NotificationHandler)

func (*Script) SetPublishChannel

func (s *Script) SetPublishChannel(ch chan *entity.PublishEvent)

func (*Script) SetSubscribeChannel

func (s *Script) SetSubscribeChannel(ch chan *entity.SubscribeEvent)

func (*Script) Start

func (s *Script) Start() error

Jump to

Keyboard shortcuts

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