message

package
v0.0.0-...-821ef61 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 0 Imported by: 11

Documentation

Overview

Package message contains the structure for basic messages that are allowed to be sent through the RX and TX channels.

Example
m1 := new(Basic)
m1.Text = "I am a string"
m1.ID = 2
m1.Finished = true

fmt.Println(m1.Text)
fmt.Println(m1.ID)
fmt.Println(m1.Finished)
Output:

I am a string
2
true

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	ID       int    `json:"id"`
	Text     string `json:"text"`
	Finished bool
}

Basic implements the message structure that is added to the inbox and sent to the plugins

type BasicChannel

type BasicChannel chan Basic

BasicChannel is a channel that accepts Basic messages. All transmit and receive channels must fit this type

Jump to

Keyboard shortcuts

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