Documentation ¶
Index ¶
- Constants
- func ClearActiveFromAllTunnels(db *gorm.DB) error
- func CountSupernodes(db *gorm.DB) (int, error)
- func CountTunnels(db *gorm.DB) (int, error)
- func CountUsers(db *gorm.DB) (int, error)
- func DeleteSupernode(db *gorm.DB, id uint) error
- func DeleteTunnel(db *gorm.DB, id uint) error
- func DeleteUser(db *gorm.DB, id uint) error
- func GetNextIP(db *gorm.DB) (string, error)
- func SupernodeIDExists(db *gorm.DB, id uint) (bool, error)
- func TunnelIDExists(db *gorm.DB, id uint) (bool, error)
- func UserExists(db *gorm.DB, user User) (bool, error)
- func UserIDExists(db *gorm.DB, id uint) (bool, error)
- type AppSettings
- type IPs
- type Supernode
- type Tunnel
- type User
- type UsersSeeder
Constants ¶
View Source
const UserSeederRows = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppSettings ¶
type Supernode ¶
type Tunnel ¶
type Tunnel struct { ID uint `json:"id" gorm:"primaryKey"` Hostname string `json:"hostname" binding:"required"` IP string `json:"ip" binding:"required"` Password string `json:"-" binding:"required"` Active bool `json:"active"` TunnelInterface string `json:"-"` RXBytes uint64 `json:"rx_bytes"` TXBytes uint64 `json:"tx_bytes"` TotalRXMB float64 `json:"total_rx_mb"` TotalTXMB float64 `json:"total_tx_mb"` RXBytesPerSec uint64 `json:"rx_bytes_per_sec"` TXBytesPerSec uint64 `json:"tx_bytes_per_sec"` ConnectionTime time.Time `json:"connection_time"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
type User ¶
type UsersSeeder ¶
type UsersSeeder struct { gorm_seeder.SeederAbstract // contains filtered or unexported fields }
func NewUsersSeeder ¶
func NewUsersSeeder(cfg gorm_seeder.SeederConfiguration, config *config.Config) UsersSeeder
Click to show internal directories.
Click to hide internal directories.