provider

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Name() string
	Start(rawMessageReceiveFunc func(rawMsg *msgTY.RawMessage) error) error   // start the provider
	Close() error                                                             // close the provider connection
	Post(message *msgTY.Message) error                                        // post a message to the provider
	ConvertToMessages(rawMessage *msgTY.RawMessage) ([]*msgTY.Message, error) // convert the raw message in to Message(s) format
}

Plugin interface

Jump to

Keyboard shortcuts

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