mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
This commit moves ID-related types and functions to the top level package and moves remaining statsd wrapper into a `statsd` package.
25 lines
314 B
Go
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{})
|
|
}
|