mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
25 lines
309 B
Go
25 lines
309 B
Go
package db
|
|
|
|
import (
|
|
"encoding/gob"
|
|
|
|
"tux21b.org/v1/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{})
|
|
}
|