Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamInvalidator ¶
func StreamInvalidator(ci Invalidator, reg *protoregistry.Registry) grpc.StreamServerInterceptor
StreamInvalidator will invalidate any mutating RPC that targets a repository in a gRPC stream based RPC
func UnaryInvalidator ¶
func UnaryInvalidator(ci Invalidator, reg *protoregistry.Registry) grpc.UnaryServerInterceptor
UnaryInvalidator will invalidate any mutating RPC that targets a repository in a gRPC unary RPC
Types ¶
type Invalidator ¶
type Invalidator interface {
StartLease(repo *gitalypb.Repository) (diskcache.LeaseEnder, error)
}
Invalidator is able to invalidate parts of the cache pertinent to a specific repository. Before a repo mutating operation, StartLease should be called. Once the operation is complete, the returned LeaseEnder should be invoked to end the lease.
Click to show internal directories.
Click to hide internal directories.