# microservice-go **Repository Path**: lhdhtrc/microservice-go ## Basic Information - **Project Name**: microservice-go - **Description**: Golang微服务模板 - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-25 - **Last Updated**: 2024-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: Go语言, microservice, etcd ## README ## Lhdht Microservice Golang Version A minimalist microservices framework based on microcore-go ### config.yaml - system - app_id -------- No special significance, only as a unique identifier. - run_port -------- Running port. - logger - addr ------ Remote log storage address. - console ------ Local log output. - remote: ------ Remote log output. - micro - address: ------ Service Address - namespace ------ Service namespace - max_retry ------ Maximum number of lease retries - ttl ------ Lease heartbeat time ### start-up process - Deploying etcd. - Complete config.yaml. - create task in bootstrap/entrance.go, read local or remote etcd config file. - `go mod tidy` - `go run script/core.go` - Execute the buf cli script where protobuf is stored in the cloud, optional - `go run main.go` -