Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = providerKey{}
Provider is used to add a Client to an api.Router
Functions ¶
Types ¶
type Client ¶
type Client interface { // IsAllowed queries the authz server for req and returns the result // In case of an error it will default to deny and return false IsAllowed(ctx context.Context, req *ladon.Request) (bool, error) }
Client is an authz client that verifies permissions
func FromRouter ¶
FromRouter returns the Client that is associated with r
Click to show internal directories.
Click to hide internal directories.