Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2023 v1.0.0 Dec 2, 2022 Changes in this version + type AnyAddr struct + func (AnyAddr) String() string + type Conf struct + Entries []Entry + func Parse(input string) (*Conf, error) + func ParseAndNormalize(val string) (*Conf, error) + func (c Conf) String() string + type ConnType int + const ConnAny + const ConnHostAny + const ConnHostNoSSL + const ConnHostSSL + const ConnLocal + func ParseConnType(s string) (ConnType, error) + func (t ConnType) String() string + type Entry struct + Address interface{} + ConnType ConnType + Database []String + Generated bool + Input string + Method String + MethodFn interface{} + OptionQuotes []bool + Options [][2]string + User []String + func (h Entry) AddressMatches(addr net.IP) (bool, error) + func (h Entry) AddressString() string + func (h Entry) ConnMatches(clientConn ConnType, ip net.IP) (bool, error) + func (h Entry) ConnTypeMatches(clientConn ConnType) bool + func (h Entry) DatabaseString() string + func (h Entry) Equivalent(other Entry) bool + func (h Entry) GetOption(name string) string + func (h Entry) GetOptions(name string) []string + func (h Entry) OptionsString() string + func (h Entry) String() string + func (h Entry) UserMatches(userName SQLUsername) bool + func (h Entry) UserString() string + type SQLUsername struct + func MakeSQLUsernameFromPreNormalizedString(u string) SQLUsername + func (s SQLUsername) Normalized() string + type String struct + Quoted bool + Value string + func (s String) Empty() bool + func (s String) IsKeyword(v string) bool + func (s String) String() string