courier

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Courier

type Courier interface {
	StartChat(context.Context, *models.Channel, models.ChatID) error
	CreateMsg(context.Context, *models.Channel, *models.Contact, string) error
	ReportDelivered(context.Context, *models.Channel, *models.Contact, models.MsgID) error
}

Courier is the interface for interacting with a courier instance or a mock

func NewCourier

func NewCourier(cfg *runtime.Config) Courier

NewCourier creates a new courier instance using the provided configuration

type Event

type Event interface {
	Type() string
}

type MsgStatus

type MsgStatus string
const (
	MsgStatusDelivered MsgStatus = "delivered"
)

Jump to

Keyboard shortcuts

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