models

package
v0.0.0-...-4284221 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SshAuthTypePrivateKey = iota
	SshAuthTypePassword
)

Variables

View Source
var MysqlDb *gorm.DB
View Source
var RedisDb *redis.Client

redis client

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id        uint `gorm:"primary_key"`
	AgentName string
	Phone     string
	ParentId  int
}

func GetAllAgents

func GetAllAgents() (agents []Agent)

func (Agent) TableName

func (Agent) TableName() string

type MongoConnectionModel

type MongoConnectionModel struct {
	ConnectionName string

	Address       string
	Port          string
	UserName      string
	Password      string
	DefaultDbName string

	SshTunnelModel
}

func (*MongoConnectionModel) ConnectionString

func (m *MongoConnectionModel) ConnectionString() string

type SshTunnelModel

type SshTunnelModel struct {
	IsUseSshTunnel          bool
	SshAddress              string
	SshPort                 string
	SshUserName             string
	SshAuthType             int
	SshPrivateKey           string
	SshPrivateKeyPassphrase string
}

Jump to

Keyboard shortcuts

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