slack

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

SLACK Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "slack"

	// AttrToken ...
	AttrToken = "token"
	// AttrUserName ...
	AttrUserName = "user_name"

	// AttrChannel ...
	AttrChannel = "channel"
	// AttrText ...
	AttrText = "text"

	Version = "0.0.1"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Actor added in v0.12.0

type Actor struct {
	*supervisor.BaseActor

	Token    string
	UserName string
	// contains filtered or unexported fields
}

Actor ...

func NewActor added in v0.12.0

func NewActor(entity *m.Entity,
	service supervisor.Service) *Actor

NewActor ...

func (*Actor) Destroy added in v0.12.0

func (e *Actor) Destroy()

func (*Actor) MessageParams added in v0.12.0

func (e *Actor) MessageParams() m.Attributes

MessageParams ... Channel Text

func (*Actor) Save added in v0.12.0

func (e *Actor) Save(msg common.Message) (addresses []string, message *m.Message)

Save ...

func (*Actor) Send added in v0.12.0

func (e *Actor) Send(address string, message *m.Message) (err error)

Send ...

func (*Actor) Spawn added in v0.12.0

func (e *Actor) Spawn()

Jump to

Keyboard shortcuts

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