-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add SSL, config dirs, and Echo http server
- Loading branch information
Showing
8 changed files
with
167 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,6 @@ | |
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
.idea/ | ||
.idea/ | ||
|
||
cmd/go-jsonrpc-proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ORG_NAME := AxLabs | ||
REPO_NAME := go-jsonrpc-proxy | ||
PKG_ROOT := github.com/${ORG_NAME}/$(REPO_NAME) | ||
PKG_LIST := go list ${PKG_ROOT}/... | ||
PKG_GO_JSONRPC_PROXY := ${PKG_ROOT}/cmd | ||
CMD_DIR := ./cmd | ||
|
||
.PHONY: all lint vet test go-jsonrpc-proxy | ||
|
||
.EXPORT_ALL_VARIABLES: | ||
|
||
GO111MODULE=on | ||
|
||
all: lint vet test go-jsonrpc-proxy | ||
|
||
vet: | ||
@go vet $(shell $(PKG_LIST)) | ||
|
||
# Lint the files | ||
lint: | ||
@golint -set_exit_status $(shell $(PKG_LIST)) | ||
|
||
# Run unit tests | ||
test: | ||
@go test -v -short -count=1 $(shell $(PKG_LIST)) | ||
|
||
go-jsonrpc-proxy: $(CMD_DIR)/go-jsonrpc-proxy | ||
|
||
$(CMD_DIR)/go-jsonrpc-proxy: | ||
@echo "Building $@..." | ||
@go build -i -o $(CMD_DIR)/go-jsonrpc-proxy -v $(PKG_GO_JSONRPC_PROXY) | ||
@chmod u+x $(CMD_DIR)/go-jsonrpc-proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.