hosts

package
v0.0.0-...-2b46a3a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Addr string
	Hub  *channel.Hub
	// contains filtered or unexported fields
}

API is used to specify configuration for the API Host

func (*API) Start

func (api *API) Start()

Start begins listening for new requests

func (*API) Stop

func (api *API) Stop()

Stop ends listening for new requests

type Host

type Host struct {
	Addr          string
	APIAddr       string
	WebSocketAddr string
	// contains filtered or unexported fields
}

Host provides configuration for Host and ClientHosts

func (*Host) Initialize

func (h *Host) Initialize(initialStatus HostStatus)

Initialize initializes the host with initialStatus

func (*Host) Start

func (h *Host) Start()

Start initiates listening for new requests

type HostStatus

type HostStatus struct {
	API       bool
	Console   bool
	WebSocket bool
}

HostStatus is used to track hosts that should be running

Jump to

Keyboard shortcuts

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