Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IO ¶
type IO[MT ~string] struct { // contains filtered or unexported fields }
type Message ¶
type Message[MT ~string] struct { Id string `json:"id"` Type MT `json:"type"` Payload json.RawMessage `json:"payload"` }
type ReceivedEvent ¶
type ReceivedEvent[MT ~string, T any] struct { Payload T Message Message[MT] Thread *Thread[MT] Error bool }
func ReceiveOnce ¶
type Thread ¶
type Thread[MT ~string] struct { // contains filtered or unexported fields }
Thread is intentionally not goroutine-safe and is expected to have a single owner.
type Transport ¶
type Transport[MT ~string] struct { // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport[MT ~string](ctx context.Context, cancel context.CancelFunc, in io.ReadCloser, out io.Writer) *Transport[MT]
Click to show internal directories.
Click to hide internal directories.