meta

package
v0.0.0-...-4bda072 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const IAMA = "@meta/IAMA"
View Source
const PING = "@meta/PING"
View Source
const PONG = "@meta/PONG"
View Source
const WHOIS = "@meta/WHOIS"

Variables

This section is empty.

Functions

func Iama

func Iama(manifest IamaPayload) alpaca.Action

func Ping

func Ping(handle string) alpaca.Action

func Pong

func Pong(handle string) alpaca.Action

func Whois

func Whois(handle string) alpaca.Action

Types

type IamaPayload

type IamaPayload struct {
	Name        string `json:"name"`
	Handle      string `json:"handle"`
	Version     string `json:"version"`
	Description string `json:"description"`
	StartedAtMs int64  `json:"started_at"`
}

func DecodeIama

func DecodeIama(action alpaca.Action) IamaPayload

func (IamaPayload) StartedAt

func (payload IamaPayload) StartedAt() time.Time

type MetaSvc

type MetaSvc struct {
	// contains filtered or unexported fields
}

func NewMetaSvc

func NewMetaSvc(
	handle string,
	name string,
	version string,
	description string,
) *MetaSvc

func (*MetaSvc) Handle

func (self *MetaSvc) Handle(actions alpaca.Actions, dispatch alpaca.Dispatch)

type PongPayload

type PongPayload struct {
	TimestampMs int64  `json:"timestamp"`
	Handle      string `json:"handle"`
}

func DecodePong

func DecodePong(action alpaca.Action) PongPayload

func (PongPayload) Timestamp

func (payload PongPayload) Timestamp() time.Time

Decode int64 millisecond timestamp

Jump to

Keyboard shortcuts

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