context

package
Version: v0.0.0-...-955f5c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2015 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context struct, req = the *http.Request provided with the NewContext func

func Find

func Find(req *http.Request) *Context

Retrive a context from the memo map and return.

func NewContext

func NewContext(req *http.Request) *Context

Create a new context struct, with vars map

func (*Context) Delete

func (c *Context) Delete(key string)

Delete a key

func (*Context) Destroy

func (c *Context) Destroy()

Remove a Context from the memo map

func (*Context) Get

func (c *Context) Get(key string) string

Get a key value from a context

func (*Context) GetAll

func (c *Context) GetAll() map[string]string

Get the map of data of the context

func (*Context) Set

func (c *Context) Set(key, value string)

Set a new key value pair in the context.Vars

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL