Documentation
¶
Index ¶
- func StructToMap(v interface{}) (map[string]interface{}, error)
- type Database
- func (db *Database) Connect(onReady func(address string)) error
- func (db *Database) Disconnect()
- func (db *Database) GetDataByID(_id string) (models.Data, error)
- func (db *Database) GetOwnID() string
- func (db *Database) GetOwnPubKey() crypto.PubKey
- func (db *Database) ListData() ([]*models.Data, error)
- func (db *Database) SubmitData(data *models.Data) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructToMap ¶
Types ¶
type Database ¶
type Database struct {
ConnectionString string
URI string
CachePath string
Cache *cache.Cache
Logger *zap.Logger
IPFSNode *core.IpfsNode
IPFSCoreAPI icore.CoreAPI
OrbitDB orbitdb.OrbitDB
Store orbitdb.DocumentStore
Events event.Subscription
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) Disconnect ¶
func (db *Database) Disconnect()
func (*Database) GetOwnPubKey ¶
Click to show internal directories.
Click to hide internal directories.