Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinKeyLength = 16
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Id string `json:"_id,"` Engine string `json:"engine,omitempty"` Server string `json:"server,omitempty"` User string `json:"user,omitempty"` Password string `json:"password,omitempty"` PasswordMode string `json:"passwordMode,omitempty"` Port string `json:"port,omitempty"` DatabaseUrl string `json:"databaseUrl,omitempty"` UseDatabaseUrl bool `json:"useDatabaseUrl,omitempty"` DatabaseFile string `json:"databaseFile,omitempty"` SocketPath string `json:"socketPath,omitempty"` AuthType string `json:"authType,omitempty"` DefaultDatabase string `json:"defaultDatabase,omitempty"` SingleDatabase bool `json:"singleDatabase,omitempty"` DisplayName string `json:"displayName,omitempty"` IsReadOnly bool `json:"isReadOnly,omitempty"` Databases string `json:"databases,omitempty"` Parent string `json:"parent,omitempty"` UseSshTunnel bool `json:"useSshTunnel,omitempty"` SshHost string `json:"sshHost,omitempty"` SshPort string `json:"sshPort,omitempty"` SshMode string `json:"sshMode,omitempty"` SshLogin string `json:"sshLogin,omitempty"` SshPassword string `json:"sshPassword,omitempty"` SshKeyfile string `json:"sshKeyfile,omitempty"` SshKeyfilePassword string `json:"sshKeyfilePassword,omitempty"` UseSsl bool `json:"useSsl,omitempty"` SslCaFile string `json:"sslCaFile,omitempty"` SslCertFile string `json:"sslCertFile,omitempty"` SslCertFilePassword string `json:"sslCertFilePassword,omitempty"` SslKeyFile string `json:"sslKeyFile,omitempty"` }
func (*Connection) TransferToSave ¶
func (c *Connection) TransferToSave() *Connection
type Encryptor ¶
type Encryptor struct {
// contains filtered or unexported fields
}
func NewEncryptor ¶
type JsonLinesDatabase ¶
type JsonLinesDatabase struct {
// contains filtered or unexported fields
}
func NewConnectionDataStore ¶
func NewConnectionDataStore() *JsonLinesDatabase
func NewJsonLinesDatabase ¶
func NewJsonLinesDatabase(filename string) *JsonLinesDatabase
func (*JsonLinesDatabase) Get ¶
func (db *JsonLinesDatabase) Get(id string) (*Connection, error)
func (*JsonLinesDatabase) Insert ¶
func (db *JsonLinesDatabase) Insert(connection *Connection) error
func (*JsonLinesDatabase) Remove ¶
func (db *JsonLinesDatabase) Remove(id string) error
func (*JsonLinesDatabase) Update ¶
func (db *JsonLinesDatabase) Update(connection *Connection) error
Click to show internal directories.
Click to hide internal directories.