application

package
v0.0.0-...-f6b8a13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Bot Service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// Observer interface for subscribe on system event
	notify.Subscriber // Observer interface for subscribe on system event
	// contains filtered or unexported fields
}

func New

func New(mq mq.MQ, log logger.Logger) (*Bot, error)

func (*Bot) Notify

func (b *Bot) Notify(ctx context.Context, event uint32, payload interface{}) notify.Response

Notify ...

func (*Bot) Send

func (b *Bot) Send(ctx context.Context, in *link.Link)

func (*Bot) Use

func (b *Bot) Use(ctx context.Context)

type Service

type Service interface {
	// Observer interface for subscribe on system event
	notify.Subscriber // Observer interface for subscribe on system event

	Init() error
	Send(message string) error
}

Jump to

Keyboard shortcuts

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