messages

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	// Time at which the message was generated
	Time time.Time `json:"time"`
	// Type of this message
	Type MessageType `json:"type"`
	// Content of this message
	Content string `json:"content"`
}

Message is a generic container for messages

func (Message) String

func (m Message) String() string

String converts this message to a RepRapFirmware-style message

type MessageType

type MessageType int64

MessageType is the generic type of a message

const (
	Success MessageType = iota
	Warning
	Error
)

Valid MessageType values

Jump to

Keyboard shortcuts

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