Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetStrData ¶
type SetStrData struct {
yarf.Middleware
}
SetStrData middleware creates a new yarf.Context.Data object based on StrData type.
func (*SetStrData) PreDispatch ¶
func (m *SetStrData) PreDispatch(c *yarf.Context) error
PreDispatch creates the StrData object and sets it on the Context.Data property.
type StrData ¶
StrData implements the yarf.ContextData interface to be used as a simple string storage. All interface{} values passed through this methods are treated as strings.
Click to show internal directories.
Click to hide internal directories.