- 連載介紹
- 理論到實踐
- 模式
- 目標
- 目標設定
- 依賴管理
- 減少衝擊
- 長期維護
- wire 的依賴注入
- wire 的特性
- 基本使用
- 測試環境
- 案例說明
- 訂單資訊
- 訂單品項
- 功能需求
- 操作介面設計
- 撰寫文件
- 伺服器定義
- 測試實作
- Place Order 實作 Controller 部分
- 定義 UseCase
- 實作 Controller
- 必要性
- Place Order 實作 Entity 部分
- 定義 Entity
- 更新 UseCase
- 封裝
- Place Order 實作 Repository 部分
- 定義介面
- Repository 實作
- 與 MVC 的差異
- Lookup Order 功能
- 擴展 API
- 實作 UseCase
- 實作 Repository
- Tokenization 機制設計
- Tokenization
- 設計功能
- 擴充功能
- 在 Place Order 實作 Token 機制
- Token Entity
- Place Order
- TokenRepository
- 在 Lookup Order 實作 Token 機制
- Lookup Order
- TokenRepository
- Token Entity
- Token 內容加密
- 時機
- 實作加解密
- 改進
- gRPC Server 準備
- 環境準備
- 實作伺服器
- 註冊 Order Service
- gRPC Server 實作
- 前置準備
- Lookup Order
- Place Order
- 輸入檢查
- 驗證時機
- Validator Package
- 難以統整
- 資料庫抽換 - BoltDB
- TokenRepository
- OrderRepository
- 切換資料庫
- 資料庫抽換 - SQLite(一)
- sqlc 設定
- Schema
- Queries
- 資料庫抽換 - SQLite(二)
- TokenRepository
- OrderRepository
- 切換資料庫
- 實作 LRU Cache
- TokenRepository 介面
- LruTokenRepository
- 分層結構
- 反思:必要性
- 區隔商業邏輯
- 可擴充性
- 可能性
- 連載介紹
Clean Architecture in Go
The author is letting you choose the price you pay for this book!
這本書是在我的個人網誌(https://blog.aotoki.me)連載的系列文章集結,透過購買本書可以先行看到尚未發表的內容。
About
About the Book
大約在 2022 年左右,我開始學習到領域驅動開發(Domain-Driven Design,簡稱 DDD)和清楚架構(Clean Architecture)的知識,並且嘗試應用在工作中。然而 DDD 涵蓋的範圍更大,因此先專注在 Clean Architecture 的學習,經過兩年左右的嘗試與實踐,大致上有了一個有體系的實踐方式,再加上 2024 年的 GopherDays 並未接受這個主題,最後選擇以連載形式呈現,因此有這系列的誕生。
Price
Pick Your Price...
Minimum price
$3.99
$5.99
You pay
$5.99Author earns
$4.79Author
About the Author
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.