types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Token  string
	DBURI  string `toml:"db_uri"`
	LogsID string `toml:"logs_id"`
}

BotConfig provide struct for bot config

type Config

type Config struct {
	Production bool `toml:"prod"`
	Bot        BotConfig
}

Config provide struct for config of bot

type Task

type Task struct {
	Date   time.Time `json:"date,omitempty"`
	Title  string    `json:"title,omitempty"`
	Done   bool      `json:"done,omitempty"`
	UserID string    `json:"user_id,omitempty" bson:"user_id"`
}

Task provide struct for db type task

Jump to

Keyboard shortcuts

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