model

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Update

type Update struct {
	ID     int       `json:"id" db:"id"`
	UserID int       `json:"user_id" db:"user_id"`
	Text   string    `json:"text" db:"text"`
	Time   time.Time `json:"time" db:"time"`
}

func TestUpdate

func TestUpdate(t *testing.T) *Update

TestUpdate returns example of valid Update entity.

type User

type User struct {
	ID           int     `json:"id" db:"id"`
	FirstName    string  `json:"first_name" db:"first_name"`
	LastName     *string `json:"last_name" db:"last_name"`
	UserName     *string `json:"username" db:"username"`
	LanguageCode *string `json:"language_code" db:"language_code"`
}

User represents bot user entity.

func TestUser

func TestUser(t *testing.T) *User

TestUser returns example of valid User entity.

Jump to

Keyboard shortcuts

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