skillinstall

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package skillinstall provides a lightweight NATS consumer that handles skill installation requests by shelling out to the leros CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OrgID    uint
	WorkerID uint
}

Config holds the configuration for a skill install consumer.

type Consumer

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

Consumer subscribes to skill install requests and runs leros skill install.

func New

func New(cfg Config, subscriber eventbus.Subscriber) (*Consumer, error)

New creates a new skill install consumer.

func (*Consumer) Start

func (c *Consumer) Start(ctx context.Context) error

Start subscribes to the skill install topic and processes incoming requests.

func (*Consumer) Topic

func (c *Consumer) Topic() string

Topic returns the NATS subject for this consumer.

Jump to

Keyboard shortcuts

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