LemonRouter.ConversationKey (lemon_router v0.1.0)

View Source

Canonical conversation key selection for router-owned queue coordination.

Priority:

  1. explicit/auto-resolved resume token
  2. raw session key

Summary

Types

t()

@type t() :: {:resume, binary(), binary()} | {:session, binary()}

Functions

from_submission(submission)

@spec from_submission(map()) :: t()

resolve(session_key, resume)

@spec resolve(binary() | nil, LemonCore.ResumeToken.t() | map() | nil) :: t()

to_string_key(arg)

@spec to_string_key(t()) :: binary()