bot

package
v0.0.0-...-75eb559 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Ls       bool
	Serve    bool
	Confpath string
	Credpath string
	Conf     *Conf
	// contains filtered or unexported fields
}

func (*Bot) Init

func (b *Bot) Init() (err error)

func (*Bot) LoadConf

func (b *Bot) LoadConf(fn string) (err error)

func (*Bot) StartTransaction

func (b *Bot) StartTransaction() (tx *transaction.Transaction)

type Conf

type Conf struct {
	Folderid        string
	Docprefix       string
	Template        string
	SessionTemplate string `json:"session_template"`
	CSWGTemplate    string `json:"cswg_template"`
	Url             string
	Listen          string
	MinNextNum      int
}

type Doc

type Doc interface {
	Created() string
	Id() string
	MimeType() string
	Name() string
	Num() int
	URL() string
}

Jump to

Keyboard shortcuts

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