commit
87ae7596d5
1 changed files with 11 additions and 3 deletions
|
|
@ -69,12 +69,20 @@ type Optional struct {
|
||||||
|
|
||||||
// Context the context
|
// Context the context
|
||||||
type Context struct {
|
type Context struct {
|
||||||
Sid string `json:"sid" yaml:"-"`
|
Sid string `json:"sid" yaml:"-"`
|
||||||
Stack string `json:"stack,omitempty"`
|
Stack string `json:"stack,omitempty"`
|
||||||
Path string `json:"pathname,omitempty"`
|
Path string `json:"pathname,omitempty"`
|
||||||
|
FormData map[string]interface{} `json:"formdata,omitempty"`
|
||||||
|
Field *ContextField `json:"field,omitempty"`
|
||||||
context.Context `json:"-" yaml:"-"`
|
context.Context `json:"-" yaml:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ContextField the context field
|
||||||
|
type ContextField struct {
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
Bind string `json:"bind,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// Store the command driver
|
// Store the command driver
|
||||||
type Store interface {
|
type Store interface {
|
||||||
Match(query query.Param, content string) (string, error)
|
Match(query query.Param, content string) (string, error)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue