Documentation ¶
Index ¶
- func New(req *request.Request, vars *service.Variables, options ...Option) (service.Context, error)
- type Context
- func (c *Context) Body() []byte
- func (c *Context) GetIntVariable(key string) (int, error)
- func (c *Context) GetStringArrayVariable(key string) ([]string, error)
- func (c *Context) GetStringMapVariable(key string) (map[string]interface{}, error)
- func (c *Context) GetStringVariable(key string) (string, error)
- func (c *Context) HandleAuth(handler service.Handler) error
- func (c *Context) HandleCleanup(handler service.Handler) error
- func (c *Context) HandleWith(handler service.Handler) error
- func (c *Context) ParseBody(obj interface{}) error
- func (c *Context) RawResponse() bool
- func (c *Context) Request() *http.Request
- func (c *Context) SetBody(new []byte)
- func (c *Context) SetRawResponse(val bool)
- func (c *Context) SetVariable(key string, val interface{})
- func (c *Context) Variables() map[string]interface{}
- func (c *Context) Writer() http.ResponseWriter
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetStringArrayVariable ¶
func (*Context) GetStringMapVariable ¶
func (*Context) RawResponse ¶
func (*Context) SetRawResponse ¶
func (*Context) SetVariable ¶
func (*Context) Writer ¶
func (c *Context) Writer() http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.