Gokit建立微服務的例子(翻譯)

第一原理 讓咱們建立一個Go kit 服務,咱們暫時只用一個main.go文件。 git 你的事務邏輯 你的服務從你的事務邏輯開始。在Go kit裏,咱們用一個interface來描述一個服務github // StringService provides operations on strings. import "context" type StringService interface {
相關文章
相關標籤/搜索