GetSignature() string
This commit is contained in:
@@ -20,6 +20,7 @@ type ResourceInterface interface {
|
||||
SetAllowedInstances(request *tools.APIRequest)
|
||||
AddInstances(instance ResourceInstanceITF)
|
||||
RefineResourceByPartnership(peerID string) ResourceInterface
|
||||
GetSignature() string
|
||||
}
|
||||
|
||||
type ResourceInstanceITF interface {
|
||||
|
||||
@@ -30,6 +30,10 @@ type AbstractResource struct {
|
||||
Signature string `bson:"signature" json:"signature"`
|
||||
}
|
||||
|
||||
func (abs *AbstractResource) GetSignature() string {
|
||||
return abs.Signature
|
||||
}
|
||||
|
||||
func (abs *AbstractResource) FilterPeer(peerID string) *dbs.Filters {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user