Documentation ¶
Overview ¶
Package acl implements ACL functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewACLMiddleware ¶
func NewACLMiddleware(rules []RejectFunc) endpoint.Middleware
NewACLMiddleware creates a new ACL middleware using the provided reject funcs.
Types ¶
type RejectFunc ¶
RejectFunc judges if to reject a request by the given context and request. Returns a reason if rejected, otherwise returns nil.
Click to show internal directories.
Click to hide internal directories.