message

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookMessageData

type HookMessageData struct {
	NamespaceId int64
	AppId       int64

	User     string
	IP       string
	Datetime time.Time

	EventKey string
	Payload  interface{}
}

type Message

type Message struct {
	Type Type
	Data json.RawMessage
}

type RequestMessageData

type RequestMessageData struct {
	URI        string
	Controller string
	Method     string

	User string
	IP   string

	ResponseStatus int
	ResponseBody   []byte
}

type TaskMessageData

type TaskMessageData struct{}

type Type

type Type string
const (
	TypeRequest Type = "request"
	TypeHook    Type = "hook"
	TypeTask    Type = "task"
)

Jump to

Keyboard shortcuts

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