models

package
v0.0.0-...-cc45bd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialTransportTCP  = "tcp"
	DialTransportWS   = "ws"
	DialTransportQuic = "quic"
	DialTransportUDP  = "udp"
)

Enum values for dial_transport

View Source
const (
	NetworkTypeIPFS     = "IPFS"
	NetworkTypeFILECOIN = "FILECOIN"
	NetworkTypePOLKADOT = "POLKADOT"
	NetworkTypeKUSAMA   = "KUSAMA"
)

Enum values for network_type

View Source
const (
	PeerStateHEARD       = "HEARD"
	PeerStateWAITING     = "WAITING"
	PeerStateQUERIED     = "QUERIED"
	PeerStateUNREACHABLE = "UNREACHABLE"
)

Enum values for peer_state

View Source
const (
	ProvideTypeSINGLE_QUERY = "SINGLE_QUERY"
	ProvideTypeMULTI_QUERY  = "MULTI_QUERY"
	ProvideTypeESTIMATOR    = "ESTIMATOR"
)

Enum values for provide_type

Variables

View Source
var AddProviderRPCColumns = struct {
	ID              string
	LocalID         string
	RemoteID        string
	Distance        string
	MultiAddressIds string
	StartedAt       string
	EndedAt         string
	Error           string
}{
	ID:              "id",
	LocalID:         "local_id",
	RemoteID:        "remote_id",
	Distance:        "distance",
	MultiAddressIds: "multi_address_ids",
	StartedAt:       "started_at",
	EndedAt:         "ended_at",
	Error:           "error",
}
View Source
var AddProviderRPCRels = struct {
	Local    string
	Remote   string
	Provides string
}{
	Local:    "Local",
	Remote:   "Remote",
	Provides: "Provides",
}

AddProviderRPCRels is where relationship names are stored.

View Source
var AddProviderRPCTableColumns = struct {
	ID              string
	LocalID         string
	RemoteID        string
	Distance        string
	MultiAddressIds string
	StartedAt       string
	EndedAt         string
	Error           string
}{
	ID:              "add_provider_rpcs.id",
	LocalID:         "add_provider_rpcs.local_id",
	RemoteID:        "add_provider_rpcs.remote_id",
	Distance:        "add_provider_rpcs.distance",
	MultiAddressIds: "add_provider_rpcs.multi_address_ids",
	StartedAt:       "add_provider_rpcs.started_at",
	EndedAt:         "add_provider_rpcs.ended_at",
	Error:           "add_provider_rpcs.error",
}
View Source
var AddProviderRPCWhere = struct {
	ID              whereHelperint
	LocalID         whereHelperint
	RemoteID        whereHelperint
	Distance        whereHelper__byte
	MultiAddressIds whereHelpertypes_Int64Array
	StartedAt       whereHelpertime_Time
	EndedAt         whereHelpertime_Time
	Error           whereHelpernull_String
}{
	ID:              whereHelperint{/* contains filtered or unexported fields */},
	LocalID:         whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:        whereHelperint{/* contains filtered or unexported fields */},
	Distance:        whereHelper__byte{/* contains filtered or unexported fields */},
	MultiAddressIds: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	StartedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	Error:           whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var CloserPeerColumns = struct {
	ID                string
	FindNodeRPCID     string
	GetProvidersRPCID string
	PeerID            string
	MultiAddressIds   string
}{
	ID:                "id",
	FindNodeRPCID:     "find_node_rpc_id",
	GetProvidersRPCID: "get_providers_rpc_id",
	PeerID:            "peer_id",
	MultiAddressIds:   "multi_address_ids",
}
View Source
var CloserPeerRels = struct {
	FindNodeRPC     string
	GetProvidersRPC string
	Peer            string
}{
	FindNodeRPC:     "FindNodeRPC",
	GetProvidersRPC: "GetProvidersRPC",
	Peer:            "Peer",
}

CloserPeerRels is where relationship names are stored.

View Source
var CloserPeerTableColumns = struct {
	ID                string
	FindNodeRPCID     string
	GetProvidersRPCID string
	PeerID            string
	MultiAddressIds   string
}{
	ID:                "closer_peers.id",
	FindNodeRPCID:     "closer_peers.find_node_rpc_id",
	GetProvidersRPCID: "closer_peers.get_providers_rpc_id",
	PeerID:            "closer_peers.peer_id",
	MultiAddressIds:   "closer_peers.multi_address_ids",
}
View Source
var CloserPeerWhere = struct {
	ID                whereHelperint
	FindNodeRPCID     whereHelpernull_Int
	GetProvidersRPCID whereHelpernull_Int
	PeerID            whereHelperint
	MultiAddressIds   whereHelpertypes_Int64Array
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	FindNodeRPCID:     whereHelpernull_Int{/* contains filtered or unexported fields */},
	GetProvidersRPCID: whereHelpernull_Int{/* contains filtered or unexported fields */},
	PeerID:            whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressIds:   whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var ConnectionColumns = struct {
	ID             string
	LocalID        string
	RemoteID       string
	MultiAddressID string
	StartedAt      string
	EndedAt        string
}{
	ID:             "id",
	LocalID:        "local_id",
	RemoteID:       "remote_id",
	MultiAddressID: "multi_address_id",
	StartedAt:      "started_at",
	EndedAt:        "ended_at",
}
View Source
var ConnectionRels = struct {
	Local        string
	MultiAddress string
	Remote       string
	Provides     string
	Retrievals   string
}{
	Local:        "Local",
	MultiAddress: "MultiAddress",
	Remote:       "Remote",
	Provides:     "Provides",
	Retrievals:   "Retrievals",
}

ConnectionRels is where relationship names are stored.

View Source
var ConnectionTableColumns = struct {
	ID             string
	LocalID        string
	RemoteID       string
	MultiAddressID string
	StartedAt      string
	EndedAt        string
}{
	ID:             "connections.id",
	LocalID:        "connections.local_id",
	RemoteID:       "connections.remote_id",
	MultiAddressID: "connections.multi_address_id",
	StartedAt:      "connections.started_at",
	EndedAt:        "connections.ended_at",
}
View Source
var ConnectionWhere = struct {
	ID             whereHelperint
	LocalID        whereHelperint
	RemoteID       whereHelperint
	MultiAddressID whereHelperint
	StartedAt      whereHelpertime_Time
	EndedAt        whereHelpertime_Time
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	LocalID:        whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:       whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressID: whereHelperint{/* contains filtered or unexported fields */},
	StartedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var DialColumns = struct {
	ID             string
	LocalID        string
	RemoteID       string
	Transport      string
	MultiAddressID string
	StartedAt      string
	EndedAt        string
	Error          string
}{
	ID:             "id",
	LocalID:        "local_id",
	RemoteID:       "remote_id",
	Transport:      "transport",
	MultiAddressID: "multi_address_id",
	StartedAt:      "started_at",
	EndedAt:        "ended_at",
	Error:          "error",
}
View Source
var DialRels = struct {
	Local        string
	MultiAddress string
	Remote       string
	Provides     string
	Retrievals   string
}{
	Local:        "Local",
	MultiAddress: "MultiAddress",
	Remote:       "Remote",
	Provides:     "Provides",
	Retrievals:   "Retrievals",
}

DialRels is where relationship names are stored.

View Source
var DialTableColumns = struct {
	ID             string
	LocalID        string
	RemoteID       string
	Transport      string
	MultiAddressID string
	StartedAt      string
	EndedAt        string
	Error          string
}{
	ID:             "dials.id",
	LocalID:        "dials.local_id",
	RemoteID:       "dials.remote_id",
	Transport:      "dials.transport",
	MultiAddressID: "dials.multi_address_id",
	StartedAt:      "dials.started_at",
	EndedAt:        "dials.ended_at",
	Error:          "dials.error",
}
View Source
var DialWhere = struct {
	ID             whereHelperint
	LocalID        whereHelperint
	RemoteID       whereHelperint
	Transport      whereHelperstring
	MultiAddressID whereHelperint
	StartedAt      whereHelpertime_Time
	EndedAt        whereHelpertime_Time
	Error          whereHelpernull_String
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	LocalID:        whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:       whereHelperint{/* contains filtered or unexported fields */},
	Transport:      whereHelperstring{/* contains filtered or unexported fields */},
	MultiAddressID: whereHelperint{/* contains filtered or unexported fields */},
	StartedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	Error:          whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var FindNodesRPCColumns = struct {
	ID               string
	QueryID          string
	LocalID          string
	RemoteID         string
	StartedAt        string
	EndedAt          string
	CloserPeersCount string
	Error            string
}{
	ID:               "id",
	QueryID:          "query_id",
	LocalID:          "local_id",
	RemoteID:         "remote_id",
	StartedAt:        "started_at",
	EndedAt:          "ended_at",
	CloserPeersCount: "closer_peers_count",
	Error:            "error",
}
View Source
var FindNodesRPCRels = struct {
	Local                  string
	Remote                 string
	FindNodeRPCCloserPeers string
	Provides               string
}{
	Local:                  "Local",
	Remote:                 "Remote",
	FindNodeRPCCloserPeers: "FindNodeRPCCloserPeers",
	Provides:               "Provides",
}

FindNodesRPCRels is where relationship names are stored.

View Source
var FindNodesRPCTableColumns = struct {
	ID               string
	QueryID          string
	LocalID          string
	RemoteID         string
	StartedAt        string
	EndedAt          string
	CloserPeersCount string
	Error            string
}{
	ID:               "find_nodes_rpcs.id",
	QueryID:          "find_nodes_rpcs.query_id",
	LocalID:          "find_nodes_rpcs.local_id",
	RemoteID:         "find_nodes_rpcs.remote_id",
	StartedAt:        "find_nodes_rpcs.started_at",
	EndedAt:          "find_nodes_rpcs.ended_at",
	CloserPeersCount: "find_nodes_rpcs.closer_peers_count",
	Error:            "find_nodes_rpcs.error",
}
View Source
var FindNodesRPCWhere = struct {
	ID               whereHelperint
	QueryID          whereHelperstring
	LocalID          whereHelperint
	RemoteID         whereHelperint
	StartedAt        whereHelpertime_Time
	EndedAt          whereHelpertime_Time
	CloserPeersCount whereHelpernull_Int
	Error            whereHelpernull_String
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	QueryID:          whereHelperstring{/* contains filtered or unexported fields */},
	LocalID:          whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:         whereHelperint{/* contains filtered or unexported fields */},
	StartedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	CloserPeersCount: whereHelpernull_Int{/* contains filtered or unexported fields */},
	Error:            whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var GetProvidersRPCColumns = struct {
	ID                 string
	QueryID            string
	LocalID            string
	RemoteID           string
	StartedAt          string
	EndedAt            string
	ProviderPeersCount string
	Error              string
}{
	ID:                 "id",
	QueryID:            "query_id",
	LocalID:            "local_id",
	RemoteID:           "remote_id",
	StartedAt:          "started_at",
	EndedAt:            "ended_at",
	ProviderPeersCount: "provider_peers_count",
	Error:              "error",
}
View Source
var GetProvidersRPCRels = struct {
	Local         string
	Remote        string
	CloserPeers   string
	ProviderPeers string
	Retrievals    string
}{
	Local:         "Local",
	Remote:        "Remote",
	CloserPeers:   "CloserPeers",
	ProviderPeers: "ProviderPeers",
	Retrievals:    "Retrievals",
}

GetProvidersRPCRels is where relationship names are stored.

View Source
var GetProvidersRPCTableColumns = struct {
	ID                 string
	QueryID            string
	LocalID            string
	RemoteID           string
	StartedAt          string
	EndedAt            string
	ProviderPeersCount string
	Error              string
}{
	ID:                 "get_providers_rpcs.id",
	QueryID:            "get_providers_rpcs.query_id",
	LocalID:            "get_providers_rpcs.local_id",
	RemoteID:           "get_providers_rpcs.remote_id",
	StartedAt:          "get_providers_rpcs.started_at",
	EndedAt:            "get_providers_rpcs.ended_at",
	ProviderPeersCount: "get_providers_rpcs.provider_peers_count",
	Error:              "get_providers_rpcs.error",
}
View Source
var GetProvidersRPCWhere = struct {
	ID                 whereHelperint
	QueryID            whereHelpernull_String
	LocalID            whereHelperint
	RemoteID           whereHelperint
	StartedAt          whereHelpertime_Time
	EndedAt            whereHelpertime_Time
	ProviderPeersCount whereHelpernull_Int
	Error              whereHelpernull_String
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	QueryID:            whereHelpernull_String{/* contains filtered or unexported fields */},
	LocalID:            whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:           whereHelperint{/* contains filtered or unexported fields */},
	StartedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
	ProviderPeersCount: whereHelpernull_Int{/* contains filtered or unexported fields */},
	Error:              whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var HostColumns = struct {
	ID         string
	PeerID     string
	Name       string
	PrivateKey string
	CreatedAt  string
	UpdatedAt  string
	ArchivedAt string
	Network    string
}{
	ID:         "id",
	PeerID:     "peer_id",
	Name:       "name",
	PrivateKey: "private_key",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
	ArchivedAt: "archived_at",
	Network:    "network",
}
View Source
var HostRels = struct {
	Peer                 string
	NetworkSizeEstimates string
}{
	Peer:                 "Peer",
	NetworkSizeEstimates: "NetworkSizeEstimates",
}

HostRels is where relationship names are stored.

View Source
var HostTableColumns = struct {
	ID         string
	PeerID     string
	Name       string
	PrivateKey string
	CreatedAt  string
	UpdatedAt  string
	ArchivedAt string
	Network    string
}{
	ID:         "hosts.id",
	PeerID:     "hosts.peer_id",
	Name:       "hosts.name",
	PrivateKey: "hosts.private_key",
	CreatedAt:  "hosts.created_at",
	UpdatedAt:  "hosts.updated_at",
	ArchivedAt: "hosts.archived_at",
	Network:    "hosts.network",
}
View Source
var HostWhere = struct {
	ID         whereHelperint
	PeerID     whereHelperint
	Name       whereHelperstring
	PrivateKey whereHelper__byte
	CreatedAt  whereHelpertime_Time
	UpdatedAt  whereHelpertime_Time
	ArchivedAt whereHelpernull_Time
	Network    whereHelperstring
}{
	ID:         whereHelperint{/* contains filtered or unexported fields */},
	PeerID:     whereHelperint{/* contains filtered or unexported fields */},
	Name:       whereHelperstring{/* contains filtered or unexported fields */},
	PrivateKey: whereHelper__byte{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	ArchivedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Network:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var IPAddressColumns = struct {
	ID        string
	Address   string
	Country   string
	Continent string
	Asn       string
	IsPublic  string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "id",
	Address:   "address",
	Country:   "country",
	Continent: "continent",
	Asn:       "asn",
	IsPublic:  "is_public",
	UpdatedAt: "updated_at",
	CreatedAt: "created_at",
}
View Source
var IPAddressRels = struct {
	MultiAddresses string
}{
	MultiAddresses: "MultiAddresses",
}

IPAddressRels is where relationship names are stored.

View Source
var IPAddressTableColumns = struct {
	ID        string
	Address   string
	Country   string
	Continent string
	Asn       string
	IsPublic  string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "ip_addresses.id",
	Address:   "ip_addresses.address",
	Country:   "ip_addresses.country",
	Continent: "ip_addresses.continent",
	Asn:       "ip_addresses.asn",
	IsPublic:  "ip_addresses.is_public",
	UpdatedAt: "ip_addresses.updated_at",
	CreatedAt: "ip_addresses.created_at",
}
View Source
var IPAddressWhere = struct {
	ID        whereHelperint
	Address   whereHelperstring
	Country   whereHelpernull_String
	Continent whereHelpernull_String
	Asn       whereHelpernull_Int
	IsPublic  whereHelperbool
	UpdatedAt whereHelpertime_Time
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Address:   whereHelperstring{/* contains filtered or unexported fields */},
	Country:   whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent: whereHelpernull_String{/* contains filtered or unexported fields */},
	Asn:       whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsPublic:  whereHelperbool{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MeasurementColumns = struct {
	ID            string
	HostID        string
	StartedAt     string
	EndedAt       string
	Configuration string
	UpdatedAt     string
	CreatedAt     string
}{
	ID:            "id",
	HostID:        "host_id",
	StartedAt:     "started_at",
	EndedAt:       "ended_at",
	Configuration: "configuration",
	UpdatedAt:     "updated_at",
	CreatedAt:     "created_at",
}
View Source
var MeasurementRels = struct {
	Host     string
	Provides string
}{
	Host:     "Host",
	Provides: "Provides",
}

MeasurementRels is where relationship names are stored.

View Source
var MeasurementTableColumns = struct {
	ID            string
	HostID        string
	StartedAt     string
	EndedAt       string
	Configuration string
	UpdatedAt     string
	CreatedAt     string
}{
	ID:            "measurements.id",
	HostID:        "measurements.host_id",
	StartedAt:     "measurements.started_at",
	EndedAt:       "measurements.ended_at",
	Configuration: "measurements.configuration",
	UpdatedAt:     "measurements.updated_at",
	CreatedAt:     "measurements.created_at",
}
View Source
var MeasurementWhere = struct {
	ID            whereHelperint
	HostID        whereHelperint
	StartedAt     whereHelpertime_Time
	EndedAt       whereHelpernull_Time
	Configuration whereHelpertypes_JSON
	UpdatedAt     whereHelpertime_Time
	CreatedAt     whereHelpertime_Time
}{
	ID:            whereHelperint{/* contains filtered or unexported fields */},
	HostID:        whereHelperint{/* contains filtered or unexported fields */},
	StartedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	Configuration: whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MultiAddressColumns = struct {
	ID             string
	Maddr          string
	Country        string
	Continent      string
	Asn            string
	IsPublic       string
	IPAddressCount string
	UpdatedAt      string
	CreatedAt      string
}{
	ID:             "id",
	Maddr:          "maddr",
	Country:        "country",
	Continent:      "continent",
	Asn:            "asn",
	IsPublic:       "is_public",
	IPAddressCount: "ip_address_count",
	UpdatedAt:      "updated_at",
	CreatedAt:      "created_at",
}
View Source
var MultiAddressRels = struct {
	Connections string
	Dials       string
	IPAddresses string
}{
	Connections: "Connections",
	Dials:       "Dials",
	IPAddresses: "IPAddresses",
}

MultiAddressRels is where relationship names are stored.

View Source
var MultiAddressTableColumns = struct {
	ID             string
	Maddr          string
	Country        string
	Continent      string
	Asn            string
	IsPublic       string
	IPAddressCount string
	UpdatedAt      string
	CreatedAt      string
}{
	ID:             "multi_addresses.id",
	Maddr:          "multi_addresses.maddr",
	Country:        "multi_addresses.country",
	Continent:      "multi_addresses.continent",
	Asn:            "multi_addresses.asn",
	IsPublic:       "multi_addresses.is_public",
	IPAddressCount: "multi_addresses.ip_address_count",
	UpdatedAt:      "multi_addresses.updated_at",
	CreatedAt:      "multi_addresses.created_at",
}
View Source
var MultiAddressWhere = struct {
	ID             whereHelperint
	Maddr          whereHelperstring
	Country        whereHelpernull_String
	Continent      whereHelpernull_String
	Asn            whereHelpernull_Int
	IsPublic       whereHelpernull_Bool
	IPAddressCount whereHelpernull_Int
	UpdatedAt      whereHelpertime_Time
	CreatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	Maddr:          whereHelperstring{/* contains filtered or unexported fields */},
	Country:        whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Asn:            whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsPublic:       whereHelpernull_Bool{/* contains filtered or unexported fields */},
	IPAddressCount: whereHelpernull_Int{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var NetworkSizeEstimateColumns = struct {
	ID             string
	HostID         string
	NetworkSize    string
	NetworkSizeErr string
	RSquared       string
	SampleSize     string
	CreatedAt      string
	CPL            string
	Distances      string
	Key            string
}{
	ID:             "id",
	HostID:         "host_id",
	NetworkSize:    "network_size",
	NetworkSizeErr: "network_size_err",
	RSquared:       "r_squared",
	SampleSize:     "sample_size",
	CreatedAt:      "created_at",
	CPL:            "cpl",
	Distances:      "distances",
	Key:            "key",
}
View Source
var NetworkSizeEstimateRels = struct {
	Host string
}{
	Host: "Host",
}

NetworkSizeEstimateRels is where relationship names are stored.

View Source
var NetworkSizeEstimateTableColumns = struct {
	ID             string
	HostID         string
	NetworkSize    string
	NetworkSizeErr string
	RSquared       string
	SampleSize     string
	CreatedAt      string
	CPL            string
	Distances      string
	Key            string
}{
	ID:             "network_size_estimates.id",
	HostID:         "network_size_estimates.host_id",
	NetworkSize:    "network_size_estimates.network_size",
	NetworkSizeErr: "network_size_estimates.network_size_err",
	RSquared:       "network_size_estimates.r_squared",
	SampleSize:     "network_size_estimates.sample_size",
	CreatedAt:      "network_size_estimates.created_at",
	CPL:            "network_size_estimates.cpl",
	Distances:      "network_size_estimates.distances",
	Key:            "network_size_estimates.key",
}
View Source
var NetworkSizeEstimateWhere = struct {
	ID             whereHelperint
	HostID         whereHelperint
	NetworkSize    whereHelperfloat64
	NetworkSizeErr whereHelperfloat64
	RSquared       whereHelperfloat64
	SampleSize     whereHelperint
	CreatedAt      whereHelpertime_Time
	CPL            whereHelperint
	Distances      whereHelpertypes_Float64Array
	Key            whereHelperstring
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	HostID:         whereHelperint{/* contains filtered or unexported fields */},
	NetworkSize:    whereHelperfloat64{/* contains filtered or unexported fields */},
	NetworkSizeErr: whereHelperfloat64{/* contains filtered or unexported fields */},
	RSquared:       whereHelperfloat64{/* contains filtered or unexported fields */},
	SampleSize:     whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	CPL:            whereHelperint{/* contains filtered or unexported fields */},
	Distances:      whereHelpertypes_Float64Array{/* contains filtered or unexported fields */},
	Key:            whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PeerColumns = struct {
	ID           string
	MultiHash    string
	AgentVersion string
	Protocols    string
	UpdatedAt    string
	CreatedAt    string
}{
	ID:           "id",
	MultiHash:    "multi_hash",
	AgentVersion: "agent_version",
	Protocols:    "protocols",
	UpdatedAt:    "updated_at",
	CreatedAt:    "created_at",
}
View Source
var PeerLogColumns = struct {
	ID        string
	PeerID    string
	Field     string
	Old       string
	New       string
	CreatedAt string
}{
	ID:        "id",
	PeerID:    "peer_id",
	Field:     "field",
	Old:       "old",
	New:       "new",
	CreatedAt: "created_at",
}
View Source
var PeerLogRels = struct {
	Peer string
}{
	Peer: "Peer",
}

PeerLogRels is where relationship names are stored.

View Source
var PeerLogTableColumns = struct {
	ID        string
	PeerID    string
	Field     string
	Old       string
	New       string
	CreatedAt string
}{
	ID:        "peer_logs.id",
	PeerID:    "peer_logs.peer_id",
	Field:     "peer_logs.field",
	Old:       "peer_logs.old",
	New:       "peer_logs.new",
	CreatedAt: "peer_logs.created_at",
}
View Source
var PeerLogWhere = struct {
	ID        whereHelperint
	PeerID    whereHelperint
	Field     whereHelperstring
	Old       whereHelperstring
	New       whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	PeerID:    whereHelperint{/* contains filtered or unexported fields */},
	Field:     whereHelperstring{/* contains filtered or unexported fields */},
	Old:       whereHelperstring{/* contains filtered or unexported fields */},
	New:       whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PeerRels = struct {
	LocalAddProviderRPCS   string
	RemoteAddProviderRPCS  string
	CloserPeers            string
	LocalConnections       string
	RemoteConnections      string
	LocalDials             string
	RemoteDials            string
	LocalFindNodesRPCS     string
	RemoteFindNodesRPCS    string
	LocalGetProvidersRPCS  string
	RemoteGetProvidersRPCS string
	Hosts                  string
	HostMeasurements       string
	PeerLogs               string
	PeerStates             string
	ReferrerPeerStates     string
	ProviderProviderPeers  string
	ProviderProvides       string
	RetrieverRetrievals    string
	RoutingTableEntries    string
	RoutingTableSnapshots  string
}{
	LocalAddProviderRPCS:   "LocalAddProviderRPCS",
	RemoteAddProviderRPCS:  "RemoteAddProviderRPCS",
	CloserPeers:            "CloserPeers",
	LocalConnections:       "LocalConnections",
	RemoteConnections:      "RemoteConnections",
	LocalDials:             "LocalDials",
	RemoteDials:            "RemoteDials",
	LocalFindNodesRPCS:     "LocalFindNodesRPCS",
	RemoteFindNodesRPCS:    "RemoteFindNodesRPCS",
	LocalGetProvidersRPCS:  "LocalGetProvidersRPCS",
	RemoteGetProvidersRPCS: "RemoteGetProvidersRPCS",
	Hosts:                  "Hosts",
	HostMeasurements:       "HostMeasurements",
	PeerLogs:               "PeerLogs",
	PeerStates:             "PeerStates",
	ReferrerPeerStates:     "ReferrerPeerStates",
	ProviderProviderPeers:  "ProviderProviderPeers",
	ProviderProvides:       "ProviderProvides",
	RetrieverRetrievals:    "RetrieverRetrievals",
	RoutingTableEntries:    "RoutingTableEntries",
	RoutingTableSnapshots:  "RoutingTableSnapshots",
}

PeerRels is where relationship names are stored.

View Source
var PeerStateColumns = struct {
	ID         string
	QueryID    string
	PeerID     string
	ReferrerID string
	State      string
	Distance   string
}{
	ID:         "id",
	QueryID:    "query_id",
	PeerID:     "peer_id",
	ReferrerID: "referrer_id",
	State:      "state",
	Distance:   "distance",
}
View Source
var PeerStateRels = struct {
	Peer       string
	Referrer   string
	Provides   string
	Retrievals string
}{
	Peer:       "Peer",
	Referrer:   "Referrer",
	Provides:   "Provides",
	Retrievals: "Retrievals",
}

PeerStateRels is where relationship names are stored.

View Source
var PeerStateTableColumns = struct {
	ID         string
	QueryID    string
	PeerID     string
	ReferrerID string
	State      string
	Distance   string
}{
	ID:         "peer_states.id",
	QueryID:    "peer_states.query_id",
	PeerID:     "peer_states.peer_id",
	ReferrerID: "peer_states.referrer_id",
	State:      "peer_states.state",
	Distance:   "peer_states.distance",
}
View Source
var PeerStateWhere = struct {
	ID         whereHelperint
	QueryID    whereHelperstring
	PeerID     whereHelperint
	ReferrerID whereHelperint
	State      whereHelperstring
	Distance   whereHelper__byte
}{
	ID:         whereHelperint{/* contains filtered or unexported fields */},
	QueryID:    whereHelperstring{/* contains filtered or unexported fields */},
	PeerID:     whereHelperint{/* contains filtered or unexported fields */},
	ReferrerID: whereHelperint{/* contains filtered or unexported fields */},
	State:      whereHelperstring{/* contains filtered or unexported fields */},
	Distance:   whereHelper__byte{/* contains filtered or unexported fields */},
}
View Source
var PeerTableColumns = struct {
	ID           string
	MultiHash    string
	AgentVersion string
	Protocols    string
	UpdatedAt    string
	CreatedAt    string
}{
	ID:           "peers.id",
	MultiHash:    "peers.multi_hash",
	AgentVersion: "peers.agent_version",
	Protocols:    "peers.protocols",
	UpdatedAt:    "peers.updated_at",
	CreatedAt:    "peers.created_at",
}
View Source
var PeerWhere = struct {
	ID           whereHelperint
	MultiHash    whereHelperstring
	AgentVersion whereHelpernull_String
	Protocols    whereHelpertypes_StringArray
	UpdatedAt    whereHelpertime_Time
	CreatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint{/* contains filtered or unexported fields */},
	MultiHash:    whereHelperstring{/* contains filtered or unexported fields */},
	AgentVersion: whereHelpernull_String{/* contains filtered or unexported fields */},
	Protocols:    whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ProvideColumns = struct {
	ID                    string
	MeasurementID         string
	ProvideType           string
	ProviderID            string
	ContentID             string
	Distance              string
	InitialRoutingTableID string
	FinalRoutingTableID   string
	StartedAt             string
	EndedAt               string
	Error                 string
	DoneAt                string
	UpdatedAt             string
	CreatedAt             string
}{
	ID:                    "id",
	MeasurementID:         "measurement_id",
	ProvideType:           "provide_type",
	ProviderID:            "provider_id",
	ContentID:             "content_id",
	Distance:              "distance",
	InitialRoutingTableID: "initial_routing_table_id",
	FinalRoutingTableID:   "final_routing_table_id",
	StartedAt:             "started_at",
	EndedAt:               "ended_at",
	Error:                 "error",
	DoneAt:                "done_at",
	UpdatedAt:             "updated_at",
	CreatedAt:             "created_at",
}
View Source
var ProvideRels = struct {
	FinalRoutingTable   string
	InitialRoutingTable string
	Measurement         string
	Provider            string
	AddProviderRPCS     string
	Connections         string
	Dials               string
	FindNodesRPCS       string
	PeerStates          string
}{
	FinalRoutingTable:   "FinalRoutingTable",
	InitialRoutingTable: "InitialRoutingTable",
	Measurement:         "Measurement",
	Provider:            "Provider",
	AddProviderRPCS:     "AddProviderRPCS",
	Connections:         "Connections",
	Dials:               "Dials",
	FindNodesRPCS:       "FindNodesRPCS",
	PeerStates:          "PeerStates",
}

ProvideRels is where relationship names are stored.

View Source
var ProvideTableColumns = struct {
	ID                    string
	MeasurementID         string
	ProvideType           string
	ProviderID            string
	ContentID             string
	Distance              string
	InitialRoutingTableID string
	FinalRoutingTableID   string
	StartedAt             string
	EndedAt               string
	Error                 string
	DoneAt                string
	UpdatedAt             string
	CreatedAt             string
}{
	ID:                    "provides.id",
	MeasurementID:         "provides.measurement_id",
	ProvideType:           "provides.provide_type",
	ProviderID:            "provides.provider_id",
	ContentID:             "provides.content_id",
	Distance:              "provides.distance",
	InitialRoutingTableID: "provides.initial_routing_table_id",
	FinalRoutingTableID:   "provides.final_routing_table_id",
	StartedAt:             "provides.started_at",
	EndedAt:               "provides.ended_at",
	Error:                 "provides.error",
	DoneAt:                "provides.done_at",
	UpdatedAt:             "provides.updated_at",
	CreatedAt:             "provides.created_at",
}
View Source
var ProvideWhere = struct {
	ID                    whereHelperint
	MeasurementID         whereHelpernull_Int
	ProvideType           whereHelperstring
	ProviderID            whereHelperint
	ContentID             whereHelperstring
	Distance              whereHelper__byte
	InitialRoutingTableID whereHelperint
	FinalRoutingTableID   whereHelpernull_Int
	StartedAt             whereHelpertime_Time
	EndedAt               whereHelpernull_Time
	Error                 whereHelpernull_String
	DoneAt                whereHelpernull_Time
	UpdatedAt             whereHelpertime_Time
	CreatedAt             whereHelpertime_Time
}{
	ID:                    whereHelperint{/* contains filtered or unexported fields */},
	MeasurementID:         whereHelpernull_Int{/* contains filtered or unexported fields */},
	ProvideType:           whereHelperstring{/* contains filtered or unexported fields */},
	ProviderID:            whereHelperint{/* contains filtered or unexported fields */},
	ContentID:             whereHelperstring{/* contains filtered or unexported fields */},
	Distance:              whereHelper__byte{/* contains filtered or unexported fields */},
	InitialRoutingTableID: whereHelperint{/* contains filtered or unexported fields */},
	FinalRoutingTableID:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	StartedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:               whereHelpernull_Time{/* contains filtered or unexported fields */},
	Error:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	DoneAt:                whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ProviderPeerColumns = struct {
	ID                string
	GetProvidersRPCID string
	ProviderID        string
	MultiAddressIds   string
}{
	ID:                "id",
	GetProvidersRPCID: "get_providers_rpc_id",
	ProviderID:        "provider_id",
	MultiAddressIds:   "multi_address_ids",
}
View Source
var ProviderPeerRels = struct {
	GetProvidersRPC string
	Provider        string
}{
	GetProvidersRPC: "GetProvidersRPC",
	Provider:        "Provider",
}

ProviderPeerRels is where relationship names are stored.

View Source
var ProviderPeerTableColumns = struct {
	ID                string
	GetProvidersRPCID string
	ProviderID        string
	MultiAddressIds   string
}{
	ID:                "provider_peers.id",
	GetProvidersRPCID: "provider_peers.get_providers_rpc_id",
	ProviderID:        "provider_peers.provider_id",
	MultiAddressIds:   "provider_peers.multi_address_ids",
}
View Source
var ProviderPeerWhere = struct {
	ID                whereHelperint
	GetProvidersRPCID whereHelperint
	ProviderID        whereHelperint
	MultiAddressIds   whereHelpertypes_Int64Array
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	GetProvidersRPCID: whereHelperint{/* contains filtered or unexported fields */},
	ProviderID:        whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressIds:   whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var RetrievalColumns = struct {
	ID                    string
	RetrieverID           string
	ContentID             string
	Distance              string
	InitialRoutingTableID string
	FinalRoutingTableID   string
	StartedAt             string
	EndedAt               string
	Error                 string
	DoneAt                string
	UpdatedAt             string
	CreatedAt             string
}{
	ID:                    "id",
	RetrieverID:           "retriever_id",
	ContentID:             "content_id",
	Distance:              "distance",
	InitialRoutingTableID: "initial_routing_table_id",
	FinalRoutingTableID:   "final_routing_table_id",
	StartedAt:             "started_at",
	EndedAt:               "ended_at",
	Error:                 "error",
	DoneAt:                "done_at",
	UpdatedAt:             "updated_at",
	CreatedAt:             "created_at",
}
View Source
var RetrievalRels = struct {
	FinalRoutingTable   string
	InitialRoutingTable string
	Retriever           string
	Connections         string
	Dials               string
	GetProvidersRPCS    string
	PeerStates          string
}{
	FinalRoutingTable:   "FinalRoutingTable",
	InitialRoutingTable: "InitialRoutingTable",
	Retriever:           "Retriever",
	Connections:         "Connections",
	Dials:               "Dials",
	GetProvidersRPCS:    "GetProvidersRPCS",
	PeerStates:          "PeerStates",
}

RetrievalRels is where relationship names are stored.

View Source
var RetrievalTableColumns = struct {
	ID                    string
	RetrieverID           string
	ContentID             string
	Distance              string
	InitialRoutingTableID string
	FinalRoutingTableID   string
	StartedAt             string
	EndedAt               string
	Error                 string
	DoneAt                string
	UpdatedAt             string
	CreatedAt             string
}{
	ID:                    "retrievals.id",
	RetrieverID:           "retrievals.retriever_id",
	ContentID:             "retrievals.content_id",
	Distance:              "retrievals.distance",
	InitialRoutingTableID: "retrievals.initial_routing_table_id",
	FinalRoutingTableID:   "retrievals.final_routing_table_id",
	StartedAt:             "retrievals.started_at",
	EndedAt:               "retrievals.ended_at",
	Error:                 "retrievals.error",
	DoneAt:                "retrievals.done_at",
	UpdatedAt:             "retrievals.updated_at",
	CreatedAt:             "retrievals.created_at",
}
View Source
var RetrievalWhere = struct {
	ID                    whereHelperint
	RetrieverID           whereHelperint
	ContentID             whereHelperstring
	Distance              whereHelper__byte
	InitialRoutingTableID whereHelperint
	FinalRoutingTableID   whereHelpernull_Int
	StartedAt             whereHelpertime_Time
	EndedAt               whereHelpernull_Time
	Error                 whereHelpernull_String
	DoneAt                whereHelpernull_Time
	UpdatedAt             whereHelpertime_Time
	CreatedAt             whereHelpertime_Time
}{
	ID:                    whereHelperint{/* contains filtered or unexported fields */},
	RetrieverID:           whereHelperint{/* contains filtered or unexported fields */},
	ContentID:             whereHelperstring{/* contains filtered or unexported fields */},
	Distance:              whereHelper__byte{/* contains filtered or unexported fields */},
	InitialRoutingTableID: whereHelperint{/* contains filtered or unexported fields */},
	FinalRoutingTableID:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	StartedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	EndedAt:               whereHelpernull_Time{/* contains filtered or unexported fields */},
	Error:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	DoneAt:                whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RoutingTableEntryColumns = struct {
	RoutingTableSnapshotID        string
	PeerID                        string
	Bucket                        string
	LastUsefulAt                  string
	LastSuccessfulOutboundQueryAt string
	AddedAt                       string
	ConnectedSince                string
}{
	RoutingTableSnapshotID:        "routing_table_snapshot_id",
	PeerID:                        "peer_id",
	Bucket:                        "bucket",
	LastUsefulAt:                  "last_useful_at",
	LastSuccessfulOutboundQueryAt: "last_successful_outbound_query_at",
	AddedAt:                       "added_at",
	ConnectedSince:                "connected_since",
}
View Source
var RoutingTableEntryRels = struct {
	Peer                 string
	RoutingTableSnapshot string
}{
	Peer:                 "Peer",
	RoutingTableSnapshot: "RoutingTableSnapshot",
}

RoutingTableEntryRels is where relationship names are stored.

View Source
var RoutingTableEntryTableColumns = struct {
	RoutingTableSnapshotID        string
	PeerID                        string
	Bucket                        string
	LastUsefulAt                  string
	LastSuccessfulOutboundQueryAt string
	AddedAt                       string
	ConnectedSince                string
}{
	RoutingTableSnapshotID:        "routing_table_entries.routing_table_snapshot_id",
	PeerID:                        "routing_table_entries.peer_id",
	Bucket:                        "routing_table_entries.bucket",
	LastUsefulAt:                  "routing_table_entries.last_useful_at",
	LastSuccessfulOutboundQueryAt: "routing_table_entries.last_successful_outbound_query_at",
	AddedAt:                       "routing_table_entries.added_at",
	ConnectedSince:                "routing_table_entries.connected_since",
}
View Source
var RoutingTableEntryWhere = struct {
	RoutingTableSnapshotID        whereHelperint
	PeerID                        whereHelperint
	Bucket                        whereHelperint16
	LastUsefulAt                  whereHelpernull_Time
	LastSuccessfulOutboundQueryAt whereHelpertime_Time
	AddedAt                       whereHelpertime_Time
	ConnectedSince                whereHelpernull_Time
}{
	RoutingTableSnapshotID:        whereHelperint{/* contains filtered or unexported fields */},
	PeerID:                        whereHelperint{/* contains filtered or unexported fields */},
	Bucket:                        whereHelperint16{/* contains filtered or unexported fields */},
	LastUsefulAt:                  whereHelpernull_Time{/* contains filtered or unexported fields */},
	LastSuccessfulOutboundQueryAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	AddedAt:                       whereHelpertime_Time{/* contains filtered or unexported fields */},
	ConnectedSince:                whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var RoutingTableSnapshotColumns = struct {
	ID         string
	PeerID     string
	BucketSize string
	EntryCount string
	CreatedAt  string
}{
	ID:         "id",
	PeerID:     "peer_id",
	BucketSize: "bucket_size",
	EntryCount: "entry_count",
	CreatedAt:  "created_at",
}
View Source
var RoutingTableSnapshotRels = struct {
	Peer                          string
	FinalRoutingTableProvides     string
	InitialRoutingTableProvides   string
	FinalRoutingTableRetrievals   string
	InitialRoutingTableRetrievals string
	RoutingTableEntries           string
}{
	Peer:                          "Peer",
	FinalRoutingTableProvides:     "FinalRoutingTableProvides",
	InitialRoutingTableProvides:   "InitialRoutingTableProvides",
	FinalRoutingTableRetrievals:   "FinalRoutingTableRetrievals",
	InitialRoutingTableRetrievals: "InitialRoutingTableRetrievals",
	RoutingTableEntries:           "RoutingTableEntries",
}

RoutingTableSnapshotRels is where relationship names are stored.

View Source
var RoutingTableSnapshotTableColumns = struct {
	ID         string
	PeerID     string
	BucketSize string
	EntryCount string
	CreatedAt  string
}{
	ID:         "routing_table_snapshots.id",
	PeerID:     "routing_table_snapshots.peer_id",
	BucketSize: "routing_table_snapshots.bucket_size",
	EntryCount: "routing_table_snapshots.entry_count",
	CreatedAt:  "routing_table_snapshots.created_at",
}
View Source
var RoutingTableSnapshotWhere = struct {
	ID         whereHelperint
	PeerID     whereHelperint
	BucketSize whereHelperint
	EntryCount whereHelperint
	CreatedAt  whereHelpertime_Time
}{
	ID:         whereHelperint{/* contains filtered or unexported fields */},
	PeerID:     whereHelperint{/* contains filtered or unexported fields */},
	BucketSize: whereHelperint{/* contains filtered or unexported fields */},
	EntryCount: whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AddProviderRPCS             string
	CloserPeers                 string
	Connections                 string
	Dials                       string
	FindNodesRPCS               string
	GetProvidersRPCS            string
	Hosts                       string
	IPAddresses                 string
	Measurements                string
	MultiAddresses              string
	MultiAddressesXIPAddresses  string
	NetworkSizeEstimates        string
	PeerLogs                    string
	PeerStates                  string
	Peers                       string
	ProviderPeers               string
	Provides                    string
	ProvidesXAddProviderRPCS    string
	ProvidesXConnections        string
	ProvidesXDials              string
	ProvidesXFindNodesRPCS      string
	ProvidesXPeerStates         string
	Retrievals                  string
	RetrievalsXConnections      string
	RetrievalsXDials            string
	RetrievalsXGetProvidersRPCS string
	RetrievalsXPeerStates       string
	RoutingTableEntries         string
	RoutingTableSnapshots       string
}{
	AddProviderRPCS:             "add_provider_rpcs",
	CloserPeers:                 "closer_peers",
	Connections:                 "connections",
	Dials:                       "dials",
	FindNodesRPCS:               "find_nodes_rpcs",
	GetProvidersRPCS:            "get_providers_rpcs",
	Hosts:                       "hosts",
	IPAddresses:                 "ip_addresses",
	Measurements:                "measurements",
	MultiAddresses:              "multi_addresses",
	MultiAddressesXIPAddresses:  "multi_addresses_x_ip_addresses",
	NetworkSizeEstimates:        "network_size_estimates",
	PeerLogs:                    "peer_logs",
	PeerStates:                  "peer_states",
	Peers:                       "peers",
	ProviderPeers:               "provider_peers",
	Provides:                    "provides",
	ProvidesXAddProviderRPCS:    "provides_x_add_provider_rpcs",
	ProvidesXConnections:        "provides_x_connections",
	ProvidesXDials:              "provides_x_dials",
	ProvidesXFindNodesRPCS:      "provides_x_find_nodes_rpcs",
	ProvidesXPeerStates:         "provides_x_peer_states",
	Retrievals:                  "retrievals",
	RetrievalsXConnections:      "retrievals_x_connections",
	RetrievalsXDials:            "retrievals_x_dials",
	RetrievalsXGetProvidersRPCS: "retrievals_x_get_providers_rpcs",
	RetrievalsXPeerStates:       "retrievals_x_peer_states",
	RoutingTableEntries:         "routing_table_entries",
	RoutingTableSnapshots:       "routing_table_snapshots",
}

Functions

func AddAddProviderRPCHook

func AddAddProviderRPCHook(hookPoint boil.HookPoint, addProviderRPCHook AddProviderRPCHook)

AddAddProviderRPCHook registers your hook function for all future operations.

func AddCloserPeerHook

func AddCloserPeerHook(hookPoint boil.HookPoint, closerPeerHook CloserPeerHook)

AddCloserPeerHook registers your hook function for all future operations.

func AddConnectionHook

func AddConnectionHook(hookPoint boil.HookPoint, connectionHook ConnectionHook)

AddConnectionHook registers your hook function for all future operations.

func AddDialHook

func AddDialHook(hookPoint boil.HookPoint, dialHook DialHook)

AddDialHook registers your hook function for all future operations.

func AddFindNodesRPCHook

func AddFindNodesRPCHook(hookPoint boil.HookPoint, findNodesRPCHook FindNodesRPCHook)

AddFindNodesRPCHook registers your hook function for all future operations.

func AddGetProvidersRPCHook

func AddGetProvidersRPCHook(hookPoint boil.HookPoint, getProvidersRPCHook GetProvidersRPCHook)

AddGetProvidersRPCHook registers your hook function for all future operations.

func AddHostHook

func AddHostHook(hookPoint boil.HookPoint, hostHook HostHook)

AddHostHook registers your hook function for all future operations.

func AddIPAddressHook

func AddIPAddressHook(hookPoint boil.HookPoint, ipAddressHook IPAddressHook)

AddIPAddressHook registers your hook function for all future operations.

func AddMeasurementHook

func AddMeasurementHook(hookPoint boil.HookPoint, measurementHook MeasurementHook)

AddMeasurementHook registers your hook function for all future operations.

func AddMultiAddressHook

func AddMultiAddressHook(hookPoint boil.HookPoint, multiAddressHook MultiAddressHook)

AddMultiAddressHook registers your hook function for all future operations.

func AddNetworkSizeEstimateHook

func AddNetworkSizeEstimateHook(hookPoint boil.HookPoint, networkSizeEstimateHook NetworkSizeEstimateHook)

AddNetworkSizeEstimateHook registers your hook function for all future operations.

func AddPeerHook

func AddPeerHook(hookPoint boil.HookPoint, peerHook PeerHook)

AddPeerHook registers your hook function for all future operations.

func AddPeerLogHook

func AddPeerLogHook(hookPoint boil.HookPoint, peerLogHook PeerLogHook)

AddPeerLogHook registers your hook function for all future operations.

func AddPeerStateHook

func AddPeerStateHook(hookPoint boil.HookPoint, peerStateHook PeerStateHook)

AddPeerStateHook registers your hook function for all future operations.

func AddProvideHook

func AddProvideHook(hookPoint boil.HookPoint, provideHook ProvideHook)

AddProvideHook registers your hook function for all future operations.

func AddProviderPeerHook

func AddProviderPeerHook(hookPoint boil.HookPoint, providerPeerHook ProviderPeerHook)

AddProviderPeerHook registers your hook function for all future operations.

func AddProviderRPCExists

func AddProviderRPCExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

AddProviderRPCExists checks if the AddProviderRPC row exists.

func AddProviderRPCS

func AddProviderRPCS(mods ...qm.QueryMod) addProviderRPCQuery

AddProviderRPCS retrieves all the records using an executor.

func AddRetrievalHook

func AddRetrievalHook(hookPoint boil.HookPoint, retrievalHook RetrievalHook)

AddRetrievalHook registers your hook function for all future operations.

func AddRoutingTableEntryHook

func AddRoutingTableEntryHook(hookPoint boil.HookPoint, routingTableEntryHook RoutingTableEntryHook)

AddRoutingTableEntryHook registers your hook function for all future operations.

func AddRoutingTableSnapshotHook

func AddRoutingTableSnapshotHook(hookPoint boil.HookPoint, routingTableSnapshotHook RoutingTableSnapshotHook)

AddRoutingTableSnapshotHook registers your hook function for all future operations.

func CloserPeerExists

func CloserPeerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

CloserPeerExists checks if the CloserPeer row exists.

func CloserPeers

func CloserPeers(mods ...qm.QueryMod) closerPeerQuery

CloserPeers retrieves all the records using an executor.

func ConnectionExists

func ConnectionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ConnectionExists checks if the Connection row exists.

func Connections

func Connections(mods ...qm.QueryMod) connectionQuery

Connections retrieves all the records using an executor.

func DialExists

func DialExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

DialExists checks if the Dial row exists.

func Dials

func Dials(mods ...qm.QueryMod) dialQuery

Dials retrieves all the records using an executor.

func FindNodesRPCExists

func FindNodesRPCExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

FindNodesRPCExists checks if the FindNodesRPC row exists.

func FindNodesRPCS

func FindNodesRPCS(mods ...qm.QueryMod) findNodesRPCQuery

FindNodesRPCS retrieves all the records using an executor.

func GetProvidersRPCExists

func GetProvidersRPCExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

GetProvidersRPCExists checks if the GetProvidersRPC row exists.

func GetProvidersRPCS

func GetProvidersRPCS(mods ...qm.QueryMod) getProvidersRPCQuery

GetProvidersRPCS retrieves all the records using an executor.

func HostExists

func HostExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

HostExists checks if the Host row exists.

func Hosts

func Hosts(mods ...qm.QueryMod) hostQuery

Hosts retrieves all the records using an executor.

func IPAddressExists

func IPAddressExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

IPAddressExists checks if the IPAddress row exists.

func IPAddresses

func IPAddresses(mods ...qm.QueryMod) ipAddressQuery

IPAddresses retrieves all the records using an executor.

func MeasurementExists

func MeasurementExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

MeasurementExists checks if the Measurement row exists.

func Measurements

func Measurements(mods ...qm.QueryMod) measurementQuery

Measurements retrieves all the records using an executor.

func MultiAddressExists

func MultiAddressExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

MultiAddressExists checks if the MultiAddress row exists.

func MultiAddresses

func MultiAddresses(mods ...qm.QueryMod) multiAddressQuery

MultiAddresses retrieves all the records using an executor.

func NetworkSizeEstimateExists

func NetworkSizeEstimateExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

NetworkSizeEstimateExists checks if the NetworkSizeEstimate row exists.

func NetworkSizeEstimates

func NetworkSizeEstimates(mods ...qm.QueryMod) networkSizeEstimateQuery

NetworkSizeEstimates retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func PeerExists

func PeerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

PeerExists checks if the Peer row exists.

func PeerLogExists

func PeerLogExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

PeerLogExists checks if the PeerLog row exists.

func PeerLogs

func PeerLogs(mods ...qm.QueryMod) peerLogQuery

PeerLogs retrieves all the records using an executor.

func PeerStateExists

func PeerStateExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

PeerStateExists checks if the PeerState row exists.

func PeerStates

func PeerStates(mods ...qm.QueryMod) peerStateQuery

PeerStates retrieves all the records using an executor.

func Peers

func Peers(mods ...qm.QueryMod) peerQuery

Peers retrieves all the records using an executor.

func ProvideExists

func ProvideExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ProvideExists checks if the Provide row exists.

func ProviderPeerExists

func ProviderPeerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ProviderPeerExists checks if the ProviderPeer row exists.

func ProviderPeers

func ProviderPeers(mods ...qm.QueryMod) providerPeerQuery

ProviderPeers retrieves all the records using an executor.

func Provides

func Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the records using an executor.

func RetrievalExists

func RetrievalExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

RetrievalExists checks if the Retrieval row exists.

func Retrievals

func Retrievals(mods ...qm.QueryMod) retrievalQuery

Retrievals retrieves all the records using an executor.

func RoutingTableEntries

func RoutingTableEntries(mods ...qm.QueryMod) routingTableEntryQuery

RoutingTableEntries retrieves all the records using an executor.

func RoutingTableEntryExists

func RoutingTableEntryExists(ctx context.Context, exec boil.ContextExecutor, routingTableSnapshotID int, peerID int) (bool, error)

RoutingTableEntryExists checks if the RoutingTableEntry row exists.

func RoutingTableSnapshotExists

func RoutingTableSnapshotExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

RoutingTableSnapshotExists checks if the RoutingTableSnapshot row exists.

func RoutingTableSnapshots

func RoutingTableSnapshots(mods ...qm.QueryMod) routingTableSnapshotQuery

RoutingTableSnapshots retrieves all the records using an executor.

Types

type AddProviderRPC

type AddProviderRPC struct {
	ID              int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	LocalID         int              `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID        int              `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	Distance        []byte           `boil:"distance" json:"distance" toml:"distance" yaml:"distance"`
	MultiAddressIds types.Int64Array `boil:"multi_address_ids" json:"multi_address_ids" toml:"multi_address_ids" yaml:"multi_address_ids"`
	StartedAt       time.Time        `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt         time.Time        `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	Error           null.String      `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`

	R *addProviderRPCR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L addProviderRPCL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AddProviderRPC is an object representing the database table.

func FindAddProviderRPC

func FindAddProviderRPC(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*AddProviderRPC, error)

FindAddProviderRPC retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*AddProviderRPC) AddProvides

func (o *AddProviderRPC) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the add_provider_rpc, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.AddProviderRPCS appropriately.

func (*AddProviderRPC) Delete

func (o *AddProviderRPC) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single AddProviderRPC record with an executor. Delete will match against the primary key column to find the record to delete.

func (*AddProviderRPC) Insert

func (o *AddProviderRPC) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*AddProviderRPC) Local

func (o *AddProviderRPC) Local(mods ...qm.QueryMod) peerQuery

Local pointed to by the foreign key.

func (*AddProviderRPC) Provides

func (o *AddProviderRPC) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*AddProviderRPC) Reload

func (o *AddProviderRPC) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*AddProviderRPC) Remote

func (o *AddProviderRPC) Remote(mods ...qm.QueryMod) peerQuery

Remote pointed to by the foreign key.

func (*AddProviderRPC) RemoveProvides

func (o *AddProviderRPC) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.AddProviderRPCS.

func (*AddProviderRPC) SetLocal

func (o *AddProviderRPC) SetLocal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetLocal of the addProviderRPC to the related item. Sets o.R.Local to related. Adds o to related.R.LocalAddProviderRPCS.

func (*AddProviderRPC) SetProvides

func (o *AddProviderRPC) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the add_provider_rpc replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.AddProviderRPCS's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.AddProviderRPCS's Provides accordingly.

func (*AddProviderRPC) SetRemote

func (o *AddProviderRPC) SetRemote(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRemote of the addProviderRPC to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteAddProviderRPCS.

func (*AddProviderRPC) Update

func (o *AddProviderRPC) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AddProviderRPC. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*AddProviderRPC) Upsert

func (o *AddProviderRPC) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type AddProviderRPCHook

type AddProviderRPCHook func(context.Context, boil.ContextExecutor, *AddProviderRPC) error

AddProviderRPCHook is the signature for custom AddProviderRPC hook methods

type AddProviderRPCSlice

type AddProviderRPCSlice []*AddProviderRPC

AddProviderRPCSlice is an alias for a slice of pointers to AddProviderRPC. This should almost always be used instead of []AddProviderRPC.

func (AddProviderRPCSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*AddProviderRPCSlice) ReloadAll

func (o *AddProviderRPCSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (AddProviderRPCSlice) UpdateAll

func (o AddProviderRPCSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type CloserPeer

type CloserPeer struct {
	ID                int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	FindNodeRPCID     null.Int         `boil:"find_node_rpc_id" json:"find_node_rpc_id,omitempty" toml:"find_node_rpc_id" yaml:"find_node_rpc_id,omitempty"`
	GetProvidersRPCID null.Int         `` /* 131-byte string literal not displayed */
	PeerID            int              `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	MultiAddressIds   types.Int64Array `boil:"multi_address_ids" json:"multi_address_ids" toml:"multi_address_ids" yaml:"multi_address_ids"`

	R *closerPeerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L closerPeerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CloserPeer is an object representing the database table.

func FindCloserPeer

func FindCloserPeer(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*CloserPeer, error)

FindCloserPeer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*CloserPeer) Delete

func (o *CloserPeer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single CloserPeer record with an executor. Delete will match against the primary key column to find the record to delete.

func (*CloserPeer) FindNodeRPC

func (o *CloserPeer) FindNodeRPC(mods ...qm.QueryMod) findNodesRPCQuery

FindNodeRPC pointed to by the foreign key.

func (*CloserPeer) GetProvidersRPC

func (o *CloserPeer) GetProvidersRPC(mods ...qm.QueryMod) getProvidersRPCQuery

GetProvidersRPC pointed to by the foreign key.

func (*CloserPeer) Insert

func (o *CloserPeer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*CloserPeer) Peer

func (o *CloserPeer) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*CloserPeer) Reload

func (o *CloserPeer) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CloserPeer) RemoveFindNodeRPC

func (o *CloserPeer) RemoveFindNodeRPC(ctx context.Context, exec boil.ContextExecutor, related *FindNodesRPC) error

RemoveFindNodeRPC relationship. Sets o.R.FindNodeRPC to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*CloserPeer) RemoveGetProvidersRPC

func (o *CloserPeer) RemoveGetProvidersRPC(ctx context.Context, exec boil.ContextExecutor, related *GetProvidersRPC) error

RemoveGetProvidersRPC relationship. Sets o.R.GetProvidersRPC to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*CloserPeer) SetFindNodeRPC

func (o *CloserPeer) SetFindNodeRPC(ctx context.Context, exec boil.ContextExecutor, insert bool, related *FindNodesRPC) error

SetFindNodeRPC of the closerPeer to the related item. Sets o.R.FindNodeRPC to related. Adds o to related.R.FindNodeRPCCloserPeers.

func (*CloserPeer) SetGetProvidersRPC

func (o *CloserPeer) SetGetProvidersRPC(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GetProvidersRPC) error

SetGetProvidersRPC of the closerPeer to the related item. Sets o.R.GetProvidersRPC to related. Adds o to related.R.CloserPeers.

func (*CloserPeer) SetPeer

func (o *CloserPeer) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the closerPeer to the related item. Sets o.R.Peer to related. Adds o to related.R.CloserPeers.

func (*CloserPeer) Update

func (o *CloserPeer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the CloserPeer. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CloserPeer) Upsert

func (o *CloserPeer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CloserPeerHook

type CloserPeerHook func(context.Context, boil.ContextExecutor, *CloserPeer) error

CloserPeerHook is the signature for custom CloserPeer hook methods

type CloserPeerSlice

type CloserPeerSlice []*CloserPeer

CloserPeerSlice is an alias for a slice of pointers to CloserPeer. This should almost always be used instead of []CloserPeer.

func (CloserPeerSlice) DeleteAll

func (o CloserPeerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*CloserPeerSlice) ReloadAll

func (o *CloserPeerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (CloserPeerSlice) UpdateAll

func (o CloserPeerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Connection

type Connection struct {
	ID             int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	LocalID        int       `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID       int       `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	MultiAddressID int       `boil:"multi_address_id" json:"multi_address_id" toml:"multi_address_id" yaml:"multi_address_id"`
	StartedAt      time.Time `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt        time.Time `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`

	R *connectionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L connectionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Connection is an object representing the database table.

func FindConnection

func FindConnection(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Connection, error)

FindConnection retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Connection) AddProvides

func (o *Connection) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the connection, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.Connections appropriately.

func (*Connection) AddRetrievals

func (o *Connection) AddRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddRetrievals adds the given related objects to the existing relationships of the connection, optionally inserting them as new records. Appends related to o.R.Retrievals. Sets related.R.Connections appropriately.

func (*Connection) Delete

func (o *Connection) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Connection record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Connection) Insert

func (o *Connection) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Connection) Local

func (o *Connection) Local(mods ...qm.QueryMod) peerQuery

Local pointed to by the foreign key.

func (*Connection) MultiAddress

func (o *Connection) MultiAddress(mods ...qm.QueryMod) multiAddressQuery

MultiAddress pointed to by the foreign key.

func (*Connection) Provides

func (o *Connection) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*Connection) Reload

func (o *Connection) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Connection) Remote

func (o *Connection) Remote(mods ...qm.QueryMod) peerQuery

Remote pointed to by the foreign key.

func (*Connection) RemoveProvides

func (o *Connection) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.Connections.

func (*Connection) RemoveRetrievals

func (o *Connection) RemoveRetrievals(ctx context.Context, exec boil.ContextExecutor, related ...*Retrieval) error

RemoveRetrievals relationships from objects passed in. Removes related items from R.Retrievals (uses pointer comparison, removal does not keep order) Sets related.R.Connections.

func (*Connection) Retrievals

func (o *Connection) Retrievals(mods ...qm.QueryMod) retrievalQuery

Retrievals retrieves all the retrieval's Retrievals with an executor.

func (*Connection) SetLocal

func (o *Connection) SetLocal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetLocal of the connection to the related item. Sets o.R.Local to related. Adds o to related.R.LocalConnections.

func (*Connection) SetMultiAddress

func (o *Connection) SetMultiAddress(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MultiAddress) error

SetMultiAddress of the connection to the related item. Sets o.R.MultiAddress to related. Adds o to related.R.Connections.

func (*Connection) SetProvides

func (o *Connection) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the connection replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Connections's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.Connections's Provides accordingly.

func (*Connection) SetRemote

func (o *Connection) SetRemote(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRemote of the connection to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteConnections.

func (*Connection) SetRetrievals

func (o *Connection) SetRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

SetRetrievals removes all previously related items of the connection replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Connections's Retrievals accordingly. Replaces o.R.Retrievals with related. Sets related.R.Connections's Retrievals accordingly.

func (*Connection) Update

func (o *Connection) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Connection. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Connection) Upsert

func (o *Connection) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ConnectionHook

type ConnectionHook func(context.Context, boil.ContextExecutor, *Connection) error

ConnectionHook is the signature for custom Connection hook methods

type ConnectionSlice

type ConnectionSlice []*Connection

ConnectionSlice is an alias for a slice of pointers to Connection. This should almost always be used instead of []Connection.

func (ConnectionSlice) DeleteAll

func (o ConnectionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ConnectionSlice) ReloadAll

func (o *ConnectionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ConnectionSlice) UpdateAll

func (o ConnectionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Dial

type Dial struct {
	ID             int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	LocalID        int         `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID       int         `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	Transport      string      `boil:"transport" json:"transport" toml:"transport" yaml:"transport"`
	MultiAddressID int         `boil:"multi_address_id" json:"multi_address_id" toml:"multi_address_id" yaml:"multi_address_id"`
	StartedAt      time.Time   `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt        time.Time   `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	Error          null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`

	R *dialR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dialL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Dial is an object representing the database table.

func FindDial

func FindDial(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Dial, error)

FindDial retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Dial) AddProvides

func (o *Dial) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the dial, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.Dials appropriately.

func (*Dial) AddRetrievals

func (o *Dial) AddRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddRetrievals adds the given related objects to the existing relationships of the dial, optionally inserting them as new records. Appends related to o.R.Retrievals. Sets related.R.Dials appropriately.

func (*Dial) Delete

func (o *Dial) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Dial record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Dial) Insert

func (o *Dial) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Dial) Local

func (o *Dial) Local(mods ...qm.QueryMod) peerQuery

Local pointed to by the foreign key.

func (*Dial) MultiAddress

func (o *Dial) MultiAddress(mods ...qm.QueryMod) multiAddressQuery

MultiAddress pointed to by the foreign key.

func (*Dial) Provides

func (o *Dial) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*Dial) Reload

func (o *Dial) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Dial) Remote

func (o *Dial) Remote(mods ...qm.QueryMod) peerQuery

Remote pointed to by the foreign key.

func (*Dial) RemoveProvides

func (o *Dial) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.Dials.

func (*Dial) RemoveRetrievals

func (o *Dial) RemoveRetrievals(ctx context.Context, exec boil.ContextExecutor, related ...*Retrieval) error

RemoveRetrievals relationships from objects passed in. Removes related items from R.Retrievals (uses pointer comparison, removal does not keep order) Sets related.R.Dials.

func (*Dial) Retrievals

func (o *Dial) Retrievals(mods ...qm.QueryMod) retrievalQuery

Retrievals retrieves all the retrieval's Retrievals with an executor.

func (*Dial) SetLocal

func (o *Dial) SetLocal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetLocal of the dial to the related item. Sets o.R.Local to related. Adds o to related.R.LocalDials.

func (*Dial) SetMultiAddress

func (o *Dial) SetMultiAddress(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MultiAddress) error

SetMultiAddress of the dial to the related item. Sets o.R.MultiAddress to related. Adds o to related.R.Dials.

func (*Dial) SetProvides

func (o *Dial) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the dial replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Dials's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.Dials's Provides accordingly.

func (*Dial) SetRemote

func (o *Dial) SetRemote(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRemote of the dial to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteDials.

func (*Dial) SetRetrievals

func (o *Dial) SetRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

SetRetrievals removes all previously related items of the dial replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Dials's Retrievals accordingly. Replaces o.R.Retrievals with related. Sets related.R.Dials's Retrievals accordingly.

func (*Dial) Update

func (o *Dial) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Dial. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Dial) Upsert

func (o *Dial) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type DialHook

type DialHook func(context.Context, boil.ContextExecutor, *Dial) error

DialHook is the signature for custom Dial hook methods

type DialSlice

type DialSlice []*Dial

DialSlice is an alias for a slice of pointers to Dial. This should almost always be used instead of []Dial.

func (DialSlice) DeleteAll

func (o DialSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*DialSlice) ReloadAll

func (o *DialSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (DialSlice) UpdateAll

func (o DialSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type FindNodesRPC

type FindNodesRPC struct {
	ID               int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	QueryID          string      `boil:"query_id" json:"query_id" toml:"query_id" yaml:"query_id"`
	LocalID          int         `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID         int         `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	StartedAt        time.Time   `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt          time.Time   `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	CloserPeersCount null.Int    `boil:"closer_peers_count" json:"closer_peers_count,omitempty" toml:"closer_peers_count" yaml:"closer_peers_count,omitempty"`
	Error            null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`

	R *findNodesRPCR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L findNodesRPCL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

FindNodesRPC is an object representing the database table.

func FindFindNodesRPC

func FindFindNodesRPC(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*FindNodesRPC, error)

FindFindNodesRPC retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*FindNodesRPC) AddFindNodeRPCCloserPeers

func (o *FindNodesRPC) AddFindNodeRPCCloserPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CloserPeer) error

AddFindNodeRPCCloserPeers adds the given related objects to the existing relationships of the find_nodes_rpc, optionally inserting them as new records. Appends related to o.R.FindNodeRPCCloserPeers. Sets related.R.FindNodeRPC appropriately.

func (*FindNodesRPC) AddProvides

func (o *FindNodesRPC) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the find_nodes_rpc, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.FindNodesRPCS appropriately.

func (*FindNodesRPC) Delete

func (o *FindNodesRPC) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single FindNodesRPC record with an executor. Delete will match against the primary key column to find the record to delete.

func (*FindNodesRPC) FindNodeRPCCloserPeers

func (o *FindNodesRPC) FindNodeRPCCloserPeers(mods ...qm.QueryMod) closerPeerQuery

FindNodeRPCCloserPeers retrieves all the closer_peer's CloserPeers with an executor via find_node_rpc_id column.

func (*FindNodesRPC) Insert

func (o *FindNodesRPC) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*FindNodesRPC) Local

func (o *FindNodesRPC) Local(mods ...qm.QueryMod) peerQuery

Local pointed to by the foreign key.

func (*FindNodesRPC) Provides

func (o *FindNodesRPC) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*FindNodesRPC) Reload

func (o *FindNodesRPC) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*FindNodesRPC) Remote

func (o *FindNodesRPC) Remote(mods ...qm.QueryMod) peerQuery

Remote pointed to by the foreign key.

func (*FindNodesRPC) RemoveFindNodeRPCCloserPeers

func (o *FindNodesRPC) RemoveFindNodeRPCCloserPeers(ctx context.Context, exec boil.ContextExecutor, related ...*CloserPeer) error

RemoveFindNodeRPCCloserPeers relationships from objects passed in. Removes related items from R.FindNodeRPCCloserPeers (uses pointer comparison, removal does not keep order) Sets related.R.FindNodeRPC.

func (*FindNodesRPC) RemoveProvides

func (o *FindNodesRPC) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.FindNodesRPCS.

func (*FindNodesRPC) SetFindNodeRPCCloserPeers

func (o *FindNodesRPC) SetFindNodeRPCCloserPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CloserPeer) error

SetFindNodeRPCCloserPeers removes all previously related items of the find_nodes_rpc replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.FindNodeRPC's FindNodeRPCCloserPeers accordingly. Replaces o.R.FindNodeRPCCloserPeers with related. Sets related.R.FindNodeRPC's FindNodeRPCCloserPeers accordingly.

func (*FindNodesRPC) SetLocal

func (o *FindNodesRPC) SetLocal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetLocal of the findNodesRPC to the related item. Sets o.R.Local to related. Adds o to related.R.LocalFindNodesRPCS.

func (*FindNodesRPC) SetProvides

func (o *FindNodesRPC) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the find_nodes_rpc replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.FindNodesRPCS's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.FindNodesRPCS's Provides accordingly.

func (*FindNodesRPC) SetRemote

func (o *FindNodesRPC) SetRemote(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRemote of the findNodesRPC to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteFindNodesRPCS.

func (*FindNodesRPC) Update

func (o *FindNodesRPC) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the FindNodesRPC. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*FindNodesRPC) Upsert

func (o *FindNodesRPC) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type FindNodesRPCHook

type FindNodesRPCHook func(context.Context, boil.ContextExecutor, *FindNodesRPC) error

FindNodesRPCHook is the signature for custom FindNodesRPC hook methods

type FindNodesRPCSlice

type FindNodesRPCSlice []*FindNodesRPC

FindNodesRPCSlice is an alias for a slice of pointers to FindNodesRPC. This should almost always be used instead of []FindNodesRPC.

func (FindNodesRPCSlice) DeleteAll

func (o FindNodesRPCSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*FindNodesRPCSlice) ReloadAll

func (o *FindNodesRPCSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (FindNodesRPCSlice) UpdateAll

func (o FindNodesRPCSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GetProvidersRPC

type GetProvidersRPC struct {
	ID                 int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	QueryID            null.String `boil:"query_id" json:"query_id,omitempty" toml:"query_id" yaml:"query_id,omitempty"`
	LocalID            int         `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID           int         `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	StartedAt          time.Time   `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt            time.Time   `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	ProviderPeersCount null.Int    `` /* 131-byte string literal not displayed */
	Error              null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`

	R *getProvidersRPCR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L getProvidersRPCL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GetProvidersRPC is an object representing the database table.

func FindGetProvidersRPC

func FindGetProvidersRPC(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*GetProvidersRPC, error)

FindGetProvidersRPC retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GetProvidersRPC) AddCloserPeers

func (o *GetProvidersRPC) AddCloserPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CloserPeer) error

AddCloserPeers adds the given related objects to the existing relationships of the get_providers_rpc, optionally inserting them as new records. Appends related to o.R.CloserPeers. Sets related.R.GetProvidersRPC appropriately.

func (*GetProvidersRPC) AddProviderPeers

func (o *GetProvidersRPC) AddProviderPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProviderPeer) error

AddProviderPeers adds the given related objects to the existing relationships of the get_providers_rpc, optionally inserting them as new records. Appends related to o.R.ProviderPeers. Sets related.R.GetProvidersRPC appropriately.

func (*GetProvidersRPC) AddRetrievals

func (o *GetProvidersRPC) AddRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddRetrievals adds the given related objects to the existing relationships of the get_providers_rpc, optionally inserting them as new records. Appends related to o.R.Retrievals. Sets related.R.GetProvidersRPCS appropriately.

func (*GetProvidersRPC) CloserPeers

func (o *GetProvidersRPC) CloserPeers(mods ...qm.QueryMod) closerPeerQuery

CloserPeers retrieves all the closer_peer's CloserPeers with an executor.

func (*GetProvidersRPC) Delete

func (o *GetProvidersRPC) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single GetProvidersRPC record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GetProvidersRPC) Insert

func (o *GetProvidersRPC) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GetProvidersRPC) Local

func (o *GetProvidersRPC) Local(mods ...qm.QueryMod) peerQuery

Local pointed to by the foreign key.

func (*GetProvidersRPC) ProviderPeers

func (o *GetProvidersRPC) ProviderPeers(mods ...qm.QueryMod) providerPeerQuery

ProviderPeers retrieves all the provider_peer's ProviderPeers with an executor.

func (*GetProvidersRPC) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GetProvidersRPC) Remote

func (o *GetProvidersRPC) Remote(mods ...qm.QueryMod) peerQuery

Remote pointed to by the foreign key.

func (*GetProvidersRPC) RemoveCloserPeers

func (o *GetProvidersRPC) RemoveCloserPeers(ctx context.Context, exec boil.ContextExecutor, related ...*CloserPeer) error

RemoveCloserPeers relationships from objects passed in. Removes related items from R.CloserPeers (uses pointer comparison, removal does not keep order) Sets related.R.GetProvidersRPC.

func (*GetProvidersRPC) RemoveRetrievals

func (o *GetProvidersRPC) RemoveRetrievals(ctx context.Context, exec boil.ContextExecutor, related ...*Retrieval) error

RemoveRetrievals relationships from objects passed in. Removes related items from R.Retrievals (uses pointer comparison, removal does not keep order) Sets related.R.GetProvidersRPCS.

func (*GetProvidersRPC) Retrievals

func (o *GetProvidersRPC) Retrievals(mods ...qm.QueryMod) retrievalQuery

Retrievals retrieves all the retrieval's Retrievals with an executor.

func (*GetProvidersRPC) SetCloserPeers

func (o *GetProvidersRPC) SetCloserPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CloserPeer) error

SetCloserPeers removes all previously related items of the get_providers_rpc replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.GetProvidersRPC's CloserPeers accordingly. Replaces o.R.CloserPeers with related. Sets related.R.GetProvidersRPC's CloserPeers accordingly.

func (*GetProvidersRPC) SetLocal

func (o *GetProvidersRPC) SetLocal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetLocal of the getProvidersRPC to the related item. Sets o.R.Local to related. Adds o to related.R.LocalGetProvidersRPCS.

func (*GetProvidersRPC) SetRemote

func (o *GetProvidersRPC) SetRemote(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRemote of the getProvidersRPC to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteGetProvidersRPCS.

func (*GetProvidersRPC) SetRetrievals

func (o *GetProvidersRPC) SetRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

SetRetrievals removes all previously related items of the get_providers_rpc replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.GetProvidersRPCS's Retrievals accordingly. Replaces o.R.Retrievals with related. Sets related.R.GetProvidersRPCS's Retrievals accordingly.

func (*GetProvidersRPC) Update

func (o *GetProvidersRPC) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GetProvidersRPC. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GetProvidersRPC) Upsert

func (o *GetProvidersRPC) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GetProvidersRPCHook

type GetProvidersRPCHook func(context.Context, boil.ContextExecutor, *GetProvidersRPC) error

GetProvidersRPCHook is the signature for custom GetProvidersRPC hook methods

type GetProvidersRPCSlice

type GetProvidersRPCSlice []*GetProvidersRPC

GetProvidersRPCSlice is an alias for a slice of pointers to GetProvidersRPC. This should almost always be used instead of []GetProvidersRPC.

func (GetProvidersRPCSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GetProvidersRPCSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GetProvidersRPCSlice) UpdateAll

func (o GetProvidersRPCSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Host

type Host struct {
	ID         int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	PeerID     int       `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	Name       string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	PrivateKey []byte    `boil:"private_key" json:"private_key" toml:"private_key" yaml:"private_key"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt  time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ArchivedAt null.Time `boil:"archived_at" json:"archived_at,omitempty" toml:"archived_at" yaml:"archived_at,omitempty"`
	Network    string    `boil:"network" json:"network" toml:"network" yaml:"network"`

	R *hostR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L hostL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Host is an object representing the database table.

func FindHost

func FindHost(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Host, error)

FindHost retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Host) AddNetworkSizeEstimates

func (o *Host) AddNetworkSizeEstimates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NetworkSizeEstimate) error

AddNetworkSizeEstimates adds the given related objects to the existing relationships of the host, optionally inserting them as new records. Appends related to o.R.NetworkSizeEstimates. Sets related.R.Host appropriately.

func (*Host) Delete

func (o *Host) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Host record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Host) Insert

func (o *Host) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Host) NetworkSizeEstimates

func (o *Host) NetworkSizeEstimates(mods ...qm.QueryMod) networkSizeEstimateQuery

NetworkSizeEstimates retrieves all the network_size_estimate's NetworkSizeEstimates with an executor.

func (*Host) Peer

func (o *Host) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*Host) Reload

func (o *Host) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Host) SetPeer

func (o *Host) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the host to the related item. Sets o.R.Peer to related. Adds o to related.R.Hosts.

func (*Host) Update

func (o *Host) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Host. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Host) Upsert

func (o *Host) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type HostHook

type HostHook func(context.Context, boil.ContextExecutor, *Host) error

HostHook is the signature for custom Host hook methods

type HostSlice

type HostSlice []*Host

HostSlice is an alias for a slice of pointers to Host. This should almost always be used instead of []Host.

func (HostSlice) DeleteAll

func (o HostSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*HostSlice) ReloadAll

func (o *HostSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (HostSlice) UpdateAll

func (o HostSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type IPAddress

type IPAddress struct {
	ID        int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address   string      `boil:"address" json:"address" toml:"address" yaml:"address"`
	Country   null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
	Continent null.String `boil:"continent" json:"continent,omitempty" toml:"continent" yaml:"continent,omitempty"`
	Asn       null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsPublic  bool        `boil:"is_public" json:"is_public" toml:"is_public" yaml:"is_public"`
	UpdatedAt time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *ipAddressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L ipAddressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

IPAddress is an object representing the database table.

func FindIPAddress

func FindIPAddress(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*IPAddress, error)

FindIPAddress retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*IPAddress) AddMultiAddresses

func (o *IPAddress) AddMultiAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MultiAddress) error

AddMultiAddresses adds the given related objects to the existing relationships of the ip_address, optionally inserting them as new records. Appends related to o.R.MultiAddresses. Sets related.R.IPAddresses appropriately.

func (*IPAddress) Delete

func (o *IPAddress) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single IPAddress record with an executor. Delete will match against the primary key column to find the record to delete.

func (*IPAddress) Insert

func (o *IPAddress) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*IPAddress) MultiAddresses

func (o *IPAddress) MultiAddresses(mods ...qm.QueryMod) multiAddressQuery

MultiAddresses retrieves all the multi_address's MultiAddresses with an executor.

func (*IPAddress) Reload

func (o *IPAddress) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*IPAddress) RemoveMultiAddresses

func (o *IPAddress) RemoveMultiAddresses(ctx context.Context, exec boil.ContextExecutor, related ...*MultiAddress) error

RemoveMultiAddresses relationships from objects passed in. Removes related items from R.MultiAddresses (uses pointer comparison, removal does not keep order) Sets related.R.IPAddresses.

func (*IPAddress) SetMultiAddresses

func (o *IPAddress) SetMultiAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MultiAddress) error

SetMultiAddresses removes all previously related items of the ip_address replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.IPAddresses's MultiAddresses accordingly. Replaces o.R.MultiAddresses with related. Sets related.R.IPAddresses's MultiAddresses accordingly.

func (*IPAddress) Update

func (o *IPAddress) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the IPAddress. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*IPAddress) Upsert

func (o *IPAddress) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type IPAddressHook

type IPAddressHook func(context.Context, boil.ContextExecutor, *IPAddress) error

IPAddressHook is the signature for custom IPAddress hook methods

type IPAddressSlice

type IPAddressSlice []*IPAddress

IPAddressSlice is an alias for a slice of pointers to IPAddress. This should almost always be used instead of []IPAddress.

func (IPAddressSlice) DeleteAll

func (o IPAddressSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*IPAddressSlice) ReloadAll

func (o *IPAddressSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (IPAddressSlice) UpdateAll

func (o IPAddressSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Measurement

type Measurement struct {
	ID            int        `boil:"id" json:"id" toml:"id" yaml:"id"`
	HostID        int        `boil:"host_id" json:"host_id" toml:"host_id" yaml:"host_id"`
	StartedAt     time.Time  `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt       null.Time  `boil:"ended_at" json:"ended_at,omitempty" toml:"ended_at" yaml:"ended_at,omitempty"`
	Configuration types.JSON `boil:"configuration" json:"configuration" toml:"configuration" yaml:"configuration"`
	UpdatedAt     time.Time  `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt     time.Time  `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *measurementR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L measurementL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Measurement is an object representing the database table.

func FindMeasurement

func FindMeasurement(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Measurement, error)

FindMeasurement retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Measurement) AddProvides

func (o *Measurement) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the measurement, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.Measurement appropriately.

func (*Measurement) Delete

func (o *Measurement) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Measurement record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Measurement) Host

func (o *Measurement) Host(mods ...qm.QueryMod) peerQuery

Host pointed to by the foreign key.

func (*Measurement) Insert

func (o *Measurement) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Measurement) Provides

func (o *Measurement) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*Measurement) Reload

func (o *Measurement) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Measurement) RemoveProvides

func (o *Measurement) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.Measurement.

func (*Measurement) SetHost

func (o *Measurement) SetHost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetHost of the measurement to the related item. Sets o.R.Host to related. Adds o to related.R.HostMeasurements.

func (*Measurement) SetProvides

func (o *Measurement) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the measurement replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Measurement's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.Measurement's Provides accordingly.

func (*Measurement) Update

func (o *Measurement) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Measurement. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Measurement) Upsert

func (o *Measurement) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MeasurementHook

type MeasurementHook func(context.Context, boil.ContextExecutor, *Measurement) error

MeasurementHook is the signature for custom Measurement hook methods

type MeasurementSlice

type MeasurementSlice []*Measurement

MeasurementSlice is an alias for a slice of pointers to Measurement. This should almost always be used instead of []Measurement.

func (MeasurementSlice) DeleteAll

func (o MeasurementSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MeasurementSlice) ReloadAll

func (o *MeasurementSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MeasurementSlice) UpdateAll

func (o MeasurementSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type MultiAddress

type MultiAddress struct {
	ID             int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Maddr          string      `boil:"maddr" json:"maddr" toml:"maddr" yaml:"maddr"`
	Country        null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
	Continent      null.String `boil:"continent" json:"continent,omitempty" toml:"continent" yaml:"continent,omitempty"`
	Asn            null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsPublic       null.Bool   `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"`
	IPAddressCount null.Int    `boil:"ip_address_count" json:"ip_address_count,omitempty" toml:"ip_address_count" yaml:"ip_address_count,omitempty"`
	UpdatedAt      time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt      time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *multiAddressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L multiAddressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MultiAddress is an object representing the database table.

func FindMultiAddress

func FindMultiAddress(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*MultiAddress, error)

FindMultiAddress retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*MultiAddress) AddConnections

func (o *MultiAddress) AddConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

AddConnections adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.Connections. Sets related.R.MultiAddress appropriately.

func (*MultiAddress) AddDials

func (o *MultiAddress) AddDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

AddDials adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.Dials. Sets related.R.MultiAddress appropriately.

func (*MultiAddress) AddIPAddresses

func (o *MultiAddress) AddIPAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*IPAddress) error

AddIPAddresses adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.IPAddresses. Sets related.R.MultiAddresses appropriately.

func (*MultiAddress) Connections

func (o *MultiAddress) Connections(mods ...qm.QueryMod) connectionQuery

Connections retrieves all the connection's Connections with an executor.

func (*MultiAddress) Delete

func (o *MultiAddress) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single MultiAddress record with an executor. Delete will match against the primary key column to find the record to delete.

func (*MultiAddress) Dials

func (o *MultiAddress) Dials(mods ...qm.QueryMod) dialQuery

Dials retrieves all the dial's Dials with an executor.

func (*MultiAddress) IPAddresses

func (o *MultiAddress) IPAddresses(mods ...qm.QueryMod) ipAddressQuery

IPAddresses retrieves all the ip_address's IPAddresses with an executor.

func (*MultiAddress) Insert

func (o *MultiAddress) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*MultiAddress) Reload

func (o *MultiAddress) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*MultiAddress) RemoveIPAddresses

func (o *MultiAddress) RemoveIPAddresses(ctx context.Context, exec boil.ContextExecutor, related ...*IPAddress) error

RemoveIPAddresses relationships from objects passed in. Removes related items from R.IPAddresses (uses pointer comparison, removal does not keep order) Sets related.R.MultiAddresses.

func (*MultiAddress) SetIPAddresses

func (o *MultiAddress) SetIPAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*IPAddress) error

SetIPAddresses removes all previously related items of the multi_address replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MultiAddresses's IPAddresses accordingly. Replaces o.R.IPAddresses with related. Sets related.R.MultiAddresses's IPAddresses accordingly.

func (*MultiAddress) Update

func (o *MultiAddress) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MultiAddress. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MultiAddress) Upsert

func (o *MultiAddress) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MultiAddressHook

type MultiAddressHook func(context.Context, boil.ContextExecutor, *MultiAddress) error

MultiAddressHook is the signature for custom MultiAddress hook methods

type MultiAddressSlice

type MultiAddressSlice []*MultiAddress

MultiAddressSlice is an alias for a slice of pointers to MultiAddress. This should almost always be used instead of []MultiAddress.

func (MultiAddressSlice) DeleteAll

func (o MultiAddressSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MultiAddressSlice) ReloadAll

func (o *MultiAddressSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MultiAddressSlice) UpdateAll

func (o MultiAddressSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type NetworkSizeEstimate

type NetworkSizeEstimate struct {
	ID             int                `boil:"id" json:"id" toml:"id" yaml:"id"`
	HostID         int                `boil:"host_id" json:"host_id" toml:"host_id" yaml:"host_id"`
	NetworkSize    float64            `boil:"network_size" json:"network_size" toml:"network_size" yaml:"network_size"`
	NetworkSizeErr float64            `boil:"network_size_err" json:"network_size_err" toml:"network_size_err" yaml:"network_size_err"`
	RSquared       float64            `boil:"r_squared" json:"r_squared" toml:"r_squared" yaml:"r_squared"`
	SampleSize     int                `boil:"sample_size" json:"sample_size" toml:"sample_size" yaml:"sample_size"`
	CreatedAt      time.Time          `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	CPL            int                `boil:"cpl" json:"cpl" toml:"cpl" yaml:"cpl"`
	Distances      types.Float64Array `boil:"distances" json:"distances" toml:"distances" yaml:"distances"`
	Key            string             `boil:"key" json:"key" toml:"key" yaml:"key"`

	R *networkSizeEstimateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L networkSizeEstimateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NetworkSizeEstimate is an object representing the database table.

func FindNetworkSizeEstimate

func FindNetworkSizeEstimate(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*NetworkSizeEstimate, error)

FindNetworkSizeEstimate retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*NetworkSizeEstimate) Delete

Delete deletes a single NetworkSizeEstimate record with an executor. Delete will match against the primary key column to find the record to delete.

func (*NetworkSizeEstimate) Host

func (o *NetworkSizeEstimate) Host(mods ...qm.QueryMod) hostQuery

Host pointed to by the foreign key.

func (*NetworkSizeEstimate) Insert

func (o *NetworkSizeEstimate) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*NetworkSizeEstimate) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*NetworkSizeEstimate) SetHost

func (o *NetworkSizeEstimate) SetHost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Host) error

SetHost of the networkSizeEstimate to the related item. Sets o.R.Host to related. Adds o to related.R.NetworkSizeEstimates.

func (*NetworkSizeEstimate) Update

func (o *NetworkSizeEstimate) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the NetworkSizeEstimate. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NetworkSizeEstimate) Upsert

func (o *NetworkSizeEstimate) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type NetworkSizeEstimateHook

type NetworkSizeEstimateHook func(context.Context, boil.ContextExecutor, *NetworkSizeEstimate) error

NetworkSizeEstimateHook is the signature for custom NetworkSizeEstimate hook methods

type NetworkSizeEstimateSlice

type NetworkSizeEstimateSlice []*NetworkSizeEstimate

NetworkSizeEstimateSlice is an alias for a slice of pointers to NetworkSizeEstimate. This should almost always be used instead of []NetworkSizeEstimate.

func (NetworkSizeEstimateSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*NetworkSizeEstimateSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (NetworkSizeEstimateSlice) UpdateAll

func (o NetworkSizeEstimateSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Peer

type Peer struct {
	ID           int               `boil:"id" json:"id" toml:"id" yaml:"id"`
	MultiHash    string            `boil:"multi_hash" json:"multi_hash" toml:"multi_hash" yaml:"multi_hash"`
	AgentVersion null.String       `boil:"agent_version" json:"agent_version,omitempty" toml:"agent_version" yaml:"agent_version,omitempty"`
	Protocols    types.StringArray `boil:"protocols" json:"protocols,omitempty" toml:"protocols" yaml:"protocols,omitempty"`
	UpdatedAt    time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt    time.Time         `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *peerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L peerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Peer is an object representing the database table.

func FindPeer

func FindPeer(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Peer, error)

FindPeer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Peer) AddCloserPeers

func (o *Peer) AddCloserPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CloserPeer) error

AddCloserPeers adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.CloserPeers. Sets related.R.Peer appropriately.

func (*Peer) AddHostMeasurements

func (o *Peer) AddHostMeasurements(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Measurement) error

AddHostMeasurements adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.HostMeasurements. Sets related.R.Host appropriately.

func (*Peer) AddHosts

func (o *Peer) AddHosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Host) error

AddHosts adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.Hosts. Sets related.R.Peer appropriately.

func (*Peer) AddLocalAddProviderRPCS

func (o *Peer) AddLocalAddProviderRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AddProviderRPC) error

AddLocalAddProviderRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.LocalAddProviderRPCS. Sets related.R.Local appropriately.

func (*Peer) AddLocalConnections

func (o *Peer) AddLocalConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

AddLocalConnections adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.LocalConnections. Sets related.R.Local appropriately.

func (*Peer) AddLocalDials

func (o *Peer) AddLocalDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

AddLocalDials adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.LocalDials. Sets related.R.Local appropriately.

func (*Peer) AddLocalFindNodesRPCS

func (o *Peer) AddLocalFindNodesRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FindNodesRPC) error

AddLocalFindNodesRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.LocalFindNodesRPCS. Sets related.R.Local appropriately.

func (*Peer) AddLocalGetProvidersRPCS

func (o *Peer) AddLocalGetProvidersRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GetProvidersRPC) error

AddLocalGetProvidersRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.LocalGetProvidersRPCS. Sets related.R.Local appropriately.

func (*Peer) AddPeerLogs

func (o *Peer) AddPeerLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerLog) error

AddPeerLogs adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.PeerLogs. Sets related.R.Peer appropriately.

func (*Peer) AddPeerStates

func (o *Peer) AddPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

AddPeerStates adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.PeerStates. Sets related.R.Peer appropriately.

func (*Peer) AddProviderProviderPeers

func (o *Peer) AddProviderProviderPeers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProviderPeer) error

AddProviderProviderPeers adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.ProviderProviderPeers. Sets related.R.Provider appropriately.

func (*Peer) AddProviderProvides

func (o *Peer) AddProviderProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProviderProvides adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.ProviderProvides. Sets related.R.Provider appropriately.

func (*Peer) AddReferrerPeerStates

func (o *Peer) AddReferrerPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

AddReferrerPeerStates adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.ReferrerPeerStates. Sets related.R.Referrer appropriately.

func (*Peer) AddRemoteAddProviderRPCS

func (o *Peer) AddRemoteAddProviderRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AddProviderRPC) error

AddRemoteAddProviderRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RemoteAddProviderRPCS. Sets related.R.Remote appropriately.

func (*Peer) AddRemoteConnections

func (o *Peer) AddRemoteConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

AddRemoteConnections adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RemoteConnections. Sets related.R.Remote appropriately.

func (*Peer) AddRemoteDials

func (o *Peer) AddRemoteDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

AddRemoteDials adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RemoteDials. Sets related.R.Remote appropriately.

func (*Peer) AddRemoteFindNodesRPCS

func (o *Peer) AddRemoteFindNodesRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FindNodesRPC) error

AddRemoteFindNodesRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RemoteFindNodesRPCS. Sets related.R.Remote appropriately.

func (*Peer) AddRemoteGetProvidersRPCS

func (o *Peer) AddRemoteGetProvidersRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GetProvidersRPC) error

AddRemoteGetProvidersRPCS adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RemoteGetProvidersRPCS. Sets related.R.Remote appropriately.

func (*Peer) AddRetrieverRetrievals

func (o *Peer) AddRetrieverRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddRetrieverRetrievals adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RetrieverRetrievals. Sets related.R.Retriever appropriately.

func (*Peer) AddRoutingTableEntries

func (o *Peer) AddRoutingTableEntries(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoutingTableEntry) error

AddRoutingTableEntries adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RoutingTableEntries. Sets related.R.Peer appropriately.

func (*Peer) AddRoutingTableSnapshots

func (o *Peer) AddRoutingTableSnapshots(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoutingTableSnapshot) error

AddRoutingTableSnapshots adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.RoutingTableSnapshots. Sets related.R.Peer appropriately.

func (*Peer) CloserPeers

func (o *Peer) CloserPeers(mods ...qm.QueryMod) closerPeerQuery

CloserPeers retrieves all the closer_peer's CloserPeers with an executor.

func (*Peer) Delete

func (o *Peer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Peer record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Peer) HostMeasurements

func (o *Peer) HostMeasurements(mods ...qm.QueryMod) measurementQuery

HostMeasurements retrieves all the measurement's Measurements with an executor via host_id column.

func (*Peer) Hosts

func (o *Peer) Hosts(mods ...qm.QueryMod) hostQuery

Hosts retrieves all the host's Hosts with an executor.

func (*Peer) Insert

func (o *Peer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Peer) LocalAddProviderRPCS

func (o *Peer) LocalAddProviderRPCS(mods ...qm.QueryMod) addProviderRPCQuery

LocalAddProviderRPCS retrieves all the add_provider_rpc's AddProviderRPCS with an executor via local_id column.

func (*Peer) LocalConnections

func (o *Peer) LocalConnections(mods ...qm.QueryMod) connectionQuery

LocalConnections retrieves all the connection's Connections with an executor via local_id column.

func (*Peer) LocalDials

func (o *Peer) LocalDials(mods ...qm.QueryMod) dialQuery

LocalDials retrieves all the dial's Dials with an executor via local_id column.

func (*Peer) LocalFindNodesRPCS

func (o *Peer) LocalFindNodesRPCS(mods ...qm.QueryMod) findNodesRPCQuery

LocalFindNodesRPCS retrieves all the find_nodes_rpc's FindNodesRPCS with an executor via local_id column.

func (*Peer) LocalGetProvidersRPCS

func (o *Peer) LocalGetProvidersRPCS(mods ...qm.QueryMod) getProvidersRPCQuery

LocalGetProvidersRPCS retrieves all the get_providers_rpc's GetProvidersRPCS with an executor via local_id column.

func (*Peer) PeerLogs

func (o *Peer) PeerLogs(mods ...qm.QueryMod) peerLogQuery

PeerLogs retrieves all the peer_log's PeerLogs with an executor.

func (*Peer) PeerStates

func (o *Peer) PeerStates(mods ...qm.QueryMod) peerStateQuery

PeerStates retrieves all the peer_state's PeerStates with an executor.

func (*Peer) ProviderProviderPeers

func (o *Peer) ProviderProviderPeers(mods ...qm.QueryMod) providerPeerQuery

ProviderProviderPeers retrieves all the provider_peer's ProviderPeers with an executor via provider_id column.

func (*Peer) ProviderProvides

func (o *Peer) ProviderProvides(mods ...qm.QueryMod) provideQuery

ProviderProvides retrieves all the provide's Provides with an executor via provider_id column.

func (*Peer) ReferrerPeerStates

func (o *Peer) ReferrerPeerStates(mods ...qm.QueryMod) peerStateQuery

ReferrerPeerStates retrieves all the peer_state's PeerStates with an executor via referrer_id column.

func (*Peer) Reload

func (o *Peer) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Peer) RemoteAddProviderRPCS

func (o *Peer) RemoteAddProviderRPCS(mods ...qm.QueryMod) addProviderRPCQuery

RemoteAddProviderRPCS retrieves all the add_provider_rpc's AddProviderRPCS with an executor via remote_id column.

func (*Peer) RemoteConnections

func (o *Peer) RemoteConnections(mods ...qm.QueryMod) connectionQuery

RemoteConnections retrieves all the connection's Connections with an executor via remote_id column.

func (*Peer) RemoteDials

func (o *Peer) RemoteDials(mods ...qm.QueryMod) dialQuery

RemoteDials retrieves all the dial's Dials with an executor via remote_id column.

func (*Peer) RemoteFindNodesRPCS

func (o *Peer) RemoteFindNodesRPCS(mods ...qm.QueryMod) findNodesRPCQuery

RemoteFindNodesRPCS retrieves all the find_nodes_rpc's FindNodesRPCS with an executor via remote_id column.

func (*Peer) RemoteGetProvidersRPCS

func (o *Peer) RemoteGetProvidersRPCS(mods ...qm.QueryMod) getProvidersRPCQuery

RemoteGetProvidersRPCS retrieves all the get_providers_rpc's GetProvidersRPCS with an executor via remote_id column.

func (*Peer) RetrieverRetrievals

func (o *Peer) RetrieverRetrievals(mods ...qm.QueryMod) retrievalQuery

RetrieverRetrievals retrieves all the retrieval's Retrievals with an executor via retriever_id column.

func (*Peer) RoutingTableEntries

func (o *Peer) RoutingTableEntries(mods ...qm.QueryMod) routingTableEntryQuery

RoutingTableEntries retrieves all the routing_table_entry's RoutingTableEntries with an executor.

func (*Peer) RoutingTableSnapshots

func (o *Peer) RoutingTableSnapshots(mods ...qm.QueryMod) routingTableSnapshotQuery

RoutingTableSnapshots retrieves all the routing_table_snapshot's RoutingTableSnapshots with an executor.

func (*Peer) Update

func (o *Peer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Peer. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Peer) Upsert

func (o *Peer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PeerHook

type PeerHook func(context.Context, boil.ContextExecutor, *Peer) error

PeerHook is the signature for custom Peer hook methods

type PeerLog

type PeerLog struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	PeerID    int       `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	Field     string    `boil:"field" json:"field" toml:"field" yaml:"field"`
	Old       string    `boil:"old" json:"old" toml:"old" yaml:"old"`
	New       string    `boil:"new" json:"new" toml:"new" yaml:"new"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *peerLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L peerLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PeerLog is an object representing the database table.

func FindPeerLog

func FindPeerLog(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*PeerLog, error)

FindPeerLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*PeerLog) Delete

func (o *PeerLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single PeerLog record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PeerLog) Insert

func (o *PeerLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*PeerLog) Peer

func (o *PeerLog) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*PeerLog) Reload

func (o *PeerLog) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*PeerLog) SetPeer

func (o *PeerLog) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the peerLog to the related item. Sets o.R.Peer to related. Adds o to related.R.PeerLogs.

func (*PeerLog) Update

func (o *PeerLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the PeerLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PeerLog) Upsert

func (o *PeerLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PeerLogHook

type PeerLogHook func(context.Context, boil.ContextExecutor, *PeerLog) error

PeerLogHook is the signature for custom PeerLog hook methods

type PeerLogSlice

type PeerLogSlice []*PeerLog

PeerLogSlice is an alias for a slice of pointers to PeerLog. This should almost always be used instead of []PeerLog.

func (PeerLogSlice) DeleteAll

func (o PeerLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PeerLogSlice) ReloadAll

func (o *PeerLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PeerLogSlice) UpdateAll

func (o PeerLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type PeerSlice

type PeerSlice []*Peer

PeerSlice is an alias for a slice of pointers to Peer. This should almost always be used instead of []Peer.

func (PeerSlice) DeleteAll

func (o PeerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PeerSlice) ReloadAll

func (o *PeerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PeerSlice) UpdateAll

func (o PeerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type PeerState

type PeerState struct {
	ID         int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	QueryID    string `boil:"query_id" json:"query_id" toml:"query_id" yaml:"query_id"`
	PeerID     int    `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	ReferrerID int    `boil:"referrer_id" json:"referrer_id" toml:"referrer_id" yaml:"referrer_id"`
	State      string `boil:"state" json:"state" toml:"state" yaml:"state"`
	Distance   []byte `boil:"distance" json:"distance" toml:"distance" yaml:"distance"`

	R *peerStateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L peerStateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PeerState is an object representing the database table.

func FindPeerState

func FindPeerState(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*PeerState, error)

FindPeerState retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*PeerState) AddProvides

func (o *PeerState) AddProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddProvides adds the given related objects to the existing relationships of the peer_state, optionally inserting them as new records. Appends related to o.R.Provides. Sets related.R.PeerStates appropriately.

func (*PeerState) AddRetrievals

func (o *PeerState) AddRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddRetrievals adds the given related objects to the existing relationships of the peer_state, optionally inserting them as new records. Appends related to o.R.Retrievals. Sets related.R.PeerStates appropriately.

func (*PeerState) Delete

func (o *PeerState) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single PeerState record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PeerState) Insert

func (o *PeerState) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*PeerState) Peer

func (o *PeerState) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*PeerState) Provides

func (o *PeerState) Provides(mods ...qm.QueryMod) provideQuery

Provides retrieves all the provide's Provides with an executor.

func (*PeerState) Referrer

func (o *PeerState) Referrer(mods ...qm.QueryMod) peerQuery

Referrer pointed to by the foreign key.

func (*PeerState) Reload

func (o *PeerState) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*PeerState) RemoveProvides

func (o *PeerState) RemoveProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveProvides relationships from objects passed in. Removes related items from R.Provides (uses pointer comparison, removal does not keep order) Sets related.R.PeerStates.

func (*PeerState) RemoveRetrievals

func (o *PeerState) RemoveRetrievals(ctx context.Context, exec boil.ContextExecutor, related ...*Retrieval) error

RemoveRetrievals relationships from objects passed in. Removes related items from R.Retrievals (uses pointer comparison, removal does not keep order) Sets related.R.PeerStates.

func (*PeerState) Retrievals

func (o *PeerState) Retrievals(mods ...qm.QueryMod) retrievalQuery

Retrievals retrieves all the retrieval's Retrievals with an executor.

func (*PeerState) SetPeer

func (o *PeerState) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the peerState to the related item. Sets o.R.Peer to related. Adds o to related.R.PeerStates.

func (*PeerState) SetProvides

func (o *PeerState) SetProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetProvides removes all previously related items of the peer_state replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PeerStates's Provides accordingly. Replaces o.R.Provides with related. Sets related.R.PeerStates's Provides accordingly.

func (*PeerState) SetReferrer

func (o *PeerState) SetReferrer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetReferrer of the peerState to the related item. Sets o.R.Referrer to related. Adds o to related.R.ReferrerPeerStates.

func (*PeerState) SetRetrievals

func (o *PeerState) SetRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

SetRetrievals removes all previously related items of the peer_state replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PeerStates's Retrievals accordingly. Replaces o.R.Retrievals with related. Sets related.R.PeerStates's Retrievals accordingly.

func (*PeerState) Update

func (o *PeerState) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the PeerState. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PeerState) Upsert

func (o *PeerState) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PeerStateHook

type PeerStateHook func(context.Context, boil.ContextExecutor, *PeerState) error

PeerStateHook is the signature for custom PeerState hook methods

type PeerStateSlice

type PeerStateSlice []*PeerState

PeerStateSlice is an alias for a slice of pointers to PeerState. This should almost always be used instead of []PeerState.

func (PeerStateSlice) DeleteAll

func (o PeerStateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PeerStateSlice) ReloadAll

func (o *PeerStateSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PeerStateSlice) UpdateAll

func (o PeerStateSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Provide

type Provide struct {
	ID                    int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	MeasurementID         null.Int    `boil:"measurement_id" json:"measurement_id,omitempty" toml:"measurement_id" yaml:"measurement_id,omitempty"`
	ProvideType           string      `boil:"provide_type" json:"provide_type" toml:"provide_type" yaml:"provide_type"`
	ProviderID            int         `boil:"provider_id" json:"provider_id" toml:"provider_id" yaml:"provider_id"`
	ContentID             string      `boil:"content_id" json:"content_id" toml:"content_id" yaml:"content_id"`
	Distance              []byte      `boil:"distance" json:"distance" toml:"distance" yaml:"distance"`
	InitialRoutingTableID int         `` /* 127-byte string literal not displayed */
	FinalRoutingTableID   null.Int    `` /* 139-byte string literal not displayed */
	StartedAt             time.Time   `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt               null.Time   `boil:"ended_at" json:"ended_at,omitempty" toml:"ended_at" yaml:"ended_at,omitempty"`
	Error                 null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`
	DoneAt                null.Time   `boil:"done_at" json:"done_at,omitempty" toml:"done_at" yaml:"done_at,omitempty"`
	UpdatedAt             time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt             time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *provideR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L provideL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Provide is an object representing the database table.

func FindProvide

func FindProvide(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Provide, error)

FindProvide retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Provide) AddAddProviderRPCS

func (o *Provide) AddAddProviderRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AddProviderRPC) error

AddAddProviderRPCS adds the given related objects to the existing relationships of the provide, optionally inserting them as new records. Appends related to o.R.AddProviderRPCS. Sets related.R.Provides appropriately.

func (*Provide) AddConnections

func (o *Provide) AddConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

AddConnections adds the given related objects to the existing relationships of the provide, optionally inserting them as new records. Appends related to o.R.Connections. Sets related.R.Provides appropriately.

func (*Provide) AddDials

func (o *Provide) AddDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

AddDials adds the given related objects to the existing relationships of the provide, optionally inserting them as new records. Appends related to o.R.Dials. Sets related.R.Provides appropriately.

func (*Provide) AddFindNodesRPCS

func (o *Provide) AddFindNodesRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FindNodesRPC) error

AddFindNodesRPCS adds the given related objects to the existing relationships of the provide, optionally inserting them as new records. Appends related to o.R.FindNodesRPCS. Sets related.R.Provides appropriately.

func (*Provide) AddPeerStates

func (o *Provide) AddPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

AddPeerStates adds the given related objects to the existing relationships of the provide, optionally inserting them as new records. Appends related to o.R.PeerStates. Sets related.R.Provides appropriately.

func (*Provide) AddProviderRPCS

func (o *Provide) AddProviderRPCS(mods ...qm.QueryMod) addProviderRPCQuery

AddProviderRPCS retrieves all the add_provider_rpc's AddProviderRPCS with an executor.

func (*Provide) Connections

func (o *Provide) Connections(mods ...qm.QueryMod) connectionQuery

Connections retrieves all the connection's Connections with an executor.

func (*Provide) Delete

func (o *Provide) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Provide record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Provide) Dials

func (o *Provide) Dials(mods ...qm.QueryMod) dialQuery

Dials retrieves all the dial's Dials with an executor.

func (*Provide) FinalRoutingTable

func (o *Provide) FinalRoutingTable(mods ...qm.QueryMod) routingTableSnapshotQuery

FinalRoutingTable pointed to by the foreign key.

func (*Provide) FindNodesRPCS

func (o *Provide) FindNodesRPCS(mods ...qm.QueryMod) findNodesRPCQuery

FindNodesRPCS retrieves all the find_nodes_rpc's FindNodesRPCS with an executor.

func (*Provide) InitialRoutingTable

func (o *Provide) InitialRoutingTable(mods ...qm.QueryMod) routingTableSnapshotQuery

InitialRoutingTable pointed to by the foreign key.

func (*Provide) Insert

func (o *Provide) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Provide) Measurement

func (o *Provide) Measurement(mods ...qm.QueryMod) measurementQuery

Measurement pointed to by the foreign key.

func (*Provide) PeerStates

func (o *Provide) PeerStates(mods ...qm.QueryMod) peerStateQuery

PeerStates retrieves all the peer_state's PeerStates with an executor.

func (*Provide) Provider

func (o *Provide) Provider(mods ...qm.QueryMod) peerQuery

Provider pointed to by the foreign key.

func (*Provide) Reload

func (o *Provide) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Provide) RemoveAddProviderRPCS

func (o *Provide) RemoveAddProviderRPCS(ctx context.Context, exec boil.ContextExecutor, related ...*AddProviderRPC) error

RemoveAddProviderRPCS relationships from objects passed in. Removes related items from R.AddProviderRPCS (uses pointer comparison, removal does not keep order) Sets related.R.Provides.

func (*Provide) RemoveConnections

func (o *Provide) RemoveConnections(ctx context.Context, exec boil.ContextExecutor, related ...*Connection) error

RemoveConnections relationships from objects passed in. Removes related items from R.Connections (uses pointer comparison, removal does not keep order) Sets related.R.Provides.

func (*Provide) RemoveDials

func (o *Provide) RemoveDials(ctx context.Context, exec boil.ContextExecutor, related ...*Dial) error

RemoveDials relationships from objects passed in. Removes related items from R.Dials (uses pointer comparison, removal does not keep order) Sets related.R.Provides.

func (*Provide) RemoveFinalRoutingTable

func (o *Provide) RemoveFinalRoutingTable(ctx context.Context, exec boil.ContextExecutor, related *RoutingTableSnapshot) error

RemoveFinalRoutingTable relationship. Sets o.R.FinalRoutingTable to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Provide) RemoveFindNodesRPCS

func (o *Provide) RemoveFindNodesRPCS(ctx context.Context, exec boil.ContextExecutor, related ...*FindNodesRPC) error

RemoveFindNodesRPCS relationships from objects passed in. Removes related items from R.FindNodesRPCS (uses pointer comparison, removal does not keep order) Sets related.R.Provides.

func (*Provide) RemoveMeasurement

func (o *Provide) RemoveMeasurement(ctx context.Context, exec boil.ContextExecutor, related *Measurement) error

RemoveMeasurement relationship. Sets o.R.Measurement to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Provide) RemovePeerStates

func (o *Provide) RemovePeerStates(ctx context.Context, exec boil.ContextExecutor, related ...*PeerState) error

RemovePeerStates relationships from objects passed in. Removes related items from R.PeerStates (uses pointer comparison, removal does not keep order) Sets related.R.Provides.

func (*Provide) SetAddProviderRPCS

func (o *Provide) SetAddProviderRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AddProviderRPC) error

SetAddProviderRPCS removes all previously related items of the provide replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Provides's AddProviderRPCS accordingly. Replaces o.R.AddProviderRPCS with related. Sets related.R.Provides's AddProviderRPCS accordingly.

func (*Provide) SetConnections

func (o *Provide) SetConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

SetConnections removes all previously related items of the provide replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Provides's Connections accordingly. Replaces o.R.Connections with related. Sets related.R.Provides's Connections accordingly.

func (*Provide) SetDials

func (o *Provide) SetDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

SetDials removes all previously related items of the provide replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Provides's Dials accordingly. Replaces o.R.Dials with related. Sets related.R.Provides's Dials accordingly.

func (*Provide) SetFinalRoutingTable

func (o *Provide) SetFinalRoutingTable(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoutingTableSnapshot) error

SetFinalRoutingTable of the provide to the related item. Sets o.R.FinalRoutingTable to related. Adds o to related.R.FinalRoutingTableProvides.

func (*Provide) SetFindNodesRPCS

func (o *Provide) SetFindNodesRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FindNodesRPC) error

SetFindNodesRPCS removes all previously related items of the provide replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Provides's FindNodesRPCS accordingly. Replaces o.R.FindNodesRPCS with related. Sets related.R.Provides's FindNodesRPCS accordingly.

func (*Provide) SetInitialRoutingTable

func (o *Provide) SetInitialRoutingTable(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoutingTableSnapshot) error

SetInitialRoutingTable of the provide to the related item. Sets o.R.InitialRoutingTable to related. Adds o to related.R.InitialRoutingTableProvides.

func (*Provide) SetMeasurement

func (o *Provide) SetMeasurement(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Measurement) error

SetMeasurement of the provide to the related item. Sets o.R.Measurement to related. Adds o to related.R.Provides.

func (*Provide) SetPeerStates

func (o *Provide) SetPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

SetPeerStates removes all previously related items of the provide replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Provides's PeerStates accordingly. Replaces o.R.PeerStates with related. Sets related.R.Provides's PeerStates accordingly.

func (*Provide) SetProvider

func (o *Provide) SetProvider(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetProvider of the provide to the related item. Sets o.R.Provider to related. Adds o to related.R.ProviderProvides.

func (*Provide) Update

func (o *Provide) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Provide. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Provide) Upsert

func (o *Provide) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ProvideHook

type ProvideHook func(context.Context, boil.ContextExecutor, *Provide) error

ProvideHook is the signature for custom Provide hook methods

type ProvideSlice

type ProvideSlice []*Provide

ProvideSlice is an alias for a slice of pointers to Provide. This should almost always be used instead of []Provide.

func (ProvideSlice) DeleteAll

func (o ProvideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ProvideSlice) ReloadAll

func (o *ProvideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ProvideSlice) UpdateAll

func (o ProvideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type ProviderPeer

type ProviderPeer struct {
	ID                int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	GetProvidersRPCID int              `boil:"get_providers_rpc_id" json:"get_providers_rpc_id" toml:"get_providers_rpc_id" yaml:"get_providers_rpc_id"`
	ProviderID        int              `boil:"provider_id" json:"provider_id" toml:"provider_id" yaml:"provider_id"`
	MultiAddressIds   types.Int64Array `boil:"multi_address_ids" json:"multi_address_ids" toml:"multi_address_ids" yaml:"multi_address_ids"`

	R *providerPeerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L providerPeerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ProviderPeer is an object representing the database table.

func FindProviderPeer

func FindProviderPeer(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ProviderPeer, error)

FindProviderPeer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ProviderPeer) Delete

func (o *ProviderPeer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single ProviderPeer record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ProviderPeer) GetProvidersRPC

func (o *ProviderPeer) GetProvidersRPC(mods ...qm.QueryMod) getProvidersRPCQuery

GetProvidersRPC pointed to by the foreign key.

func (*ProviderPeer) Insert

func (o *ProviderPeer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ProviderPeer) Provider

func (o *ProviderPeer) Provider(mods ...qm.QueryMod) peerQuery

Provider pointed to by the foreign key.

func (*ProviderPeer) Reload

func (o *ProviderPeer) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ProviderPeer) SetGetProvidersRPC

func (o *ProviderPeer) SetGetProvidersRPC(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GetProvidersRPC) error

SetGetProvidersRPC of the providerPeer to the related item. Sets o.R.GetProvidersRPC to related. Adds o to related.R.ProviderPeers.

func (*ProviderPeer) SetProvider

func (o *ProviderPeer) SetProvider(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetProvider of the providerPeer to the related item. Sets o.R.Provider to related. Adds o to related.R.ProviderProviderPeers.

func (*ProviderPeer) Update

func (o *ProviderPeer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ProviderPeer. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ProviderPeer) Upsert

func (o *ProviderPeer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ProviderPeerHook

type ProviderPeerHook func(context.Context, boil.ContextExecutor, *ProviderPeer) error

ProviderPeerHook is the signature for custom ProviderPeer hook methods

type ProviderPeerSlice

type ProviderPeerSlice []*ProviderPeer

ProviderPeerSlice is an alias for a slice of pointers to ProviderPeer. This should almost always be used instead of []ProviderPeer.

func (ProviderPeerSlice) DeleteAll

func (o ProviderPeerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ProviderPeerSlice) ReloadAll

func (o *ProviderPeerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ProviderPeerSlice) UpdateAll

func (o ProviderPeerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Retrieval

type Retrieval struct {
	ID                    int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	RetrieverID           int         `boil:"retriever_id" json:"retriever_id" toml:"retriever_id" yaml:"retriever_id"`
	ContentID             string      `boil:"content_id" json:"content_id" toml:"content_id" yaml:"content_id"`
	Distance              []byte      `boil:"distance" json:"distance" toml:"distance" yaml:"distance"`
	InitialRoutingTableID int         `` /* 127-byte string literal not displayed */
	FinalRoutingTableID   null.Int    `` /* 139-byte string literal not displayed */
	StartedAt             time.Time   `boil:"started_at" json:"started_at" toml:"started_at" yaml:"started_at"`
	EndedAt               null.Time   `boil:"ended_at" json:"ended_at,omitempty" toml:"ended_at" yaml:"ended_at,omitempty"`
	Error                 null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`
	DoneAt                null.Time   `boil:"done_at" json:"done_at,omitempty" toml:"done_at" yaml:"done_at,omitempty"`
	UpdatedAt             time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt             time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *retrievalR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L retrievalL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Retrieval is an object representing the database table.

func FindRetrieval

func FindRetrieval(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Retrieval, error)

FindRetrieval retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Retrieval) AddConnections

func (o *Retrieval) AddConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

AddConnections adds the given related objects to the existing relationships of the retrieval, optionally inserting them as new records. Appends related to o.R.Connections. Sets related.R.Retrievals appropriately.

func (*Retrieval) AddDials

func (o *Retrieval) AddDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

AddDials adds the given related objects to the existing relationships of the retrieval, optionally inserting them as new records. Appends related to o.R.Dials. Sets related.R.Retrievals appropriately.

func (*Retrieval) AddGetProvidersRPCS

func (o *Retrieval) AddGetProvidersRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GetProvidersRPC) error

AddGetProvidersRPCS adds the given related objects to the existing relationships of the retrieval, optionally inserting them as new records. Appends related to o.R.GetProvidersRPCS. Sets related.R.Retrievals appropriately.

func (*Retrieval) AddPeerStates

func (o *Retrieval) AddPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

AddPeerStates adds the given related objects to the existing relationships of the retrieval, optionally inserting them as new records. Appends related to o.R.PeerStates. Sets related.R.Retrievals appropriately.

func (*Retrieval) Connections

func (o *Retrieval) Connections(mods ...qm.QueryMod) connectionQuery

Connections retrieves all the connection's Connections with an executor.

func (*Retrieval) Delete

func (o *Retrieval) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Retrieval record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Retrieval) Dials

func (o *Retrieval) Dials(mods ...qm.QueryMod) dialQuery

Dials retrieves all the dial's Dials with an executor.

func (*Retrieval) FinalRoutingTable

func (o *Retrieval) FinalRoutingTable(mods ...qm.QueryMod) routingTableSnapshotQuery

FinalRoutingTable pointed to by the foreign key.

func (*Retrieval) GetProvidersRPCS

func (o *Retrieval) GetProvidersRPCS(mods ...qm.QueryMod) getProvidersRPCQuery

GetProvidersRPCS retrieves all the get_providers_rpc's GetProvidersRPCS with an executor.

func (*Retrieval) InitialRoutingTable

func (o *Retrieval) InitialRoutingTable(mods ...qm.QueryMod) routingTableSnapshotQuery

InitialRoutingTable pointed to by the foreign key.

func (*Retrieval) Insert

func (o *Retrieval) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Retrieval) PeerStates

func (o *Retrieval) PeerStates(mods ...qm.QueryMod) peerStateQuery

PeerStates retrieves all the peer_state's PeerStates with an executor.

func (*Retrieval) Reload

func (o *Retrieval) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Retrieval) RemoveConnections

func (o *Retrieval) RemoveConnections(ctx context.Context, exec boil.ContextExecutor, related ...*Connection) error

RemoveConnections relationships from objects passed in. Removes related items from R.Connections (uses pointer comparison, removal does not keep order) Sets related.R.Retrievals.

func (*Retrieval) RemoveDials

func (o *Retrieval) RemoveDials(ctx context.Context, exec boil.ContextExecutor, related ...*Dial) error

RemoveDials relationships from objects passed in. Removes related items from R.Dials (uses pointer comparison, removal does not keep order) Sets related.R.Retrievals.

func (*Retrieval) RemoveFinalRoutingTable

func (o *Retrieval) RemoveFinalRoutingTable(ctx context.Context, exec boil.ContextExecutor, related *RoutingTableSnapshot) error

RemoveFinalRoutingTable relationship. Sets o.R.FinalRoutingTable to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Retrieval) RemoveGetProvidersRPCS

func (o *Retrieval) RemoveGetProvidersRPCS(ctx context.Context, exec boil.ContextExecutor, related ...*GetProvidersRPC) error

RemoveGetProvidersRPCS relationships from objects passed in. Removes related items from R.GetProvidersRPCS (uses pointer comparison, removal does not keep order) Sets related.R.Retrievals.

func (*Retrieval) RemovePeerStates

func (o *Retrieval) RemovePeerStates(ctx context.Context, exec boil.ContextExecutor, related ...*PeerState) error

RemovePeerStates relationships from objects passed in. Removes related items from R.PeerStates (uses pointer comparison, removal does not keep order) Sets related.R.Retrievals.

func (*Retrieval) Retriever

func (o *Retrieval) Retriever(mods ...qm.QueryMod) peerQuery

Retriever pointed to by the foreign key.

func (*Retrieval) SetConnections

func (o *Retrieval) SetConnections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Connection) error

SetConnections removes all previously related items of the retrieval replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Retrievals's Connections accordingly. Replaces o.R.Connections with related. Sets related.R.Retrievals's Connections accordingly.

func (*Retrieval) SetDials

func (o *Retrieval) SetDials(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dial) error

SetDials removes all previously related items of the retrieval replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Retrievals's Dials accordingly. Replaces o.R.Dials with related. Sets related.R.Retrievals's Dials accordingly.

func (*Retrieval) SetFinalRoutingTable

func (o *Retrieval) SetFinalRoutingTable(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoutingTableSnapshot) error

SetFinalRoutingTable of the retrieval to the related item. Sets o.R.FinalRoutingTable to related. Adds o to related.R.FinalRoutingTableRetrievals.

func (*Retrieval) SetGetProvidersRPCS

func (o *Retrieval) SetGetProvidersRPCS(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GetProvidersRPC) error

SetGetProvidersRPCS removes all previously related items of the retrieval replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Retrievals's GetProvidersRPCS accordingly. Replaces o.R.GetProvidersRPCS with related. Sets related.R.Retrievals's GetProvidersRPCS accordingly.

func (*Retrieval) SetInitialRoutingTable

func (o *Retrieval) SetInitialRoutingTable(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoutingTableSnapshot) error

SetInitialRoutingTable of the retrieval to the related item. Sets o.R.InitialRoutingTable to related. Adds o to related.R.InitialRoutingTableRetrievals.

func (*Retrieval) SetPeerStates

func (o *Retrieval) SetPeerStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PeerState) error

SetPeerStates removes all previously related items of the retrieval replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Retrievals's PeerStates accordingly. Replaces o.R.PeerStates with related. Sets related.R.Retrievals's PeerStates accordingly.

func (*Retrieval) SetRetriever

func (o *Retrieval) SetRetriever(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetRetriever of the retrieval to the related item. Sets o.R.Retriever to related. Adds o to related.R.RetrieverRetrievals.

func (*Retrieval) Update

func (o *Retrieval) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Retrieval. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Retrieval) Upsert

func (o *Retrieval) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RetrievalHook

type RetrievalHook func(context.Context, boil.ContextExecutor, *Retrieval) error

RetrievalHook is the signature for custom Retrieval hook methods

type RetrievalSlice

type RetrievalSlice []*Retrieval

RetrievalSlice is an alias for a slice of pointers to Retrieval. This should almost always be used instead of []Retrieval.

func (RetrievalSlice) DeleteAll

func (o RetrievalSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*RetrievalSlice) ReloadAll

func (o *RetrievalSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RetrievalSlice) UpdateAll

func (o RetrievalSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RoutingTableEntry

type RoutingTableEntry struct {
	RoutingTableSnapshotID        int       `` /* 131-byte string literal not displayed */
	PeerID                        int       `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	Bucket                        int16     `boil:"bucket" json:"bucket" toml:"bucket" yaml:"bucket"`
	LastUsefulAt                  null.Time `boil:"last_useful_at" json:"last_useful_at,omitempty" toml:"last_useful_at" yaml:"last_useful_at,omitempty"`
	LastSuccessfulOutboundQueryAt time.Time `` /* 163-byte string literal not displayed */
	AddedAt                       time.Time `boil:"added_at" json:"added_at" toml:"added_at" yaml:"added_at"`
	ConnectedSince                null.Time `boil:"connected_since" json:"connected_since,omitempty" toml:"connected_since" yaml:"connected_since,omitempty"`

	R *routingTableEntryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L routingTableEntryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoutingTableEntry is an object representing the database table.

func FindRoutingTableEntry

func FindRoutingTableEntry(ctx context.Context, exec boil.ContextExecutor, routingTableSnapshotID int, peerID int, selectCols ...string) (*RoutingTableEntry, error)

FindRoutingTableEntry retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RoutingTableEntry) Delete

Delete deletes a single RoutingTableEntry record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoutingTableEntry) Insert

func (o *RoutingTableEntry) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoutingTableEntry) Peer

func (o *RoutingTableEntry) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*RoutingTableEntry) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*RoutingTableEntry) RoutingTableSnapshot

func (o *RoutingTableEntry) RoutingTableSnapshot(mods ...qm.QueryMod) routingTableSnapshotQuery

RoutingTableSnapshot pointed to by the foreign key.

func (*RoutingTableEntry) SetPeer

func (o *RoutingTableEntry) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the routingTableEntry to the related item. Sets o.R.Peer to related. Adds o to related.R.RoutingTableEntries.

func (*RoutingTableEntry) SetRoutingTableSnapshot

func (o *RoutingTableEntry) SetRoutingTableSnapshot(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RoutingTableSnapshot) error

SetRoutingTableSnapshot of the routingTableEntry to the related item. Sets o.R.RoutingTableSnapshot to related. Adds o to related.R.RoutingTableEntries.

func (*RoutingTableEntry) Update

func (o *RoutingTableEntry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoutingTableEntry. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoutingTableEntry) Upsert

func (o *RoutingTableEntry) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RoutingTableEntryHook

type RoutingTableEntryHook func(context.Context, boil.ContextExecutor, *RoutingTableEntry) error

RoutingTableEntryHook is the signature for custom RoutingTableEntry hook methods

type RoutingTableEntrySlice

type RoutingTableEntrySlice []*RoutingTableEntry

RoutingTableEntrySlice is an alias for a slice of pointers to RoutingTableEntry. This should almost always be used instead of []RoutingTableEntry.

func (RoutingTableEntrySlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*RoutingTableEntrySlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RoutingTableEntrySlice) UpdateAll

func (o RoutingTableEntrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RoutingTableSnapshot

type RoutingTableSnapshot struct {
	ID         int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	PeerID     int       `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	BucketSize int       `boil:"bucket_size" json:"bucket_size" toml:"bucket_size" yaml:"bucket_size"`
	EntryCount int       `boil:"entry_count" json:"entry_count" toml:"entry_count" yaml:"entry_count"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *routingTableSnapshotR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L routingTableSnapshotL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoutingTableSnapshot is an object representing the database table.

func FindRoutingTableSnapshot

func FindRoutingTableSnapshot(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*RoutingTableSnapshot, error)

FindRoutingTableSnapshot retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RoutingTableSnapshot) AddFinalRoutingTableProvides

func (o *RoutingTableSnapshot) AddFinalRoutingTableProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddFinalRoutingTableProvides adds the given related objects to the existing relationships of the routing_table_snapshot, optionally inserting them as new records. Appends related to o.R.FinalRoutingTableProvides. Sets related.R.FinalRoutingTable appropriately.

func (*RoutingTableSnapshot) AddFinalRoutingTableRetrievals

func (o *RoutingTableSnapshot) AddFinalRoutingTableRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddFinalRoutingTableRetrievals adds the given related objects to the existing relationships of the routing_table_snapshot, optionally inserting them as new records. Appends related to o.R.FinalRoutingTableRetrievals. Sets related.R.FinalRoutingTable appropriately.

func (*RoutingTableSnapshot) AddInitialRoutingTableProvides

func (o *RoutingTableSnapshot) AddInitialRoutingTableProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

AddInitialRoutingTableProvides adds the given related objects to the existing relationships of the routing_table_snapshot, optionally inserting them as new records. Appends related to o.R.InitialRoutingTableProvides. Sets related.R.InitialRoutingTable appropriately.

func (*RoutingTableSnapshot) AddInitialRoutingTableRetrievals

func (o *RoutingTableSnapshot) AddInitialRoutingTableRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

AddInitialRoutingTableRetrievals adds the given related objects to the existing relationships of the routing_table_snapshot, optionally inserting them as new records. Appends related to o.R.InitialRoutingTableRetrievals. Sets related.R.InitialRoutingTable appropriately.

func (*RoutingTableSnapshot) AddRoutingTableEntries

func (o *RoutingTableSnapshot) AddRoutingTableEntries(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoutingTableEntry) error

AddRoutingTableEntries adds the given related objects to the existing relationships of the routing_table_snapshot, optionally inserting them as new records. Appends related to o.R.RoutingTableEntries. Sets related.R.RoutingTableSnapshot appropriately.

func (*RoutingTableSnapshot) Delete

Delete deletes a single RoutingTableSnapshot record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoutingTableSnapshot) FinalRoutingTableProvides

func (o *RoutingTableSnapshot) FinalRoutingTableProvides(mods ...qm.QueryMod) provideQuery

FinalRoutingTableProvides retrieves all the provide's Provides with an executor via final_routing_table_id column.

func (*RoutingTableSnapshot) FinalRoutingTableRetrievals

func (o *RoutingTableSnapshot) FinalRoutingTableRetrievals(mods ...qm.QueryMod) retrievalQuery

FinalRoutingTableRetrievals retrieves all the retrieval's Retrievals with an executor via final_routing_table_id column.

func (*RoutingTableSnapshot) InitialRoutingTableProvides

func (o *RoutingTableSnapshot) InitialRoutingTableProvides(mods ...qm.QueryMod) provideQuery

InitialRoutingTableProvides retrieves all the provide's Provides with an executor via initial_routing_table_id column.

func (*RoutingTableSnapshot) InitialRoutingTableRetrievals

func (o *RoutingTableSnapshot) InitialRoutingTableRetrievals(mods ...qm.QueryMod) retrievalQuery

InitialRoutingTableRetrievals retrieves all the retrieval's Retrievals with an executor via initial_routing_table_id column.

func (*RoutingTableSnapshot) Insert

func (o *RoutingTableSnapshot) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RoutingTableSnapshot) Peer

func (o *RoutingTableSnapshot) Peer(mods ...qm.QueryMod) peerQuery

Peer pointed to by the foreign key.

func (*RoutingTableSnapshot) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*RoutingTableSnapshot) RemoveFinalRoutingTableProvides

func (o *RoutingTableSnapshot) RemoveFinalRoutingTableProvides(ctx context.Context, exec boil.ContextExecutor, related ...*Provide) error

RemoveFinalRoutingTableProvides relationships from objects passed in. Removes related items from R.FinalRoutingTableProvides (uses pointer comparison, removal does not keep order) Sets related.R.FinalRoutingTable.

func (*RoutingTableSnapshot) RemoveFinalRoutingTableRetrievals

func (o *RoutingTableSnapshot) RemoveFinalRoutingTableRetrievals(ctx context.Context, exec boil.ContextExecutor, related ...*Retrieval) error

RemoveFinalRoutingTableRetrievals relationships from objects passed in. Removes related items from R.FinalRoutingTableRetrievals (uses pointer comparison, removal does not keep order) Sets related.R.FinalRoutingTable.

func (*RoutingTableSnapshot) RoutingTableEntries

func (o *RoutingTableSnapshot) RoutingTableEntries(mods ...qm.QueryMod) routingTableEntryQuery

RoutingTableEntries retrieves all the routing_table_entry's RoutingTableEntries with an executor.

func (*RoutingTableSnapshot) SetFinalRoutingTableProvides

func (o *RoutingTableSnapshot) SetFinalRoutingTableProvides(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Provide) error

SetFinalRoutingTableProvides removes all previously related items of the routing_table_snapshot replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.FinalRoutingTable's FinalRoutingTableProvides accordingly. Replaces o.R.FinalRoutingTableProvides with related. Sets related.R.FinalRoutingTable's FinalRoutingTableProvides accordingly.

func (*RoutingTableSnapshot) SetFinalRoutingTableRetrievals

func (o *RoutingTableSnapshot) SetFinalRoutingTableRetrievals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Retrieval) error

SetFinalRoutingTableRetrievals removes all previously related items of the routing_table_snapshot replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.FinalRoutingTable's FinalRoutingTableRetrievals accordingly. Replaces o.R.FinalRoutingTableRetrievals with related. Sets related.R.FinalRoutingTable's FinalRoutingTableRetrievals accordingly.

func (*RoutingTableSnapshot) SetPeer

func (o *RoutingTableSnapshot) SetPeer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Peer) error

SetPeer of the routingTableSnapshot to the related item. Sets o.R.Peer to related. Adds o to related.R.RoutingTableSnapshots.

func (*RoutingTableSnapshot) Update

func (o *RoutingTableSnapshot) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RoutingTableSnapshot. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RoutingTableSnapshot) Upsert

func (o *RoutingTableSnapshot) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RoutingTableSnapshotHook

type RoutingTableSnapshotHook func(context.Context, boil.ContextExecutor, *RoutingTableSnapshot) error

RoutingTableSnapshotHook is the signature for custom RoutingTableSnapshot hook methods

type RoutingTableSnapshotSlice

type RoutingTableSnapshotSlice []*RoutingTableSnapshot

RoutingTableSnapshotSlice is an alias for a slice of pointers to RoutingTableSnapshot. This should almost always be used instead of []RoutingTableSnapshot.

func (RoutingTableSnapshotSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*RoutingTableSnapshotSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RoutingTableSnapshotSlice) UpdateAll

func (o RoutingTableSnapshotSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL