Documentation ¶
Index ¶
- type MockContext
- func (m *MockContext) AddCookieForUpstream(name, value string)
- func (m *MockContext) AddHeaderForUpstream(name, value string)
- func (m *MockContext) AppContext() context.Context
- func (m *MockContext) RequestBody() []byte
- func (m *MockContext) RequestClientIPs() []string
- func (m *MockContext) RequestCookie(name string) string
- func (m *MockContext) RequestFormParameter(name string) string
- func (m *MockContext) RequestHeader(name string) string
- func (m *MockContext) RequestHeaders() map[string]string
- func (m *MockContext) RequestMethod() string
- func (m *MockContext) RequestQueryParameter(name string) string
- func (m *MockContext) RequestURL() *url.URL
- func (m *MockContext) SetPipelineError(err error)
- func (m *MockContext) Signer() heimdall.JWTSigner
- type MockJWTSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContext ¶
func (*MockContext) AddCookieForUpstream ¶
func (m *MockContext) AddCookieForUpstream(name, value string)
func (*MockContext) AddHeaderForUpstream ¶
func (m *MockContext) AddHeaderForUpstream(name, value string)
func (*MockContext) AppContext ¶
func (m *MockContext) AppContext() context.Context
func (*MockContext) RequestBody ¶
func (m *MockContext) RequestBody() []byte
func (*MockContext) RequestClientIPs ¶
func (m *MockContext) RequestClientIPs() []string
func (*MockContext) RequestCookie ¶
func (m *MockContext) RequestCookie(name string) string
func (*MockContext) RequestFormParameter ¶
func (m *MockContext) RequestFormParameter(name string) string
func (*MockContext) RequestHeader ¶
func (m *MockContext) RequestHeader(name string) string
func (*MockContext) RequestHeaders ¶
func (m *MockContext) RequestHeaders() map[string]string
func (*MockContext) RequestMethod ¶
func (m *MockContext) RequestMethod() string
func (*MockContext) RequestQueryParameter ¶
func (m *MockContext) RequestQueryParameter(name string) string
func (*MockContext) RequestURL ¶
func (m *MockContext) RequestURL() *url.URL
func (*MockContext) SetPipelineError ¶
func (m *MockContext) SetPipelineError(err error)
func (*MockContext) Signer ¶
func (m *MockContext) Signer() heimdall.JWTSigner
type MockJWTSigner ¶
func (*MockJWTSigner) Hash ¶
func (m *MockJWTSigner) Hash() []byte
func (*MockJWTSigner) Keys ¶
func (m *MockJWTSigner) Keys() []jose.JSONWebKey
Click to show internal directories.
Click to hide internal directories.