protocol

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCommand

type MessageCommand RawCommand

func (*MessageCommand) Message

func (m *MessageCommand) Message() string

func (*MessageCommand) Sender

func (m *MessageCommand) Sender() string

type Parser

type Parser struct {
}

func (*Parser) ParseLine

func (p *Parser) ParseLine(line string) (*RawCommand, error)

type RawCommand

type RawCommand struct {
	Operand   string
	Arguments []string
}

func NewMessage

func NewMessage(sender, message string) *RawCommand

func NewPing

func NewPing() *RawCommand

func (*RawCommand) String

func (c *RawCommand) String() string

Jump to

Keyboard shortcuts

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