Documentation ¶
Overview ¶
Package acl implements ACL functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRules ¶ added in v0.11.1
func ApplyRules(ctx context.Context, request interface{}, rules []RejectFunc) error
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.