server

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 13 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, logger *log.Logger, slackClient *client.Slack, allowedUsers map[string]string) *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