TheThingsArchive / go-account-lib

MIT License
2 stars 7 forks source link

Add interface types #43

Closed rvolosatovs closed 7 years ago

rvolosatovs commented 7 years ago

As adressed in TheThingsIndustries/noc#98

add something along the lines of

type AppRighter interface {
  AppRight(id string, right rights.Right) bool
}

and

type GatewayRighter interface {
  GatewayRight(id string, right rights.Right) bool
}

such that it would be possible to mock access in other packages

romeovs commented 7 years ago

See #44

rvolosatovs commented 7 years ago

closed by #44