Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Listing the required set of operations for the data access layer

Following the SOLID design principles we discussed in the previous chapters, we will start designing the link graph data access layer by listing the operations (responsibilities, in SOLID terminology) that it needs to perform and then formally describe them by means of a Go interface.

For our particular use case, the link graph access layer must support the following set of operations:

  1. Insert a link into the graph or update an existing link when the crawler discovers that its content has changed.
  1. Look up a link by its ID.
  2. Iterate all the links present in the graph. This is the primary service that the link graph component must provide to the other components (for example, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content