tg

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	ParseFile(filename string, messagesChan chan<- models.Message) error
}

type Service

type Service interface {
	ParseArchivedFile(filename string, messagesChan chan<- models.Message) error
}

type TgArchivedHTMLParser

type TgArchivedHTMLParser struct {
	// contains filtered or unexported fields
}

func NewTgArchivedHTMLParser

func NewTgArchivedHTMLParser(log *slog.Logger, baseDir string) *TgArchivedHTMLParser

func (*TgArchivedHTMLParser) ParseFile

func (p *TgArchivedHTMLParser) ParseFile(filename string, messagesChan chan<- models.Message) error

type TgService

type TgService struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(log *slog.Logger, conf *config.SystemConfig) *TgService

func (*TgService) ParseArchivedFile

func (s *TgService) ParseArchivedFile(filename string, messagesChan chan<- models.Message) error

Jump to

Keyboard shortcuts

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