qaparser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Url        string `json:"url"`
	Username   string `json:"username"`
	Text       string `json:"text"`
	AvatarFile string `json:"avatar_file"`
	Role       string `json:"role"`
	Datetime   string `json:"datetime"`
	DataID     string `json:"data_id,omitempty"`
	ParentID   string `json:"parent_id"`
	Type       string `json:"type"`
	Position   int    `json:"position"`
	Chunk      int    `json:"chunk,omitempty"`
}

type FeedType

type FeedType int
const (
	// FeedTypeUnknown represents a feed that could not have its
	// type determiend.
	FeedTypeUnknown FeedType = iota
	// FeedTypeQA представляет Вопрос — Ответ https://xn----8sba0bbi0cdm.xn--p1ai/qa/video
	FeedTypeQA
	// FeedTypeQAQuestion представляет Вопрос — Ответ Список вопросов https://xn----8sba0bbi0cdm.xn--p1ai/qa/question
	FeedTypeQAQuestion
)

func DetectFeedType

func DetectFeedType(link *url.URL) FeedType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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