ui

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogs

func AddLogs(m string)

func AddPayload

func AddPayload(payload PullItem, filter map[string]interface{})

func Close

func Close()

func Create

func Create(onClose func())

func CreateLogger

func CreateLogger(verboseMode bool) logger.Logger

func IsCreated

func IsCreated() bool

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(id, str string, source []byte, headers http.Header) *Event

func (Event) String

func (l Event) String() string

type Payload

type Payload struct {
	Payload []struct {
		CreatedAt time.Time              `json:"created_at"`
		Id        string                 `json:"id"`
		Object    map[string]interface{} `json:"object"`
		Type      string                 `json:"type"`
		WebhookId string                 `json:"webhook_id"`
	} `json:"payload"`
}

type PullItem

type PullItem struct {
	Headers   http.Header `json:"headers"`
	Payload   string      `json:"payload"`
	CreatedAt time.Time   `json:"created_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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