datatypes

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageIn

type MessageIn struct {
	Msg     string          `json:"msg"`
	Payload json.RawMessage `json:"payload,omitempty"`
}

MessageIn represents a message from electron (going in)

func (*MessageIn) Callback

func (m *MessageIn) Callback(callback func(m *MessageIn) MessageOut) MessageOut

type MessageOut

type MessageOut struct {
	Status  MsgState    `json:"status"`
	Msg     string      `json:"msg"`
	Payload interface{} `json:"payload,omitempty"`
}

MessageOut represents a message for electron (going out)

type MsgState

type MsgState string
const (
	SUCCESS MsgState = "Success"
	ERROR   MsgState = "Error"
	INFO    MsgState = "Info"
)

Jump to

Keyboard shortcuts

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