featurebase/db/db.go
2014-06-17 13:06:56 -05:00

25 lines
312 B
Go

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