cuigh / auxo Goto Github PK
View Code? Open in Web Editor NEWA full-stack framework for building applications in Go
License: MIT License
A full-stack framework for building applications in Go
License: MIT License
nginx已经开始支持grpc代理,是不是可以开发nginx grpc模式,这样的话,
1、域名来替代etcd注册发现
2、nginx来替代rpc流控熔断降级等功能
eg:
type ReportStatus int
type DotCrawlInfo struct {
ReportStatus entity.ReportStatus `jsd:"report_status"`
WebsiteStatus entity.ReportStatus `jsd:"website_status"`
}
在jsd中反射出来的时候提示错误
infos = []*model.DotCrawlInfo{}
db := gsd.MustOpen(_TABLE_SQL_SITE_RECORD)
err = db.Select( _ColReportStatus, _ColWebsiteStatus).From(_Table).
Where(filter).
Page(PI.PageIndex, PI.PageSize).Fill(&infos)
if err != nil {
fmt.Println("Error:", err.Error())
}
return
提示类型无法反射无法从tinyiint(4) -> type ReportStatus int
这种如何解决~~
package main
import (
"fmt"
"github.com/cuigh/auxo/app/flag"
"github.com/cuigh/auxo/config"
"github.com/cuigh/auxo/log"
"github.com/cuigh/auxo/app"
)
var logxxx = log.Get("log")
func main() {
app.Name = "test6"
app.Version = "0.0.1"
app.Desc = "golang"
app.Action = func(ctx *app.Context) {
fmt.Println("web.mode is", config.GetString("web.mode"))
}
app.Flags.Register(flag.All)
app.Start()
}
##3#################################
step:
chendan@chendan-TM1604:~/lesson6$ ./lesson6
___ __ __ ___ ___ ______
/ \ | | | | \ \ / / / __
/ ^ \ | | | | \ V / | | | |
/ /\ \ | | | | > < | | | |
/ _____ \ | '--' | / . \ | '--' |
/__/ _\ _/ // __\ ___/ VERSION 0.6.4
web.mode is dev@dev
step:
chendan@chendan-TM1604:~/lesson6$ ./lesson6 -p prd
___ __ __ ___ ___ ______
/ \ | | | | \ \ / / / __
/ ^ \ | | | | \ V / | | | |
/ /\ \ | | | | > < | | | |
/ _____ \ | '--' | / . \ | '--' |
/__/ _\ _/ // __\ ___/ VERSION 0.6.4
web.mode is dev@dev
Line 169 in 772f5a6
增加
dir = filepath.Join(filepath.Dir(exec), "cfg")
if files.NotExist(dir) {
wd, err := os.Getwd()
if err == nil {
dir = filepath.Join(wd, "cfg")
}
}
Line 284 in b91461f
func (c *SimpleCriteriaSet) add(col interface{}, t int, val interface{}) *SimpleCriteriaSet {
c.Items = append(c.Items, &OneColumnCriteria{
Column: c.toColumn(col),
Type: t,
Value: val,
})
return c
}
我想使用auxo中的rpc框架,不知道这个rpc可以喝grpc兼容吗?还是需要额外的改造还是只可以用这个auxo的rpc server与rpc client模式
The codahale/hdrhistogram repo has been transferred under the github HdrHstogram umbrella with the help from the original author in Sept 2020 (new repo url https://github.com/HdrHistogram/hdrhistogram-go). The main reasons are to group all implementations under the same roof and to provide more active contribution from the community as the original repository was archived several years ago.
The dependency URL should be modified to point to the new repository URL. The tag "v0.9.0" was applied at the point of transfer and will reflect the exact code that was frozen in the original repository.
If you are using Go modules, you can update to the exact point of transfer using the @v0.9.0 tag in your go get command.
go mod edit -replace github.com/codahale/hdrhistogram=github.com/HdrHistogram/[email protected]
From the point of transfer, up until now (mon 16 aug 2021), we've released 3 versions that aim support the standard HdrHistogram serialization/exposition formats, and deeply improve READ performance.
We recommend to update to the latest version.
我在jsd查询的时候,column是tinyint(4)类型,value我设置为0了
我发现我死活查询不出来这个row
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.