sample

package
v0.0.0-...-dc79c4f Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 3 Imported by: 0

README

sample

sample is a simple mockup of a sensor sample, and is a quick test of utilizing Google's protocol buffers package as the basis for a simple proof of concept data logger

Starting

This package requires the user to run go generate in order to properly create needed packages

Documentation

Overview

sample is a package that contains structures that are time sequenced * samples * * This is mostly a simple test of utilizing protocol buffers to create useful go * structures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsTime

func AsTime(whence *timestamp.Timestamp) time.Time

AsTime 'converts' a timestamp.Timestamp to go's time.Time structure. * * If whence is nil, it returns an empty time.Time

func AsTimestamp

func AsTimestamp(whence time.Time) *timestamp.Timestamp

AsTimestamp returns a timestamp.Timestamp from a go time.Time structure * This is mostly a helper for the lazy

Types

This section is empty.

Directories

Path Synopsis
$ ./pubsub client $url client0 & client0=$! $ ./pubsub client $url client1 & client1=$! $ ./pubsub client $url client2 & client2=$! $ sleep 5 $ kill $server $client0 $client1 $client2 $ ./pubsub client $url client0 & client0=$! $ ./pubsub client $url client1 & client1=$! $ ./pubsub client $url client2 & client2=$! $ sleep 5 $ kill $server $client0 $client1 $client2
$ ./pubsub client $url client0 & client0=$! $ ./pubsub client $url client1 & client1=$! $ ./pubsub client $url client2 & client2=$! $ sleep 5 $ kill $server $client0 $client1 $client2 $ ./pubsub client $url client0 & client0=$! $ ./pubsub client $url client1 & client1=$! $ ./pubsub client $url client2 & client2=$! $ sleep 5 $ kill $server $client0 $client1 $client2

Jump to

Keyboard shortcuts

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