featurebase/db/db.go
Ben Johnson 503e5c95be flatten util into pilosa
This commit moves ID-related types and functions to the top
level package and moves remaining statsd wrapper into a `statsd`
package.
2015-09-03 14:43:34 -06:00

25 lines
314 B
Go

package db
import (
"encoding/gob"
"github.com/umbel/pilosa"
)
type Message struct {
Data interface{} `json:"data"`
}
type Envelope struct {
Message *Message
Host *pilosa.GUID
}
type HoldResult interface {
ResultId() *pilosa.GUID
ResultData() interface{}
}
func init() {
gob.Register(Message{})
}