lib

package
v0.0.0-...-094565e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func H

func H(hn string, h func(in *tbot.Message) (ret string, err error))

func Init

func Init() error

func InitBot

func InitBot() error

func InitDB

func InitDB() error

func InitHttp

func InitHttp() error

func Log

func Log(s string, p ...interface{})

func Pub

func Pub(ch string, msg string) (ret string, err error)

Types

type GDB

type GDB struct {
	*gorm.DB
}

func (*GDB) AutoMigrates

func (d *GDB) AutoMigrates(i ...interface{}) error

func (*GDB) FindOrCreate

func (d *GDB) FindOrCreate(c interface{}) error

func (*GDB) Init

func (d *GDB) Init() error

type PubMsg

type PubMsg struct {
	Ch  string `json:"ch"`
	Msg string `json:"msg"`
}

type Session

type Session struct {
	ID     uint
	ChatID string
}

type Sub

type Sub struct {
	ID        uint
	Chan      string
	ChatID    string
	Username  string
	FirstName string
	LastName  string
	JoinnedAt time.Time
}

Jump to

Keyboard shortcuts

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