Documentation ¶
Index ¶
- Variables
- type Handler
- type RequestContext
- func (s *RequestContext) AddCookieForUpstream(name, value string)
- func (s *RequestContext) AddHeaderForUpstream(name, value string)
- func (s *RequestContext) AppContext() context.Context
- func (s *RequestContext) Body() []byte
- func (s *RequestContext) Cookie(name string) string
- func (s *RequestContext) Finalize() (*envoy_auth.CheckResponse, error)
- func (s *RequestContext) Header(name string) string
- func (s *RequestContext) Headers() map[string]string
- func (s *RequestContext) Request() *heimdall.Request
- func (s *RequestContext) SetPipelineError(err error)
- func (s *RequestContext) Signer() heimdall.JWTSigner
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Invoke(registerHooks), )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Check ¶
func (h *Handler) Check(ctx context.Context, creq *envoy_auth.CheckRequest) (*envoy_auth.CheckResponse, error)
type RequestContext ¶
type RequestContext struct {
// contains filtered or unexported fields
}
func NewRequestContext ¶
func NewRequestContext(ctx context.Context, req *envoy_auth.CheckRequest, signer heimdall.JWTSigner) *RequestContext
func (*RequestContext) AddCookieForUpstream ¶
func (s *RequestContext) AddCookieForUpstream(name, value string)
func (*RequestContext) AddHeaderForUpstream ¶
func (s *RequestContext) AddHeaderForUpstream(name, value string)
func (*RequestContext) AppContext ¶
func (s *RequestContext) AppContext() context.Context
func (*RequestContext) Body ¶
func (s *RequestContext) Body() []byte
func (*RequestContext) Cookie ¶
func (s *RequestContext) Cookie(name string) string
func (*RequestContext) Finalize ¶
func (s *RequestContext) Finalize() (*envoy_auth.CheckResponse, error)
func (*RequestContext) Header ¶
func (s *RequestContext) Header(name string) string
func (*RequestContext) Headers ¶
func (s *RequestContext) Headers() map[string]string
func (*RequestContext) Request ¶
func (s *RequestContext) Request() *heimdall.Request
func (*RequestContext) SetPipelineError ¶
func (s *RequestContext) SetPipelineError(err error)
func (*RequestContext) Signer ¶
func (s *RequestContext) Signer() heimdall.JWTSigner
Click to show internal directories.
Click to hide internal directories.