Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2022 Changes in this version + const ErrDaemonLocked + const ErrDaemonUnlocked + const ErrInvalidRPCState + const ErrRPCStarting + const ErrWaitingToStart + type GrpcInterceptor struct + func NewGrpcInterceptor(log *zerolog.Logger, noMacaroons bool) *GrpcInterceptor + func (i *GrpcInterceptor) AddMacaroonService(service *macaroons.Service) + func (i *GrpcInterceptor) AddPermission(method string, ops []bakery.Op) error + func (i *GrpcInterceptor) AddPermissions(perms map[string][]bakery.Op) error + func (i *GrpcInterceptor) CreateGrpcOptions() []grpc.ServerOption + func (i *GrpcInterceptor) MacaroonStreamServerInterceptor() grpc.StreamServerInterceptor + func (i *GrpcInterceptor) MacaroonUnaryServerInterceptor() grpc.UnaryServerInterceptor + func (i *GrpcInterceptor) Permissions() map[string][]bakery.Op + func (i *GrpcInterceptor) SetDaemonLocked() + func (i *GrpcInterceptor) SetDaemonUnlocked() + func (i *GrpcInterceptor) SetRPCActive() + func (i *GrpcInterceptor) SetWaitingToStart() + type Interceptor struct + Logger *zerolog.Logger + func InitInterceptor() (*Interceptor, error) + func (c *Interceptor) ShutdownChannel() <-chan struct{} + func (i *Interceptor) Close() error + func (interceptor *Interceptor) RequestShutdown()