schema

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package schema has the channels of messaging: chats, such as on Telegram, which are attached to sessions, so the person can talk to their assistant there

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID uuid.UUID `json:"id" help:"The channel's identifier"`
	ChannelMeta
	Created time.Time `json:"created" help:"When the chat was connected"`
}

Channel is a chat, such as on Telegram, attached to a session, so the person's messages there are sent to the session, and its replies are sent there

func (Channel) String

func (c Channel) String() string

type ChannelMeta

type ChannelMeta struct {
	Session  uuid.UUID `json:"session" help:"The session the channel is attached to"`
	Provider string    `json:"provider" help:"The messaging provider, such as telegram" example:"telegram"`
	Address  string    `json:"address" help:"The chat on the provider, such as a Telegram chat's identifier" example:"123456789"`
	Title    string    `json:"title,omitempty" help:"The chat's name, such as the person's, or a group's" example:"David"`
}

ChannelMeta is a channel's chat, and the session it's attached to

func (ChannelMeta) String

func (c ChannelMeta) String() string

Jump to

Keyboard shortcuts

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