recipient

package
v0.2.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2025 License: Unlicense Imports: 0 Imported by: 0

Documentation

Overview

Package recipient is a package that provides types and functions for handling recipients in Zulip messages. It defines interfaces and concrete types for representing both channel and direct message recipients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	Recipient
	// contains filtered or unexported methods
}

func ToChannel

func ToChannel[T int | string](channel T) Channel

type Direct

type Direct interface {
	Recipient
	// contains filtered or unexported methods
}

func ToUser

func ToUser[T int | string](user T) Direct

func ToUsers

func ToUsers[T []int | []string](users T) Direct

type Recipient

type Recipient interface {
	To() any
}

Recipient For channel messages, either the name or integer ID of the channel. For direct messages, either a list containing integer user IDs or a list containing string Zulip API email addresses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL