model

package
v0.0.0-...-0156842 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Connection is a connection object of the database
	Connection *gorm.DB
	// Address is an address of the databases
	Address string
)

Functions

func Connect

func Connect() (*gorm.DB, error)

Connect to the db based on singleton

Types

type Group

type Group struct {
	Tele int64  `gorm:"column:telegram_id"`
	Name string `gorm:"column:group_name"`
}

Group is

func (Group) TableName

func (Group) TableName() string

TableName is

type Groups

type Groups []Group

Groups is

type Raw

type Raw struct {
	Nik      string `gorm:"column:nik"`
	Name     string `gorm:"column:name"`
	Telegram string `gorm:"column:telegram"`
	TeleID   int64  `gorm:"column:telegram_chat_id"`
}

Raw is

type Raws

type Raws []Raw

Raws is

type Tele

type Tele struct {
	Tele int64  `gorm:"column:telegram"`
	Name string `gorm:"column:name"`
}

Tele is

func (Tele) TableName

func (Tele) TableName() string

TableName is

Jump to

Keyboard shortcuts

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