data

package
v0.0.0-...-60f7d2f Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StateDelete ...
	StateDelete map[int64]*StateDel
	// StateWeekdays ...
	StateWeekdays map[int64]*StateWd
	// StateTime ...
	StateTime map[int64]*StateTm
	// StateDate ...
	StateDate map[int64]*StateDt
	// TimeFormat convert timeformat to int
	TimeFormat = map[string]int{
		"12_hour_clock": 12,
		"24_hour_clock": 24,
	}
	//StartHideMessage ...
	StartHideMessage map[int64]int
	//DeleteTasksMap ...
	DeleteTasksMap map[int64][]Task
	// UserDataMap ...
	UserDataMap map[int64]*UserData
	// TasksMap ...
	TasksMap map[int64]*Task
	// Bot ...
	Bot *tgbotapi.BotAPI
	// Err ...
	Err error
)
View Source
var IntWeekday = map[time.Weekday]int{
	time.Monday:    0,
	time.Tuesday:   1,
	time.Wednesday: 2,
	time.Thursday:  3,
	time.Friday:    4,
	time.Saturday:  5,
	time.Sunday:    6,
}

IntWeekday ...

Functions

This section is empty.

Types

type StateDel

type StateDel struct {
	Selected      map[int]bool
	StartMessage  int
	StatusMessage int
}

StateDel ...

type StateDt

type StateDt struct {
	Time     string
	Month    time.Month
	Selected [2]int
	Year     int
	Day      int
	Status   bool
}

StateDt ...

type StateTm

type StateTm struct {
	Meridiem string
	Hours    int
	Minute   int
	Step     int
}

StateTm ...

type StateWd

type StateWd struct {
	Selected map[string]bool
	Time     string
	Status   bool
}

StateWd ...

type Task

type Task struct {
	ID       int
	TypeTask string
	Text     string
	Date     string
	Time     string
	WeekDay  string
	Priority string
}

Task ...

func (*Task) GetTask

func (task *Task) GetTask(language string) string

GetTask ...

type UserData

type UserData struct {
	Stage      string
	Language   string
	Timezone   string
	TimeFormat int
	Registered bool
}

UserData ...

Jump to

Keyboard shortcuts

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