event

package
v1.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

TODO: Unify the event interface

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 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 HandleDataPush added in v1.4.0

type HandleDataPush struct {
	httpx.MethodPost
	DataPushReq `in:"body"`
	Channel     string `in:"path" name:"channel"`
}

func (*HandleDataPush) Output added in v1.4.0

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

func (*HandleDataPush) Path added in v1.4.0

func (r *HandleDataPush) Path() string

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