tcplog

package
v0.0.0-...-c2832fb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(t *testing.T) *cypress.Message

Types

type Formatter

type Formatter interface {
	Format(m *cypress.Message) ([]byte, error)
}

type Logger

type Logger struct {
	Formatter
	Address     string
	Ssl         bool
	Pump        chan []byte
	PumpClosed  bool
	PumpDropped uint64
	ConnDropped uint64
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(address string, ssl bool, formatter Formatter) *Logger

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) Read

func (l *Logger) Read(message interface{}) (err error)

func (*Logger) ReadAsync

func (l *Logger) ReadAsync(message interface{}) (err error)

func (*Logger) Receive

func (l *Logger) Receive(message *cypress.Message) error

func (*Logger) Run

func (l *Logger) Run()

type TcpServer

type TcpServer struct {
	Port     int
	Address  chan string
	Messages chan []byte
}

func NewTcpServer

func NewTcpServer() *TcpServer

func (*TcpServer) Run

func (s *TcpServer) Run(host string)

Jump to

Keyboard shortcuts

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