encode

package
v0.0.0-...-83bb8b4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodedMsg

type EncodedMsg struct {
	Timestamp   string   `json:"timestamp"`
	MessageType string   `json:"type"`
	Network     string   `json:"network"`
	Data        []string `json:"data"`
	Id          string   `json:"id"`
}

func Encode

func Encode(in string, t time.Time) *EncodedMsg

type Encoder

type Encoder interface {
	Encode(in string, time time.Time) (out EncodedMsg)
}

Jump to

Keyboard shortcuts

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