Discover Packages
github.com/kazhuravlev/database-gateway
internal
config
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 3, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ACL struct {
Op Op `json:"op"`
Target string `json:"target"`
Tbl string `json:"tbl"`
Allow bool `json:"allow"`
}
type Config struct {
Targets []Target `json:"targets"`
Users []User `json:"users"`
}
type Connection struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
DB string `json:"db"`
UseSSL bool `json:"use_ssl"`
MaxPoolSize int `json:"max_pool_size"`
}
const (
OpSelect Op = "select"
OpInsert Op = "insert"
OpUpdate Op = "update"
OpDelete Op = "delete"
)
type TargetTable struct {
Table string `json:"table"`
Fields []string `json:"fields"`
Sensitive []string `json:"sensitive"`
}
type User struct {
Username string `json:"username"`
Password string `json:"password"`
Acls []ACL `json:"acls"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.