model

package
v1.1.46 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Version1 = "1.0"
View Source
const Version2 = "2.0"

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 {
	Schema string  `json:"schema"`
	Header *Header `json:"header"`
}

type Fuzzy added in v1.1.2

type Fuzzy struct {
	Schema    string  `json:"schema"`
	Token     string  `json:"token"`
	Type      string  `json:"type"`
	Challenge string  `json:"challenge"`
	Header    *Header `json:"header"`
	Event     *struct {
		Type string `json:"type"`
	} `json:"event"`
}

type HTTPEvent

type HTTPEvent struct {
	Request   *core.OapiRequest
	Input     []byte
	Response  *core.OapiResponse
	Schema    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"`
}

Jump to

Keyboard shortcuts

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