event

package
v1.0.1-rc3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEvent added in v1.1.0

func HandleEvent(ctx context.Context, projectName string, eventType string, ret *HandleEventResult, payload []byte) error

Types

type HandleEventReq added in v1.0.0

type HandleEventReq struct {
	Events []eventpb.Event `json:"events"`
}

type HandleEventResult added in v1.0.0

type HandleEventResult struct {
	ProjectName string                   `json:"projectName"`
	PubID       types.SFID               `json:"pubID,omitempty"`
	PubName     string                   `json:"pubName,omitempty"`
	EventID     string                   `json:"eventID"`
	ErrMsg      string                   `json:"errMsg,omitempty"`
	WasmResults []wasm.EventHandleResult `json:"wasmResults"`
}

func HandleEvents added in v1.0.0

func HandleEvents(ctx context.Context, projectName string, r *HandleEventReq) []*HandleEventResult

func OnEventReceived

func OnEventReceived(ctx context.Context, projectName string, r *eventpb.Event) (ret *HandleEventResult, err error)

Jump to

Keyboard shortcuts

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