host

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME    = "host"
	VERSION = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostService

type HostService struct {
	service.ApplicationContainer
	// contains filtered or unexported fields
}

HostService represents a host service.

func NewHostService

func NewHostService() *HostService

NewHostService creates a new HostService.

func (*HostService) Get

func (hs *HostService) Get(key string) (chan interface{}, error)

Get implements service.ServiceData

func (*HostService) Run

func (hs *HostService) Run(s inet.Stream)

func (*HostService) Set

func (hs *HostService) Set(key string, value interface{}) error

Set implements service.ServiceData

func (*HostService) Start

func (hs *HostService) Start(ctx context.Context) error

func (*HostService) Stop

func (hs *HostService) Stop() error

func (*HostService) UpdateLocation

func (hs *HostService) UpdateLocation(longitude, latitude float64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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