messenger

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

func NewDefaultManager

func NewDefaultManager(store storage.Manager, funcMap template.FuncMap) *DefaultManager

func (*DefaultManager) BuildReply

func (d *DefaultManager) BuildReply(msg *v1alpha1.Message, params map[string]any) ([]byte, error)

func (*DefaultManager) Match

func (d *DefaultManager) Match(params map[string]any) (*v1alpha1.Message, error)

type Manager

type Manager interface {
	Match(params map[string]any) (*v1alpha1.Message, error)

	BuildReply(msg *v1alpha1.Message, params map[string]any) ([]byte, error)
}

Jump to

Keyboard shortcuts

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