Versions in this module Expand all Collapse all v1 v1.6.0 Sep 11, 2024 Changes in this version + func Register(ctx context.Context, conn RegisterConn) error + type DBQuerier struct + func NewQuerier(ctx context.Context, conn genericConn) (*DBQuerier, error) + func (q *DBQuerier) FindServerByIP(ctx context.Context, ipAddress *net.IPNet) (FindServerByIPRow, error) + func (q *DBQuerier) FindServers(ctx context.Context) ([]FindServersRow, error) + func (q *DBQuerier) InsertServer(ctx context.Context, ipAddress *net.IPNet, extraIpAddress *net.IPNet) (int32, error) + type FindServerByIPRow struct + ExtraIpAddress *net.IPNet + ID int32 + IpAddress *net.IPNet + type FindServersRow struct + ExtraIpAddress *net.IPNet + ID *int32 + IpAddress *net.IPNet + type Querier interface + FindServerByIP func(ctx context.Context, ipAddress *net.IPNet) (FindServerByIPRow, error) + FindServers func(ctx context.Context) ([]FindServersRow, error) + InsertServer func(ctx context.Context, ipAddress *net.IPNet, extraIpAddress *net.IPNet) (int32, error) + type RegisterConn interface + LoadType func(ctx context.Context, typeName string) (*pgtype.Type, error) + TypeMap func() *pgtype.Map