io.github.pidoveproject.showdown.protocol

Members list

Type members

Classlikes

object Assertion extends RefinedTypeOps[String, AssertionConstraint, Assertion]

Attributes

Source
Assertion.scala
Supertypes
trait RefinedTypeOps[String, AssertionConstraint, Assertion]
class Object
trait Matchable
class Any
Self type
Assertion.type
enum Channel[-In, +Out]

Attributes

Companion
object
Source
Channel.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case QueueBased[A]
case Pipe[In, Out, Out2]
case Map[In, Out, Out2]
case Contramap[In, Out, In2]
object Channel

Attributes

Companion
enum
Source
Channel.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Channel.type
case class CurrentUser(loggedIn: Boolean, username: Username, userId: String)

Attributes

Source
CurrentUser.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LoginResponse(actionSuccess: Boolean, assertion: Assertion, currentUser: CurrentUser)

Attributes

Source
LoginResponse.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class MessageDecoder[+T](zpure: ZPure[Nothing, MessageInput, MessageInput, Any, ProtocolError, T])

A message decoder.

A message decoder.

Type parameters

T

the type to deserialize

Value parameters

zpure

the internal logic for decoding a message

Attributes

Companion
object
Source
MessageDecoder.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
MessageDecoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait MessageEncoder[-A]

A message encoder.

A message encoder.

Type parameters

A

the type to serialize

Attributes

Companion
object
Source
MessageEncoder.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
MessageEncoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class MessageInput(raw: String, data: List[(Int, String)], cursor: Int, roomId: RoomId)

A message input.

A message input.

Value parameters

cursor

the next part index to consume

data

the input separated in indexed parts

raw

the entire input as String

Attributes

Companion
object
Source
MessageInput.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object MessageInput

Attributes

Companion
class
Source
MessageInput.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
enum ProtocolError(message: String) extends Throwable

A protocol-bound error

A protocol-bound error

Attributes

Source
ProtocolError.scala
Supertypes
trait Enum
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
object URL extends RefinedTypeOps[String, ValidURL, URL]

Attributes

Source
URL.scala
Supertypes
trait RefinedTypeOps[String, ValidURL, URL]
class Object
trait Matchable
class Any
Self type
URL.type
case class messageName(name: String, aliases: String*) extends StaticAnnotation

Use an alias for the annotated enum case/case class.

Use an alias for the annotated enum case/case class.

Value parameters

aliases

further aliases

name

the name to use instead

Attributes

Companion
object
Source
messageName.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
object messageName

Attributes

Companion
class
Source
messageName.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class messagePrefix(prefix: String) extends StaticAnnotation

Attributes

Companion
object
Source
messagePrefix.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
object messagePrefix

Attributes

Companion
class
Source
messagePrefix.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

opaque type Assertion

Attributes

Source
Assertion.scala
opaque type URL

Attributes

Source
URL.scala