Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created January 23, 2019 20:38
Show Gist options
  • Save robhinds/7f37681bffcce6f39e0f0b9a93f89535 to your computer and use it in GitHub Desktop.
Save robhinds/7f37681bffcce6f39e0f0b9a93f89535 to your computer and use it in GitHub Desktop.
sealed trait IndexAlg[A]
case class CreateIndex(name: String) extends IndexAlg[Either[String, CreateIndexResponse]]
case class DeleteIndex(name: String) extends IndexAlg[Either[String, DeleteIndexResponse]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment