processing

package
v0.0.0-...-74e4be9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwaitingTextProcessorData

type AwaitingTextProcessorData struct {
	ProcessorId  string
	AdditionalId string
}

type ProcessData

type ProcessData struct {
	Static  *StaticProccessStructs
	Command string // first part of command without slash(/)
	Message string // parameters of command or plain message
	ChatId  int64
	UserId  int64
}

type StaticConfiguration

type StaticConfiguration struct {
	Language    string
	ExtendedLog bool
}

type StaticProccessStructs

type StaticProccessStructs struct {
	Chat         chat.Chat
	Db           *database.Database
	Timers       map[int64]time.Time
	Config       *StaticConfiguration
	Trans        i18n.TranslateFunc
	MakeDialogFn func(string, int64, *StaticProccessStructs) *dialog.Dialog
	// contains filtered or unexported fields
}

func (*StaticProccessStructs) GetUserStateCurrentPage

func (staticData *StaticProccessStructs) GetUserStateCurrentPage(userId int64) int

func (*StaticProccessStructs) GetUserStateTextProcessor

func (staticData *StaticProccessStructs) GetUserStateTextProcessor(userId int64) *AwaitingTextProcessorData

func (*StaticProccessStructs) Init

func (staticData *StaticProccessStructs) Init()

func (*StaticProccessStructs) SetUserStateCurrentPage

func (staticData *StaticProccessStructs) SetUserStateCurrentPage(userId int64, page int)

func (*StaticProccessStructs) SetUserStateTextProcessor

func (staticData *StaticProccessStructs) SetUserStateTextProcessor(userId int64, proessor *AwaitingTextProcessorData)

type UserState

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

Jump to

Keyboard shortcuts

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