server

package
v0.0.0-...-47b48c1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSlackRequest = errors.New("invalid slack request")

Functions

func ValidateSlackRequest

func ValidateSlackRequest(r *http.Request, logger *log.Logger, slackSecret string, response []byte) bool

Types

type APIHandlerFunc

type APIHandlerFunc func(http.ResponseWriter, *http.Request) error

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type Server

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

func NewServer

func NewServer(logger *log.Logger, redisClient *redis.Client, articleStorage floridaman.ArticleStorage) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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