Documentation ¶
Index ¶
- Variables
- func AdminPermissions() []bakery.Op
- type RootKeyStorage
- type Service
- func (service *Service) Init()
- func (service *Service) NewMacaroon(ops ...bakery.Op) (*bakery.Macaroon, error)
- func (service *Service) StreamServerInterceptor() grpc.StreamServerInterceptor
- func (service *Service) UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func (service *Service) ValidateMacaroon(ctx context.Context, requiredPermissions []bakery.Op) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReadPermissions = []bakery.Op{ { Entity: "info", Action: "read", }, { Entity: "swap", Action: "read", }, } WritePermissions = []bakery.Op{ { Entity: "info", Action: "write", }, { Entity: "swap", Action: "write", }, } RPCServerPermissions = map[string][]bakery.Op{ "/boltzrpc.Boltz/GetInfo": {{ Entity: "info", Action: "read", }}, "/boltzrpc.Boltz/GetServiceInfo": {{ Entity: "info", Action: "read", }}, "/boltzrpc.Boltz/ListSwaps": {{ Entity: "swap", Action: "read", }}, "/boltzrpc.Boltz/GetSwapInfo": {{ Entity: "swap", Action: "read", }}, "/boltzrpc.Boltz/Deposit": {{ Entity: "swap", Action: "write", }}, "/boltzrpc.Boltz/CreateSwap": {{ Entity: "swap", Action: "write", }}, "/boltzrpc.Boltz/CreateChannel": {{ Entity: "swap", Action: "write", }}, "/boltzrpc.Boltz/CreateReverseSwap": {{ Entity: "swap", Action: "write", }}, } )
Functions ¶
func AdminPermissions ¶
Types ¶
type RootKeyStorage ¶
type RootKeyStorage struct {
// contains filtered or unexported fields
}
type Service ¶
func (*Service) NewMacaroon ¶
func (*Service) StreamServerInterceptor ¶
func (service *Service) StreamServerInterceptor() grpc.StreamServerInterceptor
func (*Service) UnaryServerInterceptor ¶
func (service *Service) UnaryServerInterceptor() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.