connection

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CLIENT_PREFACE = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	HandleIncomingFrame(frame frames.Frame)
	ExecuteHttpCommand(cmd *commands.HttpCommand)
	ExecuteMonitoringCommand(cmd *commands.MonitoringCommand)
	ExecutePingCommand(cmd *commands.PingCommand)
	ReadNextFrame() (frames.Frame, error)
	Shutdown()
	IsShutdown() bool
}

Some of these methods may no longer be needed after the last refactoring. Need to clean up.

func Start

func Start(host string, port int, incomingFrameFilters []func(frames.Frame) frames.Frame, outgoingFrameFilters []func(frames.Frame) frames.Frame) (Connection, error)

Jump to

Keyboard shortcuts

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