Skip to content

Instantly share code, notes, and snippets.

@brabster
Created September 6, 2018 10:25
Show Gist options
  • Select an option

  • Save brabster/64d4b4f28f6410888c24ee4aee6b515d to your computer and use it in GitHub Desktop.

Select an option

Save brabster/64d4b4f28f6410888c24ee4aee6b515d to your computer and use it in GitHub Desktop.

Revisions

  1. brabster created this gist Sep 6, 2018.
    5 changes: 5 additions & 0 deletions AccessLog-with-types.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    type ClientIp = String
    type UserId = String
    type Path = String
    type StatusCode = Int
    case class Entry(clientIp: ClientIp, userId: UserId, timestamp: Instant, path: Path, statusCode: StatusCode)