forked from TrueCloudLab/frostfs-node
18 lines
503 B
Go
18 lines
503 B
Go
package frostfsid
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-contract/frostfsid/client"
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
|
)
|
|
|
|
const (
|
|
SubjectNotFoundErrorMessage = "subject not found"
|
|
)
|
|
|
|
// SubjectProvider interface provides methods to get subject from FrostfsID contract.
|
|
type SubjectProvider interface {
|
|
GetSubject(ctx context.Context, addr util.Uint160) (*client.Subject, error)
|
|
GetSubjectExtended(ctx context.Context, addr util.Uint160) (*client.SubjectExtended, error)
|
|
}
|