Merge pull request #11 from FlipsideCrypto/fix-record-struct

separate out data and record struct
This commit is contained in:
Don Cote 2019-10-07 10:28:37 -04:00 committed by GitHub
commit e7ce9c78dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,8 @@ import (
// Record represents a Data Bridge data record
type Record struct {
ID string `json:"id"`
Data
ID string `json:"id"`
Data interface{} `json:"data"`
}
// Data represents the data portion of a record, can be used on its own when publishing