chats

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOptions

type GetOptions struct {
	ChatID          string
	FallbackAllowed bool
}

type ListOptions

type ListOptions struct {
	AccountIDs      []string
	Cursor          string
	Direction       string
	Inbox           string
	Limit           int
	Offset          int
	UnreadOnly      bool
	IncludeMuted    bool
	MutedOnly       bool
	PinnedOnly      bool
	ArchivedOnly    bool
	TypeFilter      string
	All             bool
	AllLimit        string
	FallbackAllowed bool
}

type SearchOptions

type SearchOptions struct {
	Query           string
	AccountIDs      []string
	Limit           int
	Offset          int
	FallbackAllowed bool
}

type Service

type Service struct {
	Backend        string
	Client         *api.Client
	ClientErr      error
	OpenStore      func() (*db.Store, error)
	ProgressWriter io.Writer
	WarnStale      bool
}

func NewService

func NewService(opts ServiceOptions) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context, opts GetOptions) (api.Chat, error)

func (*Service) List

func (s *Service) List(ctx context.Context, opts ListOptions) ([]api.Chat, error)

func (*Service) Search

func (s *Service) Search(ctx context.Context, opts SearchOptions) ([]api.Chat, error)

type ServiceOptions

type ServiceOptions struct {
	Backend        string
	Client         *api.Client
	ClientErr      error
	OpenStore      func() (*db.Store, error)
	ProgressWriter io.Writer
	WarnStale      bool
}

Jump to

Keyboard shortcuts

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