mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
增加当前节点本地定时缓存,修改部分潜在BUG,启动时Mongo或者redis无法正常连接时,进入启动等待
This commit is contained in:
4
backend/vendor/github.com/leodido/go-urn/.gitignore
generated
vendored
4
backend/vendor/github.com/leodido/go-urn/.gitignore
generated
vendored
@@ -6,4 +6,6 @@
|
||||
*.test
|
||||
|
||||
*.out
|
||||
*.txt
|
||||
*.txt
|
||||
|
||||
vendor/
|
||||
3
backend/vendor/github.com/leodido/go-urn/.travis.yml
generated
vendored
3
backend/vendor/github.com/leodido/go-urn/.travis.yml
generated
vendored
@@ -3,6 +3,9 @@ language: go
|
||||
go:
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- 1.12.x
|
||||
- 1.13.x
|
||||
- tip
|
||||
|
||||
before_install:
|
||||
|
||||
501
backend/vendor/github.com/leodido/go-urn/machine.go
generated
vendored
501
backend/vendor/github.com/leodido/go-urn/machine.go
generated
vendored
File diff suppressed because it is too large
Load Diff
30
backend/vendor/github.com/leodido/go-urn/makefile
generated
vendored
30
backend/vendor/github.com/leodido/go-urn/makefile
generated
vendored
@@ -1,12 +1,21 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
build: machine.go
|
||||
|
||||
images: docs/urn.png
|
||||
|
||||
machine.go: machine.go.rl
|
||||
ragel -Z -G2 -e -o $@ $<
|
||||
@gofmt -w -s $@
|
||||
@sed -i '/^\/\/line/d' $@
|
||||
@$(MAKE) -s file=$@ snake2camel
|
||||
@gofmt -w -s $@
|
||||
|
||||
.PHONY: build
|
||||
build: machine.go
|
||||
docs/urn.dot: machine.go.rl
|
||||
@mkdir -p docs
|
||||
ragel -Z -e -Vp $< -o $@
|
||||
|
||||
docs/urn.png: docs/urn.dot
|
||||
dot $< -Tpng -o $@
|
||||
|
||||
.PHONY: bench
|
||||
bench: *_test.go machine.go
|
||||
@@ -14,4 +23,17 @@ bench: *_test.go machine.go
|
||||
|
||||
.PHONY: tests
|
||||
tests: *_test.go machine.go
|
||||
go test -race -timeout 10s -coverprofile=coverage.out -covermode=atomic -v ./...
|
||||
go test -race -timeout 10s -coverprofile=coverage.out -covermode=atomic -v ./...
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -rf docs
|
||||
@rm -f machine.go
|
||||
|
||||
.PHONY: snake2camel
|
||||
snake2camel:
|
||||
@awk -i inplace '{ \
|
||||
while ( match($$0, /(.*)([a-z]+[0-9]*)_([a-zA-Z0-9])(.*)/, cap) ) \
|
||||
$$0 = cap[1] cap[2] toupper(cap[3]) cap[4]; \
|
||||
print \
|
||||
}' $(file)
|
||||
Reference in New Issue
Block a user