Skip to content

Commit

Permalink
extension: add asbench echo pidinfo shell topidchart fileserver recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Yingjie committed Dec 21, 2021
1 parent a81dfde commit 4fd4fba
Show file tree
Hide file tree
Showing 15 changed files with 313 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PKG_ALL = $(shell go list ./...)
GIT_TAG = $(shell git describe --tags --abbrev=0 2>/dev/null)
COMMIT_REV = $(shell git rev-parse HEAD)
STDTAGS := stdbase,stdcommon,stdruntime
EXTTAGS := adaptiveservice,shell,log
EXTTAGS := adaptiveservice,shell,log,pidinfo,asbench

all: format lint vet test build

Expand Down Expand Up @@ -49,9 +49,10 @@ build: dep
@go build -tags $(STDTAGS),$(EXTTAGS) -ldflags="$(LDFLAGS)" -o bin ./cmd/gshell

lite: LDFLAGS += -s -w
lite: EXTTAGS := $(EXTTAGS),echomsg,topidchartmsg,recordermsg
lite: build ## Build lite release binary to bin dir

full: EXTTAGS := debug,$(EXTTAGS)
full: EXTTAGS := debug,$(EXTTAGS),echo,fileserver,topidchart,docit,recorder
full: STDTAGS := $(STDTAGS),stdext,stdarchive,stdcompress,stdcontainer,stdcrypto,stddatabase,stdencoding
full: STDTAGS := $(STDTAGS),stdhash,stdhtml,stdlog,stdmath,stdhttp,stdmail,stdrpc,stdregexp,stdtext,stdunicode
full: build ## Build full release binary to bin dir
Expand Down
9 changes: 9 additions & 0 deletions extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ func init() {
//go:generate ./gen_symbols.sh github.com/godevsig/adaptiveservice
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/lib/sys/shell
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/lib/sys/log -fixlog
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/util/fileserver

//go:generate ./gen_symbols.sh github.com/godevsig/grepo/example/echo -extramsg
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/benchmark/asbench

//go:generate ./gen_symbols.sh github.com/godevsig/grepo/lib/sys/pidinfo
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/perf/topidchart -extramsg
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/util/recorder -extramsg
//go:generate ./gen_symbols.sh github.com/godevsig/grepo/render/docit
26 changes: 26 additions & 0 deletions extension/github_com-godevsig-grepo-benchmark-asbench.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions extension/github_com-godevsig-grepo-example-echo-echo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions extension/github_com-godevsig-grepo-example-echo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions extension/github_com-godevsig-grepo-lib-sys-pidinfo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion extension/github_com-godevsig-grepo-lib-sys-shell.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions extension/github_com-godevsig-grepo-perf-topidchart-topidchart.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions extension/github_com-godevsig-grepo-perf-topidchart.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions extension/github_com-godevsig-grepo-render-docit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions extension/github_com-godevsig-grepo-util-fileserver.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions extension/github_com-godevsig-grepo-util-recorder-recorder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions extension/github_com-godevsig-grepo-util-recorder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ go 1.16

require (
github.com/godevsig/adaptiveservice v0.9.16
github.com/godevsig/grepo v0.0.5
github.com/godevsig/grepo v0.1.0
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/traefik/yaegi v0.11.1
)

replace github.com/niubaoshu/gotiny => github.com/godevsig/gotiny v0.0.4-0.20210913173728-083dd4b72177

replace github.com/go-echarts/go-echarts/v2 => github.com/godevsig/go-echarts/v2 v2.0.0-20211101104447-e8e4a51bc4fd
23 changes: 21 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
github.com/barkimedes/go-deepcopy v0.0.0-20200817023428-a044a1957ca4 h1:iBbhlt5YmtL9QXsMVf/XPXgYBQLifn38Cdjc0J/+uYg=
github.com/barkimedes/go-deepcopy v0.0.0-20200817023428-a044a1957ca4/go.mod h1:hiVxq5OP2bUGBRNS3Z/bt/reCLFNbdcST6gISi1fiOM=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/godevsig/adaptiveservice v0.9.16 h1:/mSs6RBY5t5JLYpka5V/m7wwWPsXH/d37W4dQnBojbc=
github.com/godevsig/adaptiveservice v0.9.16/go.mod h1:t/MOA1DVvomK8ltOny8pbb8k1ZBYub6GvnTOs/M6Qkk=
github.com/godevsig/go-echarts/v2 v2.0.0-20211101104447-e8e4a51bc4fd h1:NXoy9fdgrEi4dREtTBQMRl5naGeHpYldnqjh5rmZgJk=
github.com/godevsig/go-echarts/v2 v2.0.0-20211101104447-e8e4a51bc4fd/go.mod h1:6TOomEztzGDVDkOSCFBq3ed7xOYfbOqhaBzD0YV771A=
github.com/godevsig/gotiny v0.0.4-0.20210913173728-083dd4b72177 h1:Ga+4dO0xF4ejuZfKnHfEA/bqlNUc2XKNjpopVDhMjLM=
github.com/godevsig/gotiny v0.0.4-0.20210913173728-083dd4b72177/go.mod h1:QdEauSzqdF5tbLIVtGYO6sqOhUKVPSZGd5x7xK5oeS4=
github.com/godevsig/grepo v0.0.5 h1:Dh+XQy03NRnmOuld2vxeL81OWeUIEBWA+oCvNTVOXnw=
github.com/godevsig/grepo v0.0.5/go.mod h1:TTod4iAuz7pl2bjVxqA7AECNLYlrYgChOK1IHzJz380=
github.com/godevsig/grepo v0.1.0 h1:4FmrkUKfQcexms1V+07o1pXBN1gjPKVj6CT4PmRIfiU=
github.com/godevsig/grepo v0.1.0/go.mod h1:lHdpRiWkhKpYBb7yCrZulQDo7WTj5WNq2+QRHbI3Kr8=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/niubaoshu/goutils v0.0.0-20180828035119-e8e576f66c2b h1:T7vmCmpGIvqlOOp5SXatALP+HYc/40ZHbxmgy+p+sN0=
github.com/niubaoshu/goutils v0.0.0-20180828035119-e8e576f66c2b/go.mod h1:aDwH4aWrEBXw/uvtSvwNwxdtnsx++aP8c8ad4AmlRCg=
github.com/peterh/liner v1.2.1 h1:O4BlKaq/LWu6VRWmol4ByWfzx6MfXc5Op5HETyIy5yg=
github.com/peterh/liner v1.2.1/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.6.0 h1:jlIyCplCJFULU/01vCkhKuTyc3OorI3bJFuw6obfgho=
github.com/stretchr/testify v1.6.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/traefik/yaegi v0.11.1 h1:MJpYUnRc/wNOQcdywGd/q2mCznZAiAch1V+Ae+XFVzc=
github.com/traefik/yaegi v0.11.1/go.mod h1:RuCwD8/wsX7b6KoQHOaIFUfuH3gQIK4KWnFFmJMw5VA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 comments on commit 4fd4fba

Please sign in to comment.