master

package
v0.0.0-...-6de39a6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Ok    bool   `json:"ok"`
	Error string `json:"error,omitempty"`
}

type APIResponsePage

type APIResponsePage struct {
	APIResponse
	Result Page `json:"result,omitempty"`
}

type Callback

type Callback struct {
	Category string
	Acction  string
	Query    string
	Page     int
	Data     string
}

Telegram command callback

type ChatInfo

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

type MasterService

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

func NewMasterService

func NewMasterService(config *common.Configure, in <-chan *common.OctopusEvent, out chan<- *common.OctopusEvent) *MasterService

func (*MasterService) Start

func (ms *MasterService) Start()

func (*MasterService) Stop

func (ms *MasterService) Stop()

type Node

type Node any

type NodeElement

type NodeElement struct {
	Tag      string            `json:"tag"`
	Attrs    map[string]string `json:"attrs,omitempty"`
	Children []Node            `json:"children,omitempty"`
}

type Page

type Page struct {
	Path        string `json:"path"`
	URL         string `json:"url"`
	Title       string `json:"title"`
	Description string `json:"description"`
	AuthorName  string `json:"author_name,omitempty"`
	AuthorURL   string `json:"author_url,omitempty"`
	ImageURL    string `json:"image_url,omitempty"`
	Content     []Node `json:"content,omitempty"`
	Views       int    `json:"views"`
	CanEdit     bool   `json:"can_edit,omitempty"`
}

Jump to

Keyboard shortcuts

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