Help us shape the future of Go! Take the 2026 Go Developer Survey

slack

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LibraryName = "scriptling.messaging.slack"

LibraryName is the import path used in Scriptling scripts.

Variables

This section is empty.

Functions

func NewClient

func NewClient(botToken, appToken string, log logger.Logger) *slackClient

NewClient creates a Slack client for direct Go use.

func NewLibrary

func NewLibrary(log logger.Logger, cfg ...*netsecurity.Config) *object.Library

NewLibrary creates the scriptling.messaging.slack library. An optional network policy governs URLs scripts pass to download() and answer_callback() that are not Slack's own hosts.

func NewLibraryConfigured added in v0.33.0

func NewLibraryConfigured(log logger.Logger, allowedPaths []string, cfg ...*netsecurity.Config) *object.Library

NewLibraryConfigured is NewLibrary with file uploads confined to allowedPaths (nil = unrestricted, empty = deny all), as the os library is.

func Register

func Register(registrar interface{ RegisterLibrary(*object.Library) }, log logger.Logger, cfg ...*netsecurity.Config)

Register registers the slack library with a Scriptling instance.

func RegisterConfigured added in v0.33.0

func RegisterConfigured(registrar interface{ RegisterLibrary(*object.Library) }, log logger.Logger, allowedPaths []string, cfg ...*netsecurity.Config)

RegisterConfigured registers the slack library with file uploads confined to allowedPaths (nil = unrestricted, empty = deny all).

Types

This section is empty.

Jump to

Keyboard shortcuts

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