Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is a helper function to add a cache to the authzed.Client's PermissionsServiceClient implementation.
func NewPermissionServiceClient ¶
func NewPermissionServiceClient(c pb.PermissionsServiceClient, ca cache.Cache, opts ...Option) pb.PermissionsServiceClient
NewPermissionServiceClient add a cache to the given PermissionsServiceClient. Note that unlike the original interface the default Consistency is FullyConsistent.
Types ¶
type Option ¶
type Option func(*permissionClient)
Options allows to pass extra options to the PermissionsServiceClient implementation.
func WithLogger ¶
WithLogger can overwrite the default Noop logger. The logger implements "github.com/go-kit/log"'s Logger interface.
Click to show internal directories.
Click to hide internal directories.