Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpaAuther ¶
type OpaAuther struct {
// contains filtered or unexported fields
}
OpaAuther is a gRPC server authorizer using OPA as backend
func NewOpaAuther ¶
func NewOpaAuther(log *zap.SugaredLogger, secret string) (*OpaAuther, error)
NewOpaAuther creates an OPA authorizer
func (*OpaAuther) WrapStreamingClient ¶ added in v0.2.0
func (o *OpaAuther) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
func (*OpaAuther) WrapStreamingHandler ¶ added in v0.2.0
func (o *OpaAuther) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
WrapStreamingHandler is a Opa StreamServerInterceptor for the server. Only one stream interceptor can be installed. If you want to add extra functionality you might decorate this function.
Click to show internal directories.
Click to hide internal directories.