Users makes hba match connections by specific users.
(name string, names ...string)
| 189 | |
| 190 | // Users makes hba match connections by specific users. |
| 191 | func (hba *HostBasedAuthentication) Users(name string, names ...string) *HostBasedAuthentication { |
| 192 | hba.user = hba.quoteUser(name) |
| 193 | for _, n := range names { |
| 194 | hba.user += "," + hba.quoteUser(n) |
| 195 | } |
| 196 | return hba |
| 197 | } |
| 198 | |
| 199 | // String returns hba formatted for the pg_hba.conf file without a newline. |
| 200 | func (hba *HostBasedAuthentication) String() string { |