storj/storagenode/storagenodedb/satellites.go
Simon Guindon 91d54af705
Add satellites database business objects. (#3055)
* Add satellites database business objects.

* Fixed linting error.
2019-09-16 13:54:53 -04:00

26 lines
590 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package storagenodedb
import (
"github.com/zeebo/errs"
)
// ErrSatellitesDB represents errors from the satellites database.
var ErrSatellitesDB = errs.Class("satellitesdb error")
// reputation works with node reputation DB
type satellitesDB struct {
location string
SQLDB
}
// newSatellitesDB returns a new instance of satellitesDB initialized with the specified database.
func newSatellitesDB(db SQLDB, location string) *satellitesDB {
return &satellitesDB{
location: location,
SQLDB: db,
}
}