gf-demo-chat

command module
v2.0.0-...-5188f83 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 2 Imported by: 0

README

A simple MVC chat service

Installation

1. You need a go development environment setup before everything starts taking off.
2. Use git clone to clone the repo to your local folder.
git clone https://github.com/gogf/gf-demo-chat
3. Run command go run main.go, and you'll see something as follows if success:
  ADDRESS | METHOD |      ROUTE      |                                HANDLER                                 |    MIDDLEWARE      
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | ALL    | /*              | github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing        | GLOBAL MIDDLEWARE  
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | ALL    | /*              | github.com/gogf/gf/v2/net/ghttp.MiddlewareHandlerResponse              | GLOBAL MIDDLEWARE  
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | ALL    | /api.json       | github.com/gogf/gf/v2/net/ghttp.(*Server).openapiSpec                  |                    
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | GET    | /chat           | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Index     |                    
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | POST   | /chat/name      | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Name      |                    
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | GET    | /chat/websocket | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Websocket |                    
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
  :8199   | ALL    | /swagger/*      | github.com/gogf/gf/v2/net/ghttp.(*Server).swaggerUI                    | HOOK_BEFORE_SERVE  
----------|--------|-----------------|------------------------------------------------------------------------|--------------------

GoFrame Sites

GoFrame Repo
GoFrame Home

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
internal
cmd

Jump to

Keyboard shortcuts

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