slack

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: CC0-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlack

func NewSlack(botToken, clientId, clientSecret string) *slack

Types

type App

type App struct {
	LoadModule func()

	*api.App
	// contains filtered or unexported fields
}

func NewSlackApp

func NewSlackApp(appToken, botToken string, opts ...AppOptions) (*App, error)

func (*App) AddHandler

func (app *App) AddHandler(socketHandler handler2.SocketHandler)

func (*App) GetAPI

func (app *App) GetAPI() *slackpkg.Client

func (*App) Start

func (app *App) Start()

type AppImplementor

type AppImplementor struct{}

type AppOptions

type AppOptions func(*App)

func WithDebug

func WithDebug(enabled bool) AppOptions

func WithHttp

func WithHttp(port ...int) AppOptions

func WithSocketMode

func WithSocketMode() AppOptions

type Slacks

type Slacks interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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