Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
func NewStructContext ¶
func NewStructContext(obj interface{}) Context
type HTTPRequestContext ¶
type HTTPRequestContext struct { *StructContext HttpRequest *http.Request CsrfToken string }
func RequestContext ¶
func RequestContext(r *http.Request) *HTTPRequestContext
func (*HTTPRequestContext) CSRFToken ¶
func (c *HTTPRequestContext) CSRFToken() string
func (*HTTPRequestContext) Request ¶
func (c *HTTPRequestContext) Request() *http.Request
type StructContext ¶
type StructContext struct { DeniesContext bool // contains filtered or unexported fields }
func (*StructContext) Get ¶
func (c *StructContext) Get(key string) any
func (*StructContext) Object ¶
func (c *StructContext) Object() interface{}
func (*StructContext) Set ¶
func (c *StructContext) Set(key string, value any)
Click to show internal directories.
Click to hide internal directories.