peertypes

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Active ...
	Active eventEnum = iota
	// Message ...
	Message
	// Disconnected ...
	Disconnected
)

Variables

View Source
var ErrUnknownEvent = errors.New("peer interface event: unknown")

ErrUnknownEvent is thrown when an unknown peer interface event is encountered.

Functions

This section is empty.

Types

type EventEnum

type EventEnum interface {
	Type() eventEnum
	String() string
}

EventEnum are the exported peer event enums.

func AllEventEnums

func AllEventEnums() []EventEnum

AllEventEnums returns all of the peer interface event enums

func EventEnumFromString

func EventEnumFromString(s string) (EventEnum, error)

EventEnumFromString parses a string to return the peer interface event.

Jump to

Keyboard shortcuts

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