Discover Packages
github.com/evgeniy-krivenko/vpn-asynq
internal
entity
package
Version:
v0.0.0-...-9e73b81
Opens a new window with list of versions in this module.
Published: Nov 1, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Connection struct {
Id int `db:"id"`
Location string `db:"location"`
Port uint `db:"port"`
UserId int `db:"user_id"`
EncryptedSecret string `db:"encrypted_secret"`
IpAddress string `db:"ip_address"`
ServerId int `db:"server_id"`
IsActive bool `db:"is_active"`
LastActivate sql .NullTime `db:"last_activate"`
}
type ConnectionPortCount struct {
Port uint `db:"port"`
Count int `db:"count"`
}
type Server struct {
Id int `db:"id"`
IpAddress string `db:"ip_address"`
Location string `db:"location"`
}
type Term struct {
Id int `db:"id"`
OrderNumber int `db:"order_number"`
Text string `db:"text"`
CreatedAt *time .Time `db:"created_at"`
UpdatedAt *time .Time `db:"updated_at"`
}
type User struct {
Id int `db:"id"`
UserId int64 `db:"user_id"`
Username string `db:"username"`
FirstName string `db:"first_name"`
LastName string `db:"last_name"`
ChatId int64 `db:"chat_id"`
ChatType string `db:"chat_type"`
IsConfirmTerms bool `db:"is_terms_confirmed"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.