model

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Version1 = "v1"
View Source
const Version2 = "v2"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEvent

type BaseEvent struct {
	Ts    string `json:"ts"`
	UUID  string `json:"uuid"`
	Token string `json:"token"`
	Type  string `json:"type"`
}

type BaseEventData

type BaseEventData struct {
	AppID     string `json:"app_id"`
	Type      string `json:"type"`
	TenantKey string `json:"tenant_key"`
}

type BaseEventV2

type BaseEventV2 struct {
	Version string  `json:"version"`
	Header  *Header `json:"header"`
}

type HTTPEvent

type HTTPEvent struct {
	HTTPRequest  *http.Request
	Input        []byte
	HTTPResponse http.ResponseWriter
	Version      string
	Type         string
	EventType    string
	Challenge    string
	Err          error
}
type Header struct {
	EventID    string `json:"event_id"`
	EventType  string `json:"event_type"`
	AppID      string `json:"app_id"`
	TenantKey  string `json:"tenant_key"`
	CreateTime string `json:"create_time"`
	Token      string `json:"token"`
}

type NotData

type NotData struct {
	Version   string  `json:"version"`
	Token     string  `json:"token"`
	Type      string  `json:"type"`
	Challenge string  `json:"challenge"`
	Header    *Header `json:"header"`
	Event     *struct {
		Type string `json:"type"`
	} `json:"event"`
}

Jump to

Keyboard shortcuts

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