event

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DataPushReq added in v1.4.0

type DataPushReq struct {
	DeviceID  string `json:"device_id"`
	EventType string `json:"event_type,omitempty"`
	Payload   string `json:"payload"`
	Timestamp int64  `json:"timestamp,omitempty"`
}

type DataPushReqs added in v1.4.3

type DataPushReqs []DataPushReq

type DataPushRsp added in v1.4.0

type DataPushRsp struct {
	Index   int             `json:"index"`
	Results []*event.Result `json:"results"`
}

type DataPushRsps added in v1.4.0

type DataPushRsps []*DataPushRsp

type HandleEvent

type HandleEvent struct {
	httpx.MethodPost
	event.EventReq
}

func (*HandleEvent) Output

func (r *HandleEvent) Output(ctx context.Context) (interface{}, error)

func (*HandleEvent) Path

func (r *HandleEvent) Path() string

Jump to

Keyboard shortcuts

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