Documentation ¶
Index ¶
- Constants
- func AdminPermissions() []bakery.Op
- func AllPermissionsByMethod() map[string][]bakery.Op
- func MarketPermissions() []bakery.Op
- func PricePermissions() []bakery.Op
- func ReadOnlyPermissions() []bakery.Op
- func WalletPermissions() []bakery.Op
- func WebhookPermissions() []bakery.Op
- func Whitelist() map[string][]bakery.Op
Constants ¶
const ( EntityOperator = "operator" EntityTrade = "trade" EntityMarket = "market" EntityPrice = "price" EntityUnlocker = "unlocker" EntityWallet = "wallet" EntityWebhook = "webhook" EntityTransport = "transport" EntityReflection = "reflection" EntityHealth = "health" EntityFeeder = "feeder" )
Variables ¶
This section is empty.
Functions ¶
func AdminPermissions ¶
AdminPermissions returns the permissions of the macaroon admin.macaroon. This grants access to the all actions for all entities.
func AllPermissionsByMethod ¶
AllPermissionsByMethod returns a mapping of the RPC server calls to the permissions they require.
func MarketPermissions ¶
MarketPermissions returns the permissions of the macaroon market.macaroon. This grants access to all actions for the market and price entities.
func PricePermissions ¶
PricePermissions returns the permissions of the macaroon price.macaroon. This grants access to all actions for the price entity.
func ReadOnlyPermissions ¶
ReadOnlyPermissions returns the permissions of the macaroon readonly.macaroon. This grants access to the read action for all entities.
func WalletPermissions ¶
WalletPermissions returns the permissions of the macaroon wallet.macaroon. This grants access to the all actions for the wallet entity.
func WebhookPermissions ¶
WebhookPermissions returns the permissions of the macaroon webhook.macaroon. This grants access to the all actions for the webhook entity.
Types ¶
This section is empty.