connection

package
v0.0.0-...-55054b2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(packetType uint64, callback HandlerCallback)

func New

func New(conn net.Conn) *connection

Types

type Event

type Event interface {
	UUID() string
	Any() *any.Any
}

Todo: own package

type Handler

type Handler interface {
	UUID() string
}

type HandlerCallback

type HandlerCallback = func(event Event) error

Jump to

Keyboard shortcuts

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