Documentation ¶
Overview ¶
main.go : GOWS main program Copyright (C) 2013 Shaun Savage <savages@savages.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
gows.go : GOWS library entry main program Copyright (C) 2013 Shaun Savage <savages@savages.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
main.go : GOWS main program Copyright (C) 2013 Shaun Savage <savages@savages.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Variables
- func Broadcast(conn *Connection, dat map[string]interface{})
- func ConvNullInt(val sql.NullInt64) int64
- func ConvNullStr(val sql.NullString) string
- func DeReflect(unk interface{})
- func GetDB() *sqlx.DB
- func HHandle(dir string, hndlr func(http.ResponseWriter, *http.Request))
- func Init() *sqlx.DB
- func MsgNew(cmd map[string]interface{}) map[string]interface{}
- func Regfunc(nam string, cmd Command)
- func Run(flag *string, errhndlr http.Handler)
- func Setup(dir string, hndlr func(http.ResponseWriter, *http.Request))
- func WHandle(dir string, hndlr websocket.Handler)
- type BaseReq
- type BaseRet
- type Cmdfunc
- type Cmditem
- type Cmdstruct
- type Command
- type Connection
- type Module
- type T
Constants ¶
This section is empty.
Variables ¶
var Modules = make(map[string]*Module)
Functions ¶
func Broadcast ¶
func Broadcast(conn *Connection, dat map[string]interface{})
func ConvNullInt ¶
func ConvNullStr ¶
func ConvNullStr(val sql.NullString) string
Types ¶
type Command ¶
type Command func(conn *Connection, jin map[string]interface{}) map[string]interface{}
type Connection ¶
type Connection struct { // The websocket connection. Ws *websocket.Conn // Buffered channel of outbound messages. Send chan map[string]interface{} Msg map[string]interface{} // contains filtered or unexported fields }
func (*Connection) Reply ¶
func (c *Connection) Reply(dat map[string]interface{})
func (*Connection) SendMsg ¶
func (c *Connection) SendMsg(msg map[string]interface{})
Directories ¶
Path | Synopsis |
---|---|
auth.go : GOWS authencation program Copyright (C) 2013 Shaun Savage <savages@savages.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
auth.go : GOWS authencation program Copyright (C) 2013 Shaun Savage <savages@savages.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
conf.go : GOWS configuration Copyright (C) 2013 Shaun Savage <savages@savages.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
conf.go : GOWS configuration Copyright (C) 2013 Shaun Savage <savages@savages.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |