nexigo

package module
v0.0.0-...-85f70f9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

README

nexigo

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpContext = ContextHandler{}
)

Functions

func GetConfig

func GetConfig(name string) interface{}

func GetFormValue

func GetFormValue(r *http.Request) map[string]interface{}

func Route

func Route(path string, ctl interface{})

func RouteFolder

func RouteFolder(path string, folder string)

func Run

func Run()

func SetConfig

func SetConfig(name string, value interface{})

func Test

func Test()

func Text

func Text()

Types

type ContextHandler

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

type Controller

type Controller struct {
	MsgType   string
	Html      string
	Text      string
	Templates []string
	Data      interface{}
}

func (*Controller) New

func (c *Controller) New(mtype string)

func (*Controller) RunAction

func (c *Controller) RunAction(w http.ResponseWriter, r *http.Request)

func (*Controller) ServeHtml

func (c *Controller) ServeHtml(html string)

func (*Controller) ServeJson

func (c *Controller) ServeJson(data interface{})

func (*Controller) ServeText

func (c *Controller) ServeText(text string)

func (*Controller) ServeTpl

func (c *Controller) ServeTpl(tmpls []string, data interface{})

type RouteHandler

type RouteHandler struct {
	Path        string
	IController interface{}
}

type SqlDB

type SqlDB struct {
	DB *sql.DB
}

func OpenDB

func OpenDB() *SqlDB

func (*SqlDB) CloseDB

func (s *SqlDB) CloseDB()

func (*SqlDB) Execute

func (s *SqlDB) Execute(query string, args ...interface{})

func (*SqlDB) ExecuteRows

func (s *SqlDB) ExecuteRows(query string, args ...interface{}) *sql.Rows

func (*SqlDB) QueryToList

func (s *SqlDB) QueryToList(query string, args ...interface{}) []interface{}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL