client

package
v0.0.0-...-49e565d Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMessage

func GetMessage(w io.Writer, colors common.ColorCodes)

LoginMessage writes a message at login

Types

type Conversation

type Conversation struct {
	Quotes []Quote
}

Conversation displays a list of quotes

func (Conversation) Write

func (c Conversation) Write(w io.Writer, colors common.ColorCodes)

Write actually writes the message to the terminal

type Message

type Message interface {
	Write(w io.Writer, colors common.ColorCodes)
}

type Quote

type Quote struct {
	Color  []byte
	Author string
	Text   string
}

Quote is a message with an author

func (Quote) Write

func (q Quote) Write(w io.Writer, colors common.ColorCodes)

type SimpleMessage

type SimpleMessage struct {
	Text string
}

func (SimpleMessage) Write

func (s SimpleMessage) Write(w io.Writer, colors common.ColorCodes)

Jump to

Keyboard shortcuts

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