fab

package module
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 5 Imported by: 0

README

Fab.io

Fab.io is a lightweight game services backend framework written in Go (Golang).

  • MVC Pattern
  • Powered by socket.io
Installation

To install Fab.io package, you need to install Go and set your Go workspace first.

  1. Intstall fab.io
$ go get -u github.com/kooinam/fabio
  1. Import it in your code:
import (
	fab "github.com/kooinam/fabio"
)
Quick Start

Coming soon

Dependencies
Package Link
go-socket.io github.com/googollee/go-socket.io
Todos
  • Write MORE Tests
  • Distributed Solutions
  • Graceful Shutdown

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastEvent

func BroadcastEvent(nsp string, room string, event string, view interface{}, parameters map[string]interface{})

BroadcastEvent used to broadcast event

func RegisterController

func RegisterController(nsp string, controller controllers.Controller)

RegisterController used to register controller

func Serve

func Serve(httpHandler func())

Serve used to serve

func Setup

func Setup()

Setup used to setup engine

Types

type Engine

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

Engine is the core rack for fab.io

type H

type H map[string]interface{}

H is shortcut for map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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