All Projects → karldoenitz → Tigo

karldoenitz / Tigo

Licence: mit
Tigo is an HTTP web framework written in Go (Golang).It features a Tornado-like API with better performance. Tigo是一款用Go语言开发的web应用框架,API特性类似于Tornado并且拥有比Tornado更好的性能。

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Tigo

Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (-78.23%)
Mutual labels:  rest-api, restful, middleware
Restana
Super fast and minimalist framework for building REST micro-services.
Stars: ✭ 341 (-69.82%)
Mutual labels:  rest-api, restful, middleware
Rest Api Design Guide
NBB's REST-ish API Design Guide
Stars: ✭ 643 (-43.1%)
Mutual labels:  rest-api, restful
Ulfius
Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
Stars: ✭ 666 (-41.06%)
Mutual labels:  rest-api, restful
Ngx Restangular
Restangular for Angular 2 and higher versions
Stars: ✭ 787 (-30.35%)
Mutual labels:  rest-api, restful
V8 Archive
Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
Stars: ✭ 486 (-56.99%)
Mutual labels:  rest-api, restful
Restful Api Design References
RESTful API 设计参考文献列表,可帮助你更加彻底的了解REST风格的接口设计。
Stars: ✭ 4,830 (+327.43%)
Mutual labels:  rest-api, restful
Apidoc
RESTful API 文档生成工具,支持 Go、Java、Swift、JavaScript、Rust、PHP、Python、Typescript、Kotlin 和 Ruby 等大部分语言。
Stars: ✭ 785 (-30.53%)
Mutual labels:  rest-api, restful
Restool
RESTool is an open source UI tool for managing RESTful APIs. It could save you time developing your own internal tools. A live example:
Stars: ✭ 338 (-70.09%)
Mutual labels:  rest-api, restful
Farwest
Framework for building RESTful HATEOAS-driven applications.
Stars: ✭ 18 (-98.41%)
Mutual labels:  rest-api, restful
Core
Pluf is an open source PHP framework, which is very light and fast.
Stars: ✭ 6 (-99.47%)
Mutual labels:  rest-api, restful
Dashboard Server
A JSON file RESTful API with authorization based on json-server
Stars: ✭ 48 (-95.75%)
Mutual labels:  rest-api, restful
Express Openapi Validator
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
Stars: ✭ 436 (-61.42%)
Mutual labels:  rest-api, middleware
Rest Api Response Format
REST API response format using HTTP status codes
Stars: ✭ 356 (-68.5%)
Mutual labels:  rest-api, restful
Swagger Express Middleware
Swagger 2.0 middlware and mocks for Express.js
Stars: ✭ 543 (-51.95%)
Mutual labels:  rest-api, middleware
Koa2 Api Scaffold
一个基于Koa2的轻量级RESTful API Server脚手架。
Stars: ✭ 694 (-38.58%)
Mutual labels:  rest-api, restful
Calm
It is always Calm before a Tornado!
Stars: ✭ 50 (-95.58%)
Mutual labels:  rest-api, restful
restana
Super fast and minimalist framework for building REST micro-services.
Stars: ✭ 380 (-66.37%)
Mutual labels:  middleware, restful
Jaguar
Jaguar, a server framework built for speed, simplicity and extensible. ORM, Session, Authentication & Authorization, OAuth
Stars: ✭ 286 (-74.69%)
Mutual labels:  rest-api, restful
Gen
Converts a database into gorm structs and RESTful api
Stars: ✭ 825 (-26.99%)
Mutual labels:  rest-api, restful

Badge LICENSE Build Status Join the chat at https://gitter.im/karlooper/Tigo Open Source Helpers Go Report Card GoDoc Release
Tigo logo

Tigo(For English Documentation Click Here)

一个使用Go语言开发的web框架。

相关工具及插件

  • tiger
    tiger是一个专门为Tigo框架量身定做的脚手架工具,可以使用tiger新建Tigo项目或者执行其他操作。
    查看tiger
  • tission
    tission是一个为Tigo定制的session插件。
    查看tission

安装

go get github.com/karldoenitz/Tigo/...

示例

Hello Tigo

package main

import (
    "github.com/karldoenitz/Tigo/TigoWeb"
    "net/http"
)

// handler
type DemoHandler struct {
    TigoWeb.BaseHandler
}

func (demoHandler *DemoHandler) Get() {
    demoHandler.ResponseAsText("Hello Demo!")
}

// 中间件
func Authorize(next http.HandlerFunc) http.HandlerFunc {
    return func(w http.ResponseWriter, r *http.Request) {
        // 此处授权认证逻辑
        next.ServeHTTP(w, r)
    }
}

// 路由
var urls = []TigoWeb.Router{
    {"/demo", DemoHandler{}, []TigoWeb.Middleware{Authorize}},
}

func main() {
    application := TigoWeb.Application{
        IPAddress:  "127.0.0.1",
        Port:       8888,
        UrlRouters: urls,
    }
    application.Run()
}

编译

打开终端,进入代码目录,运行如下命令:

go build main.go

运行

编译完成后,会有一个可执行文件main,运行如下命令:

./main

终端会有如下显示:

INFO: 2018/07/09 15:02:36 Application.go:22: Server run on: 127.0.0.1:8888

打开浏览器访问地址http://127.0.0.1:8888/hello-tigo,就可以看到Hello Tigo。

性能对比

文档

点击此处

都有谁在使用Tigo

鸣谢以下组织的支持

注意

如果你对此框架感兴趣,可以加入我们一同开发。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].