Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestType = types.NewObjectType("http.CheckRequest") RequestAttributesType = types.NewObjectType("http.CheckRequestAttributes") ResponseType = types.NewObjectType("http.CheckResponse") ResponseOkType = types.NewObjectType("http.CheckResponseOk") ResponseDeniedType = types.NewObjectType("http.CheckResponseDenied") )
Functions ¶
Types ¶
type CheckRequest ¶
type CheckRequest struct {
Attributes CheckRequestAttributes `cel:"attributes"`
}
func NewRequest ¶
func NewRequest(r *http.Request) (CheckRequest, error)
type CheckRequestAttributes ¶
type CheckRequestAttributes struct {
Method string `cel:"method"`
Header header `cel:"header"`
Host string `cel:"host"`
Protocol string `cel:"protocol"`
ContentLength int64 `cel:"contentLength"`
Body []byte `cel:"body"`
Scheme string `cel:"scheme"`
Path string `cel:"path"`
Query query `cel:"query"`
Fragment string `cel:"fragment"`
}
type CheckResponse ¶
type CheckResponse struct {
Ok *CheckResponseOk `cel:"ok"`
Denied *CheckResponseDenied `cel:"denied"`
}
type CheckResponseDenied ¶
type CheckResponseDenied struct {
Reason string `cel:"reason"`
}
type CheckResponseOk ¶
type CheckResponseOk struct{}
Click to show internal directories.
Click to hide internal directories.