payloads

package
v0.0.0-...-e33e0ee Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationLog

type ApplicationLog struct {
	ApplicationLog string
}

ApplicationLog payload

func NewApplicationLog

func NewApplicationLog(log string) ApplicationLog

NewApplicationLog payload

func (ApplicationLog) GetContent

func (a ApplicationLog) GetContent() map[string]interface{}

GetContent from this payload

func (ApplicationLog) GetType

func (a ApplicationLog) GetType() string

GetType of this payload

func (ApplicationLog) ModifiesLastMessage

func (a ApplicationLog) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Bool

type Bool struct {
	Bool bool
}

Bool payload

func NewBool

func NewBool(b bool) Bool

NewBool payload

func (Bool) GetContent

func (b Bool) GetContent() map[string]interface{}

GetContent from this payload

func (Bool) GetType

func (b Bool) GetType() string

GetType of this payload

func (Bool) ModifiesLastMessage

func (b Bool) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Caller

type Caller struct {
	FileName   string
	LineNumber int
	ClassName  string
	MethodName string
}

Caller payload

func NewCaller

func NewCaller(fileName string, lineNumber int, className string, methodName string) Caller

NewCaller payload

func (Caller) GetContent

func (c Caller) GetContent() map[string]interface{}

GetContent from this payload

func (Caller) GetType

func (c Caller) GetType() string

GetType of this payload

func (Caller) ModifiesLastMessage

func (c Caller) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type ClearAll

type ClearAll struct {
}

ClearAll payload

func NewClearAll

func NewClearAll() ClearAll

NewClearAll payload

func (ClearAll) GetContent

func (c ClearAll) GetContent() map[string]interface{}

GetContent from this payload

func (ClearAll) GetType

func (c ClearAll) GetType() string

GetType of this payload

func (ClearAll) ModifiesLastMessage

func (c ClearAll) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Color

type Color struct {
	Color string
}

Color payload

func NewColor

func NewColor(color string) Color

NewColor payload

func (Color) GetContent

func (c Color) GetContent() map[string]interface{}

GetContent from this payload

func (Color) GetType

func (c Color) GetType() string

GetType of this payload

func (Color) ModifiesLastMessage

func (c Color) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type CreateLock

type CreateLock struct {
	Name string
}

CreateLock payload

func NewCreateLock

func NewCreateLock(name string) CreateLock

NewCreateLock payload

func (CreateLock) GetContent

func (c CreateLock) GetContent() map[string]interface{}

GetContent from this payload

func (CreateLock) GetType

func (c CreateLock) GetType() string

GetType of this payload

func (CreateLock) ModifiesLastMessage

func (c CreateLock) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Custom

type Custom struct {
	Content string
	Label   string
}

Custom payload

func NewCustom

func NewCustom(label string, content string) Custom

NewCustom payload

func (Custom) GetContent

func (c Custom) GetContent() map[string]interface{}

GetContent from this payload

func (Custom) GetType

func (c Custom) GetType() string

GetType of this payload

func (Custom) ModifiesLastMessage

func (c Custom) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type HTML

type HTML struct {
	HTML string
}

HTML payload

func NewHTML

func NewHTML(h string) HTML

NewHTML payload

func (HTML) GetContent

func (h HTML) GetContent() map[string]interface{}

GetContent from this payload

func (HTML) GetType

func (h HTML) GetType() string

GetType of this payload

func (HTML) ModifiesLastMessage

func (h HTML) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Hide

type Hide struct {
}

Hide payload

func NewHide

func NewHide() Hide

NewHide payload

func (Hide) GetContent

func (h Hide) GetContent() map[string]interface{}

GetContent from this payload

func (Hide) GetType

func (h Hide) GetType() string

GetType of this payload

func (Hide) ModifiesLastMessage

func (h Hide) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type HideApp

type HideApp struct {
}

HideApp payload

func NewHideApp

func NewHideApp() HideApp

NewHideApp payload

func (HideApp) GetContent

func (h HideApp) GetContent() map[string]interface{}

GetContent from this payload

func (HideApp) GetType

func (h HideApp) GetType() string

GetType of this payload

func (HideApp) ModifiesLastMessage

func (h HideApp) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Image

type Image struct {
	Path string
}

Image payload

func NewImage

func NewImage(path string) Image

NewImage payload

func (Image) GetContent

func (i Image) GetContent() map[string]interface{}

GetContent from this payload

func (Image) GetType

func (i Image) GetType() string

GetType of this payload

func (Image) ModifiesLastMessage

func (i Image) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type JSON

type JSON struct {
	JSON interface{}
}

JSON payload

func NewJSON

func NewJSON(json interface{}) JSON

NewJSON payload

func (JSON) GetContent

func (j JSON) GetContent() map[string]interface{}

GetContent from this payload

func (JSON) GetType

func (j JSON) GetType() string

GetType of this payload

func (JSON) ModifiesLastMessage

func (j JSON) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type JSONString

type JSONString struct {
	Value string
}

JSONString payload

func NewJSONString

func NewJSONString(value string) JSONString

NewJSONString payload

func (JSONString) GetContent

func (j JSONString) GetContent() map[string]interface{}

GetContent from this payload

func (JSONString) GetType

func (j JSONString) GetType() string

GetType of this payload

func (JSONString) ModifiesLastMessage

func (j JSONString) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Log

type Log struct {
	Values []interface{}
}

Log payload

func NewLog

func NewLog(values []interface{}) Log

NewLog payload

func (Log) GetContent

func (l Log) GetContent() map[string]interface{}

GetContent from this payload

func (Log) GetType

func (l Log) GetType() string

GetType of this payload

func (Log) ModifiesLastMessage

func (l Log) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Notify

type Notify struct {
	Text string
}

Notify payload

func NewNotify

func NewNotify(text string) Notify

NewNotify payload

func (Notify) GetContent

func (n Notify) GetContent() map[string]interface{}

GetContent from this payload

func (Notify) GetType

func (n Notify) GetType() string

GetType of this payload

func (Notify) ModifiesLastMessage

func (n Notify) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Origin

type Origin struct {
	File       string `json:"file"`
	LineNumber int    `json:"line_number"` //nolint:tagliatelle
}

Origin of file

func NewOrigin

func NewOrigin(file string, lineNumber int) Origin

NewOrigin creates a origin

type Payload

type Payload interface {
	// GetType of this payload
	GetType() string
	// GetContent from this payload
	GetContent() map[string]interface{}
	// ModifiesLastMessage by this payload?
	ModifiesLastMessage() bool
}

Payload of a ray message

type Remove

type Remove struct {
}

Remove payload

func NewRemove

func NewRemove() Remove

NewRemove payload

func (Remove) GetContent

func (r Remove) GetContent() map[string]interface{}

GetContent from this payload

func (Remove) GetType

func (r Remove) GetType() string

GetType of this payload

func (Remove) ModifiesLastMessage

func (r Remove) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Screen

type Screen struct {
	Name string
}

Screen payload

func NewScreen

func NewScreen(name string) Screen

NewScreen payload

func (Screen) GetContent

func (n Screen) GetContent() map[string]interface{}

GetContent from this payload

func (Screen) GetType

func (n Screen) GetType() string

GetType of this payload

func (Screen) ModifiesLastMessage

func (n Screen) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type ShowApp

type ShowApp struct {
}

ShowApp payload

func NewShowApp

func NewShowApp() ShowApp

NewShowApp payload

func (ShowApp) GetContent

func (s ShowApp) GetContent() map[string]interface{}

GetContent from this payload

func (ShowApp) GetType

func (s ShowApp) GetType() string

GetType of this payload

func (ShowApp) ModifiesLastMessage

func (s ShowApp) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Size

type Size struct {
	Size string
}

Size payload

func NewSize

func NewSize(size string) Size

NewSize payload

func (Size) GetContent

func (s Size) GetContent() map[string]interface{}

GetContent from this payload

func (Size) GetType

func (s Size) GetType() string

GetType of this payload

func (Size) ModifiesLastMessage

func (s Size) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Time

type Time struct {
	Time time.Time
}

Time payload

func NewTime

func NewTime(t time.Time) Time

NewTime payload

func (Time) GetContent

func (t Time) GetContent() map[string]interface{}

GetContent from this payload

func (Time) GetType

func (t Time) GetType() string

GetType of this payload

func (Time) ModifiesLastMessage

func (t Time) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

type Trace

type Trace struct {
	FileName   string
	LineNumber int
	ClassName  string
	MethodName string
}

Trace payload

func NewTrace

func NewTrace() Trace

NewTrace payload

func (Trace) GetContent

func (t Trace) GetContent() map[string]interface{}

GetContent from this payload

func (Trace) GetType

func (t Trace) GetType() string

GetType of this payload

func (Trace) ModifiesLastMessage

func (t Trace) ModifiesLastMessage() bool

ModifiesLastMessage by this payload?

Jump to

Keyboard shortcuts

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