July 2019
Intermediate to advanced
502 pages
14h
English
Let's do this in the transport layer of the link service.
The target file is https://github.com/the-gigi/delinkcious/blob/master/svc/link_service/service/transport.go#L26.
The change is very minimal. In the newLink() function, we will prefix the description with the [green] string:
func newLink(source om.Link) link { return link{ Url: source.Url, Title: source.Title, Description: "[green] " + source.Description, Status: source.Status, Tags: source.Tags, CreatedAt: source.CreatedAt.Format(time.RFC3339), UpdatedAt: source.UpdatedAt.Format(time.RFC3339), } }
In order to deploy our new green version, we need to create a new image. This requires bumping the Delinkcious version number.