xmpp

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asker

type Asker = convo.Asker[string, string]

type Builder

type Builder struct {
	Config    Config       `validate:"required"`
	Pipelines Pipelines    `validate:"required"`
	Log       *slog.Logger `validate:"required"`
}

func (Builder) Run

func (b Builder) Run(ctx context.Context) (*Handler, error)

type Config

type Config struct {
	Jid      string            `yaml:"jid" doc:"Jabber ID для бота."`
	Password string            `yaml:"password" doc:"Пароль для бота."`
	Users    map[string]string `yaml:"users" doc:"Маппинг JID в имя пользователя, используемое в пайплайнах."`
}

type Handler

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

func (*Handler) Stop

func (h *Handler) Stop()

type Pipelines

type Pipelines interface {
	Run(ctx context.Context, log *slog.Logger, username string) error
}

Jump to

Keyboard shortcuts

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