Package

laserdisc

protocol

Permalink

package protocol

Source
protocol.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. protocol
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AllBListP extends BListP with BListPExtra

    Permalink
  2. trait AllHashP extends HashP with HashPExtra

    Permalink
  3. trait AllHyperLogLogP extends HyperLogLogP with HyperLogLogPExtra

    Permalink
  4. trait AllKeyP extends KeyP with KeyPExtra

    Permalink
  5. trait AllListP extends ListP with ListPExtra

    Permalink
  6. trait AllSetP extends SetP with SetPExtra

    Permalink
  7. trait AllSortedSetP extends SortedSetP with SortedSetPExtra

    Permalink
  8. trait AllStringP extends StringP with StringPExtra

    Permalink
  9. sealed trait Array extends RESP

    Permalink

    RESP Arrays

    RESP Arrays

    There can be 2 cases:

    • nil arrays, where the length is -1 and no array element is present
    • actual (non-nil) arrays, where the length is >= 0

    Non-nil Arrays can be constructed using the RESPBuilders#arr(xs: Seq[RESP]) method.

    Example:
    1. import laserdisc.protocol.RESP._
      val nonNilArray: NonNilArray             = arr(Vector(str("hello"), str("world")))
      val guaranteedNonEmptyArray: NonNilArray = arr(str("hello"), str("world"))
      val emptyArray: NonNilArray              = arr(Vector.empty)
      val nilArray: NilArray                   = nilArray
    Note

    A forwarder for nil is present too and represented using the final vals RESPBuilders.nilArray

    ,

    RESPBuilders#arr(one: RESP, rest: RESP*) is an overload which supports the creation of guaranteed non-empty sequences only. This is achieved through the usage of one fixed parameter followed by a var-arg of the same

  10. trait BListP extends AnyRef

    Permalink
  11. trait BListPExtra extends AnyRef

    Permalink
  12. sealed trait BulkString extends RESP

    Permalink

    RESP Bulk Strings

    RESP Bulk Strings

    There can be 2 cases:

    • null bulk strings, where the length is -1 and no actual underlying string is present
    • actual (non-null) bulk strings, where the length is >= 0

    Non-null BulkStrings can be constructed using the RESPBuilders#bulk method

    Example:
    1. import laserdisc.protocol.RESP._
      val nonNullBulkString: NonNullBulkString = bulk("some string")
      val nullBulkString: NullBulkString       = nullBulk
    Note

    A forwarder for null BulkStrings is present too and represented using the final vals RESPBuilders.nullBulk

    See also

    Show

  13. final case class CompleteFrame(bits: BitVector) extends RESPFrame with NonEmptyRESPFrame with Product with Serializable

    Permalink
  14. trait ConnectionP extends AnyRef

    Permalink
  15. final class Error extends LaserDiscRuntimeError with RESP

    Permalink

    RESP Errors

    RESP Errors

    RESP Errors are also scala.RuntimeExceptions, although where possible they will not contain stacktrace data

    These can be constructed by using the RESPBuilders#err method

    Example:
    1. import laserdisc.protocol.RESP._
      val error: Error = err("some error message")
  16. trait HashP extends AnyRef

    Permalink
  17. trait HashPExtra extends AnyRef

    Permalink
  18. trait HyperLogLogP extends AnyRef

    Permalink
  19. trait HyperLogLogPExtra extends AnyRef

    Permalink
  20. final case class IncompleteFrame(partial: BitVector, bitsToComplete: Long) extends RESPFrame with NonEmptyRESPFrame with Product with Serializable

    Permalink
  21. final class Integer extends RESP

    Permalink

    RESP Integers

    RESP Integers

    These can be constructed by using the RESPBuilders#int method

    Example:
    1. import laserdisc.protocol.RESP._
      val integer: Integer = int(42)
    Note

    Sometimes the values 0 and 1 are used to represent boolean values. In this case 0 corresponds to False while 1 to True, respectively.

  22. trait KeyP extends AnyRef

    Permalink
  23. trait KeyPExtra extends AnyRef

    Permalink
  24. final class LenientStringCodec extends Codec[String]

    Permalink
  25. trait ListP extends AnyRef

    Permalink
  26. trait ListPExtra extends AnyRef

    Permalink
  27. trait LowPriorityRESPParamWrite extends LowestPriorityRESPParamWrite

    Permalink
  28. trait LowPriorityReadInstances extends LowerPriorityReadInstances

    Permalink
  29. trait LowPriorityShowInstances extends AnyRef

    Permalink
  30. sealed trait LowerPriorityReadInstances extends AnyRef

    Permalink
  31. sealed trait LowestPriorityRESPParamWrite extends AnyRef

    Permalink
  32. final case class MoreThanOneFrame(invertedComplete: List[CompleteFrame], remainder: BitVector) extends RESPFrame with NonEmptyRESPFrame with Product with Serializable

    Permalink
  33. sealed trait NilArray extends Array

    Permalink
  34. final class NonNilArray extends Array

    Permalink

    This is the special case of a non-nil RESP Array

    This is the special case of a non-nil RESP Array

    These can be constructed by using the RESPBuilders#arr(xs: Seq[RESP]) method

    or

    by resorting to the overloaded RESPBuilders#arr(one: RESP, rest: RESP*) method which expects one parameter to be supplied followed by a (possibly empty) sequence of RESPs (vararg).

  35. final class NonNullBulkString extends BulkString

    Permalink

    This is the special case of a non-null RESP BulkString

    This is the special case of a non-null RESP BulkString

    These can be constructed by using the RESPBuilders#bulk method

  36. sealed trait NullBulkString extends BulkString

    Permalink
  37. sealed trait Protocol extends Request with Response

    Permalink
  38. sealed trait ProtocolCodec[A] extends Any

    Permalink
  39. trait PublishP extends AnyRef

    Permalink
  40. sealed trait RESP extends Serializable

    Permalink

    Redis Protocol Specification

    Redis Protocol Specification

    This sealed trait represents the entire Redis Serialization Protocol algebra

    Concrete instances of this trait must be created using this trait's companion object's methods, were scodec.Codecs for each are also defined

    See also

    RESPCodecs

    RESPBuilders

  41. sealed trait RESPBuilders extends AnyRef

    Permalink
  42. sealed trait RESPCodecs extends BitVectorSyntax

    Permalink
  43. sealed trait RESPFrame extends Product with Serializable with EitherSyntax with BitVectorSyntax

    Permalink
  44. sealed trait RESPFunctions extends AnyRef

    Permalink
  45. trait RESPParamWrite[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  46. trait RESPRead[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  47. trait Read[A, B] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  48. sealed trait Request extends AnyRef

    Permalink
  49. sealed trait Response extends AnyRef

    Permalink
  50. trait ServerP extends AnyRef

    Permalink
  51. trait SetP extends AnyRef

    Permalink
  52. trait SetPExtra extends AnyRef

    Permalink
  53. trait Show[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  54. final class SimpleString extends RESP

    Permalink

    RESP Simple Strings

    RESP Simple Strings

    These can be constructed by using the RESPBuilders#str method

    Example:
    1. import laserdisc.protocol.RESP._
      val simpleString: SimpleString = str("some string")
    Note

    Sometimes the value "OK" is used to represent a successful acknowledgement/processing of a command.

  55. trait SortedSetP extends AnyRef

    Permalink
  56. trait SortedSetPExtra extends AnyRef

    Permalink
  57. trait StringP extends AnyRef

    Permalink
  58. trait StringPExtra extends AnyRef

    Permalink

Value Members

  1. object BitVectorDecoding

    Permalink
  2. object EmptyFrame extends RESPFrame with Product with Serializable

    Permalink
  3. object Error extends Serializable

    Permalink
  4. object Integer extends Serializable

    Permalink
  5. object KeyP

    Permalink
  6. object ListP

    Permalink
  7. object NilArray extends NilArray with Product with Serializable

    Permalink
  8. object NonNilArray extends Serializable

    Permalink
  9. object NonNullBulkString extends Serializable

    Permalink
  10. object NullBulkString extends NullBulkString with Product with Serializable

    Permalink
  11. object Protocol

    Permalink
  12. object RESP extends RESPBuilders with RESPCodecs with RESPFunctions with Serializable

    Permalink
  13. object RESPParamWrite extends LowPriorityRESPParamWrite

    Permalink
  14. object RESPRead

    Permalink
  15. object Read extends LowPriorityReadInstances

    Permalink
  16. object ServerP

    Permalink
  17. object Show extends LowPriorityShowInstances

    Permalink
  18. object SimpleString extends Serializable

    Permalink
  19. object SortedSetP

    Permalink
  20. object StringP

    Permalink
  21. implicit def eitherSyntaxBase[A, B](aOrB: |[A, B]): EitherSyntaxBaseOps[A, B]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped