server

package
v0.0.0-...-ffdbc53 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSignatureVerificationFailed = errors.New("event signature verification failed")

Functions

func AppendFlags

func AppendFlags(cmd *cobra.Command, specificEventTypes ...string)

Types

type Callback

type Callback func(ctx echo.Context, presentedEventType string, body []byte, logger *zap.SugaredLogger) error

type Server

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

func New

func New(callback Callback, logger *zap.SugaredLogger) *Server

func (*Server) Run

func (server *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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