server

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveTopicsHandler added in v1.1.6

func ActiveTopicsHandler(ctx context.Context, pubSub *gochannel.GoChannel) func(w http.ResponseWriter, r *http.Request)

func CurrentConfigHandler added in v1.1.8

func CurrentConfigHandler(confManager config.ConfManager) func(w http.ResponseWriter, r *http.Request)

func DeviceInfoHandler added in v1.1.11

func DeviceInfoHandler(confManager config.ConfManager) http.HandlerFunc

func GetUploadConfigHandler added in v1.1.9

func GetUploadConfigHandler(confManager config.ConfManager) func(w http.ResponseWriter, r *http.Request)

func LogConfigHandler added in v1.1.4

func LogConfigHandler() func(w http.ResponseWriter, r *http.Request)

func MultiUploadPartsHandler added in v1.1.11

func MultiUploadPartsHandler(confManager config.ConfManager) func(w http.ResponseWriter, r *http.Request)

func RulesHandler

func RulesHandler(pubSub *gochannel.GoChannel) func(w http.ResponseWriter, r *http.Request)

func UploadConfigHandler added in v1.1.9

func UploadConfigHandler(confManager config.ConfManager) func(w http.ResponseWriter, r *http.Request)

Types

type ActiveTopicsResponse added in v1.1.6

type ActiveTopicsResponse struct {
	Topics []string `json:"topics"`
}

type DeleteMultiUploadPartsRequest added in v1.1.11

type DeleteMultiUploadPartsRequest struct {
	AbsPath string `json:"absPath"`
}

type DeviceInfoResponse added in v1.1.11

type DeviceInfoResponse struct {
	SerialNumber string `json:"serial_number"`
}

type LogConfigRequest added in v1.1.4

type LogConfigRequest struct {
	Level string `json:"level"`
}

type RulesRequest

type RulesRequest struct {
	Messages []rule_engine.RuleItem `json:"messages"`
}

type UploadStatusRequest added in v1.1.9

type UploadStatusRequest struct {
	Disabled bool `json:"disabled"`
}

Jump to

Keyboard shortcuts

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