server

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(cfg config.Server, slackClient client.SlackClient, messageHandler messageHandler) *Server

NewServer is used to receive slack interactions

func (*Server) StartServer

func (s *Server) StartServer()

StartServer to receive slack interactions or events via event-api https://api.slack.com/messaging/interactivity https://api.slack.com/events-api

func (*Server) Stop

func (s *Server) Stop() error

Stop the http server to receive slack interactions

Jump to

Keyboard shortcuts

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