metathings_mosquitto_plugin_service

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest = errors.New("bad request")
)

Functions

This section is empty.

Types

type MosquittoPluginService

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

func NewMosquittoPluginService

func NewMosquittoPluginService(
	opt *MosquittoPluginServiceOption,
	logger log.FieldLogger,
	storage storage.Storage,
) (*MosquittoPluginService, error)

func (*MosquittoPluginService) WebhookHandler

func (s *MosquittoPluginService) WebhookHandler(w http.ResponseWriter, r *http.Request)

type MosquittoPluginServiceOption

type MosquittoPluginServiceOption struct {
	Webhook struct {
		Secret string
	}
}

Jump to

Keyboard shortcuts

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