Discover Packages
github.com/Neraverin/daos
pkg
db
package
Version:
v0.0.0-...-5c60cc2
Opens a new window with list of versions in this module.
Published: Mar 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DBTX interface {
ExecContext(context .Context , string , ...interface{}) (sql .Result , error )
PrepareContext(context .Context , string ) (*sql .Stmt , error )
QueryContext(context .Context , string , ...interface{}) (*sql .Rows , error )
QueryRowContext(context .Context , string , ...interface{}) *sql .Row
}
type Deployment struct {
ID string `json:"id"`
HostID string `json:"host_id"`
RoleID string `json:"role_id"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type Host struct {
ID string `json:"id"`
Name string `json:"name"`
Hostname string `json:"hostname"`
Port int64 `json:"port"`
Username string `json:"username"`
SshKeyPath string `json:"ssh_key_path"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type Log struct {
ID string `json:"id"`
DeploymentID string `json:"deployment_id"`
Timestamp string `json:"timestamp"`
Message string `json:"message"`
}
type Role struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
RolePath string `json:"role_path"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.