eConf/

directory
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: MIT

README

eConf

完成 项目 完成 项目
http服务   缓存
grpc服务   日志
读取配置   测试
  数据库   API管理

概念

成果

运行服务
cd goms/eConf/cmd

# 使用默认的配置文件
go run . &  

# 使用指定的配置文件
go run . & -cfgpath=../configs  
测试(使用) API

http

# 使用 http 方法 GET /ping
curl localhost:8080/ping

# 使用 http 方法 GET /ping, 参数 message=xxx
curl localhost:8080/ping?message=xxx

grpc

# 获取 grpc 方法列表
grpcurl -plaintext localhost:50051 list

# 使用 grpc 方法 service.goms.User/Ping, 参数 {"message":"xxx"}
grpcurl -plaintext -d '{"message":"xxx"}' localhost:50051 service.goms.User/Ping

Directories

Path Synopsis
api
pb
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL