models

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HolePunchAttemptOutcomeUNKNOWN        string = "UNKNOWN"
	HolePunchAttemptOutcomeDIRECT_DIAL    string = "DIRECT_DIAL"
	HolePunchAttemptOutcomePROTOCOL_ERROR string = "PROTOCOL_ERROR"
	HolePunchAttemptOutcomeCANCELLED      string = "CANCELLED"
	HolePunchAttemptOutcomeTIMEOUT        string = "TIMEOUT"
	HolePunchAttemptOutcomeFAILED         string = "FAILED"
	HolePunchAttemptOutcomeSUCCESS        string = "SUCCESS"
)

Enum values for HolePunchAttemptOutcome

View Source
const (
	HolePunchOutcomeUNKNOWN             string = "UNKNOWN"
	HolePunchOutcomeNO_CONNECTION       string = "NO_CONNECTION"
	HolePunchOutcomeNO_STREAM           string = "NO_STREAM"
	HolePunchOutcomeCONNECTION_REVERSED string = "CONNECTION_REVERSED"
	HolePunchOutcomeCANCELLED           string = "CANCELLED"
	HolePunchOutcomeFAILED              string = "FAILED"
	HolePunchOutcomeSUCCESS             string = "SUCCESS"
)

Enum values for HolePunchOutcome

View Source
const (
	HolePunchMultiAddressRelationshipINITIAL string = "INITIAL"
	HolePunchMultiAddressRelationshipFINAL   string = "FINAL"
)

Enum values for HolePunchMultiAddressRelationship

View Source
const (
	LatencyMeasurementTypeTO_RELAY                  string = "TO_RELAY"
	LatencyMeasurementTypeTO_REMOTE_THROUGH_RELAY   string = "TO_REMOTE_THROUGH_RELAY"
	LatencyMeasurementTypeTO_REMOTE_AFTER_HOLEPUNCH string = "TO_REMOTE_AFTER_HOLEPUNCH"
)

Enum values for LatencyMeasurementType

Variables

View Source
var AuthorizationColumns = struct {
	ID        string
	APIKey    string
	Username  string
	CreatedAt string
}{
	ID:        "id",
	APIKey:    "api_key",
	Username:  "username",
	CreatedAt: "created_at",
}
View Source
var AuthorizationRels = struct {
	Clients string
}{
	Clients: "Clients",
}

AuthorizationRels is where relationship names are stored.

View Source
var AuthorizationTableColumns = struct {
	ID        string
	APIKey    string
	Username  string
	CreatedAt string
}{
	ID:        "authorizations.id",
	APIKey:    "authorizations.api_key",
	Username:  "authorizations.username",
	CreatedAt: "authorizations.created_at",
}
View Source
var AuthorizationWhere = struct {
	ID        whereHelperint
	APIKey    whereHelperstring
	Username  whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	APIKey:    whereHelperstring{/* contains filtered or unexported fields */},
	Username:  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ClientColumns = struct {
	ID              string
	PeerID          string
	AuthorizationID string
}{
	ID:              "id",
	PeerID:          "peer_id",
	AuthorizationID: "authorization_id",
}
View Source
var ClientRels = struct {
	Authorization string
	Peer          string
}{
	Authorization: "Authorization",
	Peer:          "Peer",
}

ClientRels is where relationship names are stored.

View Source
var ClientTableColumns = struct {
	ID              string
	PeerID          string
	AuthorizationID string
}{
	ID:              "clients.id",
	PeerID:          "clients.peer_id",
	AuthorizationID: "clients.authorization_id",
}
View Source
var ClientWhere = struct {
	ID              whereHelperint
	PeerID          whereHelperint64
	AuthorizationID whereHelperint
}{
	ID:              whereHelperint{/* contains filtered or unexported fields */},
	PeerID:          whereHelperint64{/* contains filtered or unexported fields */},
	AuthorizationID: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var ConnectionEventColumns = struct {
	ID                 string
	LocalID            string
	RemoteID           string
	ConnMultiAddressID string
	OpenedAt           string
	CreatedAt          string
}{
	ID:                 "id",
	LocalID:            "local_id",
	RemoteID:           "remote_id",
	ConnMultiAddressID: "conn_multi_address_id",
	OpenedAt:           "opened_at",
	CreatedAt:          "created_at",
}
View Source
var ConnectionEventRels = struct {
	Local            string
	ConnMultiAddress string
	Remote           string
	MultiAddresses   string
}{
	Local:            "Local",
	ConnMultiAddress: "ConnMultiAddress",
	Remote:           "Remote",
	MultiAddresses:   "MultiAddresses",
}

ConnectionEventRels is where relationship names are stored.

View Source
var ConnectionEventTableColumns = struct {
	ID                 string
	LocalID            string
	RemoteID           string
	ConnMultiAddressID string
	OpenedAt           string
	CreatedAt          string
}{
	ID:                 "connection_events.id",
	LocalID:            "connection_events.local_id",
	RemoteID:           "connection_events.remote_id",
	ConnMultiAddressID: "connection_events.conn_multi_address_id",
	OpenedAt:           "connection_events.opened_at",
	CreatedAt:          "connection_events.created_at",
}
View Source
var ConnectionEventWhere = struct {
	ID                 whereHelperint
	LocalID            whereHelperint64
	RemoteID           whereHelperint64
	ConnMultiAddressID whereHelperint64
	OpenedAt           whereHelpertime_Time
	CreatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	LocalID:            whereHelperint64{/* contains filtered or unexported fields */},
	RemoteID:           whereHelperint64{/* contains filtered or unexported fields */},
	ConnMultiAddressID: whereHelperint64{/* contains filtered or unexported fields */},
	OpenedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* 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 HolePunchAttemptColumns = struct {
	ID                string
	HolePunchResultID string
	OpenedAt          string
	StartedAt         string
	EndedAt           string
	StartRTT          string
	ElapsedTime       string
	Outcome           string
	Error             string
	DirectDialError   string
	UpdatedAt         string
	CreatedAt         string
}{
	ID:                "id",
	HolePunchResultID: "hole_punch_result_id",
	OpenedAt:          "opened_at",
	StartedAt:         "started_at",
	EndedAt:           "ended_at",
	StartRTT:          "start_rtt",
	ElapsedTime:       "elapsed_time",
	Outcome:           "outcome",
	Error:             "error",
	DirectDialError:   "direct_dial_error",
	UpdatedAt:         "updated_at",
	CreatedAt:         "created_at",
}
View Source
var HolePunchAttemptRels = struct {
	HolePunchResult string
	MultiAddresses  string
}{
	HolePunchResult: "HolePunchResult",
	MultiAddresses:  "MultiAddresses",
}

HolePunchAttemptRels is where relationship names are stored.

View Source
var HolePunchAttemptTableColumns = struct {
	ID                string
	HolePunchResultID string
	OpenedAt          string
	StartedAt         string
	EndedAt           string
	StartRTT          string
	ElapsedTime       string
	Outcome           string
	Error             string
	DirectDialError   string
	UpdatedAt         string
	CreatedAt         string
}{
	ID:                "hole_punch_attempt.id",
	HolePunchResultID: "hole_punch_attempt.hole_punch_result_id",
	OpenedAt:          "hole_punch_attempt.opened_at",
	StartedAt:         "hole_punch_attempt.started_at",
	EndedAt:           "hole_punch_attempt.ended_at",
	StartRTT:          "hole_punch_attempt.start_rtt",
	ElapsedTime:       "hole_punch_attempt.elapsed_time",
	Outcome:           "hole_punch_attempt.outcome",
	Error:             "hole_punch_attempt.error",
	DirectDialError:   "hole_punch_attempt.direct_dial_error",
	UpdatedAt:         "hole_punch_attempt.updated_at",
	CreatedAt:         "hole_punch_attempt.created_at",
}
View Source
var HolePunchAttemptWhere = struct {
	ID                whereHelperint
	HolePunchResultID whereHelperint
	OpenedAt          whereHelpertime_Time
	StartedAt         whereHelpernull_Time
	EndedAt           whereHelpertime_Time
	StartRTT          whereHelpernull_String
	ElapsedTime       whereHelperstring
	Outcome           whereHelperstring
	Error             whereHelpernull_String
	DirectDialError   whereHelpernull_String
	UpdatedAt         whereHelpertime_Time
	CreatedAt         whereHelpertime_Time
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	HolePunchResultID: whereHelperint{/* contains filtered or unexported fields */},
	OpenedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	StartedAt:         whereHelpernull_Time{/* contains filtered or unexported fields */},
	EndedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	StartRTT:          whereHelpernull_String{/* contains filtered or unexported fields */},
	ElapsedTime:       whereHelperstring{/* contains filtered or unexported fields */},
	Outcome:           whereHelperstring{/* contains filtered or unexported fields */},
	Error:             whereHelpernull_String{/* contains filtered or unexported fields */},
	DirectDialError:   whereHelpernull_String{/* contains filtered or unexported fields */},
	UpdatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var HolePunchResultColumns = struct {
	ID                        string
	LocalID                   string
	RemoteID                  string
	ConnectStartedAt          string
	ConnectEndedAt            string
	HasDirectConns            string
	Error                     string
	Outcome                   string
	EndedAt                   string
	ProtocolFilters           string
	UpdatedAt                 string
	CreatedAt                 string
	ListenMultiAddressesSetID string
}{
	ID:                        "id",
	LocalID:                   "local_id",
	RemoteID:                  "remote_id",
	ConnectStartedAt:          "connect_started_at",
	ConnectEndedAt:            "connect_ended_at",
	HasDirectConns:            "has_direct_conns",
	Error:                     "error",
	Outcome:                   "outcome",
	EndedAt:                   "ended_at",
	ProtocolFilters:           "protocol_filters",
	UpdatedAt:                 "updated_at",
	CreatedAt:                 "created_at",
	ListenMultiAddressesSetID: "listen_multi_addresses_set_id",
}
View Source
var HolePunchResultRels = struct {
	ListenMultiAddressesSet         string
	Local                           string
	Remote                          string
	HolePunchAttempts               string
	HolePunchResultsXMultiAddresses string
	LatencyMeasurements             string
	PortMappings                    string
}{
	ListenMultiAddressesSet:         "ListenMultiAddressesSet",
	Local:                           "Local",
	Remote:                          "Remote",
	HolePunchAttempts:               "HolePunchAttempts",
	HolePunchResultsXMultiAddresses: "HolePunchResultsXMultiAddresses",
	LatencyMeasurements:             "LatencyMeasurements",
	PortMappings:                    "PortMappings",
}

HolePunchResultRels is where relationship names are stored.

View Source
var HolePunchResultTableColumns = struct {
	ID                        string
	LocalID                   string
	RemoteID                  string
	ConnectStartedAt          string
	ConnectEndedAt            string
	HasDirectConns            string
	Error                     string
	Outcome                   string
	EndedAt                   string
	ProtocolFilters           string
	UpdatedAt                 string
	CreatedAt                 string
	ListenMultiAddressesSetID string
}{
	ID:                        "hole_punch_results.id",
	LocalID:                   "hole_punch_results.local_id",
	RemoteID:                  "hole_punch_results.remote_id",
	ConnectStartedAt:          "hole_punch_results.connect_started_at",
	ConnectEndedAt:            "hole_punch_results.connect_ended_at",
	HasDirectConns:            "hole_punch_results.has_direct_conns",
	Error:                     "hole_punch_results.error",
	Outcome:                   "hole_punch_results.outcome",
	EndedAt:                   "hole_punch_results.ended_at",
	ProtocolFilters:           "hole_punch_results.protocol_filters",
	UpdatedAt:                 "hole_punch_results.updated_at",
	CreatedAt:                 "hole_punch_results.created_at",
	ListenMultiAddressesSetID: "hole_punch_results.listen_multi_addresses_set_id",
}
View Source
var HolePunchResultWhere = struct {
	ID                        whereHelperint
	LocalID                   whereHelperint64
	RemoteID                  whereHelperint64
	ConnectStartedAt          whereHelpertime_Time
	ConnectEndedAt            whereHelpertime_Time
	HasDirectConns            whereHelperbool
	Error                     whereHelpernull_String
	Outcome                   whereHelperstring
	EndedAt                   whereHelpertime_Time
	ProtocolFilters           whereHelpertypes_Int64Array
	UpdatedAt                 whereHelpertime_Time
	CreatedAt                 whereHelpertime_Time
	ListenMultiAddressesSetID whereHelperint
}{
	ID:                        whereHelperint{/* contains filtered or unexported fields */},
	LocalID:                   whereHelperint64{/* contains filtered or unexported fields */},
	RemoteID:                  whereHelperint64{/* contains filtered or unexported fields */},
	ConnectStartedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	ConnectEndedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
	HasDirectConns:            whereHelperbool{/* contains filtered or unexported fields */},
	Error:                     whereHelpernull_String{/* contains filtered or unexported fields */},
	Outcome:                   whereHelperstring{/* contains filtered or unexported fields */},
	EndedAt:                   whereHelpertime_Time{/* contains filtered or unexported fields */},
	ProtocolFilters:           whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	UpdatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	ListenMultiAddressesSetID: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var HolePunchResultsXMultiAddressColumns = struct {
	HolePunchResultID string
	MultiAddressID    string
	Relationship      string
}{
	HolePunchResultID: "hole_punch_result_id",
	MultiAddressID:    "multi_address_id",
	Relationship:      "relationship",
}
View Source
var HolePunchResultsXMultiAddressRels = struct {
	HolePunchResult string
	MultiAddress    string
}{
	HolePunchResult: "HolePunchResult",
	MultiAddress:    "MultiAddress",
}

HolePunchResultsXMultiAddressRels is where relationship names are stored.

View Source
var HolePunchResultsXMultiAddressTableColumns = struct {
	HolePunchResultID string
	MultiAddressID    string
	Relationship      string
}{
	HolePunchResultID: "hole_punch_results_x_multi_addresses.hole_punch_result_id",
	MultiAddressID:    "hole_punch_results_x_multi_addresses.multi_address_id",
	Relationship:      "hole_punch_results_x_multi_addresses.relationship",
}
View Source
var HolePunchResultsXMultiAddressWhere = struct {
	HolePunchResultID whereHelperint
	MultiAddressID    whereHelperint64
	Relationship      whereHelperstring
}{
	HolePunchResultID: whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressID:    whereHelperint64{/* contains filtered or unexported fields */},
	Relationship:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var IPAddressColumns = struct {
	ID             string
	MultiAddressID string
	Asn            string
	IsCloud        string
	UpdatedAt      string
	CreatedAt      string
	Country        string
	Continent      string
	Address        string
}{
	ID:             "id",
	MultiAddressID: "multi_address_id",
	Asn:            "asn",
	IsCloud:        "is_cloud",
	UpdatedAt:      "updated_at",
	CreatedAt:      "created_at",
	Country:        "country",
	Continent:      "continent",
	Address:        "address",
}
View Source
var IPAddressRels = struct {
	MultiAddress string
}{
	MultiAddress: "MultiAddress",
}

IPAddressRels is where relationship names are stored.

View Source
var IPAddressTableColumns = struct {
	ID             string
	MultiAddressID string
	Asn            string
	IsCloud        string
	UpdatedAt      string
	CreatedAt      string
	Country        string
	Continent      string
	Address        string
}{
	ID:             "ip_addresses.id",
	MultiAddressID: "ip_addresses.multi_address_id",
	Asn:            "ip_addresses.asn",
	IsCloud:        "ip_addresses.is_cloud",
	UpdatedAt:      "ip_addresses.updated_at",
	CreatedAt:      "ip_addresses.created_at",
	Country:        "ip_addresses.country",
	Continent:      "ip_addresses.continent",
	Address:        "ip_addresses.address",
}
View Source
var IPAddressWhere = struct {
	ID             whereHelperint
	MultiAddressID whereHelperint64
	Asn            whereHelpernull_Int
	IsCloud        whereHelpernull_Int
	UpdatedAt      whereHelpertime_Time
	CreatedAt      whereHelpertime_Time
	Country        whereHelpernull_String
	Continent      whereHelpernull_String
	Address        whereHelperstring
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressID: whereHelperint64{/* contains filtered or unexported fields */},
	Asn:            whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsCloud:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	Country:        whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Address:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var LatencyMeasurementColumns = struct {
	ID                string
	RemoteID          string
	HolePunchResultID string
	MultiAddressID    string
	Mtype             string
	RTTS              string
	RTTErrs           string
	RTTAvg            string
	RTTMax            string
	RTTMin            string
	RTTSTD            string
}{
	ID:                "id",
	RemoteID:          "remote_id",
	HolePunchResultID: "hole_punch_result_id",
	MultiAddressID:    "multi_address_id",
	Mtype:             "mtype",
	RTTS:              "rtts",
	RTTErrs:           "rtt_errs",
	RTTAvg:            "rtt_avg",
	RTTMax:            "rtt_max",
	RTTMin:            "rtt_min",
	RTTSTD:            "rtt_std",
}
View Source
var LatencyMeasurementRels = struct {
	HolePunchResult string
	MultiAddress    string
	Remote          string
}{
	HolePunchResult: "HolePunchResult",
	MultiAddress:    "MultiAddress",
	Remote:          "Remote",
}

LatencyMeasurementRels is where relationship names are stored.

View Source
var LatencyMeasurementTableColumns = struct {
	ID                string
	RemoteID          string
	HolePunchResultID string
	MultiAddressID    string
	Mtype             string
	RTTS              string
	RTTErrs           string
	RTTAvg            string
	RTTMax            string
	RTTMin            string
	RTTSTD            string
}{
	ID:                "latency_measurements.id",
	RemoteID:          "latency_measurements.remote_id",
	HolePunchResultID: "latency_measurements.hole_punch_result_id",
	MultiAddressID:    "latency_measurements.multi_address_id",
	Mtype:             "latency_measurements.mtype",
	RTTS:              "latency_measurements.rtts",
	RTTErrs:           "latency_measurements.rtt_errs",
	RTTAvg:            "latency_measurements.rtt_avg",
	RTTMax:            "latency_measurements.rtt_max",
	RTTMin:            "latency_measurements.rtt_min",
	RTTSTD:            "latency_measurements.rtt_std",
}
View Source
var LatencyMeasurementWhere = struct {
	ID                whereHelperint
	RemoteID          whereHelperint64
	HolePunchResultID whereHelperint
	MultiAddressID    whereHelperint64
	Mtype             whereHelperstring
	RTTS              whereHelpertypes_Float64Array
	RTTErrs           whereHelpertypes_StringArray
	RTTAvg            whereHelperfloat64
	RTTMax            whereHelperfloat64
	RTTMin            whereHelperfloat64
	RTTSTD            whereHelperfloat64
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	RemoteID:          whereHelperint64{/* contains filtered or unexported fields */},
	HolePunchResultID: whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressID:    whereHelperint64{/* contains filtered or unexported fields */},
	Mtype:             whereHelperstring{/* contains filtered or unexported fields */},
	RTTS:              whereHelpertypes_Float64Array{/* contains filtered or unexported fields */},
	RTTErrs:           whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	RTTAvg:            whereHelperfloat64{/* contains filtered or unexported fields */},
	RTTMax:            whereHelperfloat64{/* contains filtered or unexported fields */},
	RTTMin:            whereHelperfloat64{/* contains filtered or unexported fields */},
	RTTSTD:            whereHelperfloat64{/* contains filtered or unexported fields */},
}
View Source
var MultiAddressColumns = struct {
	ID           string
	Asn          string
	IsCloud      string
	IsRelay      string
	IsPublic     string
	Addr         string
	HasManyAddrs string
	Country      string
	Continent    string
	Maddr        string
	UpdatedAt    string
	CreatedAt    string
}{
	ID:           "id",
	Asn:          "asn",
	IsCloud:      "is_cloud",
	IsRelay:      "is_relay",
	IsPublic:     "is_public",
	Addr:         "addr",
	HasManyAddrs: "has_many_addrs",
	Country:      "country",
	Continent:    "continent",
	Maddr:        "maddr",
	UpdatedAt:    "updated_at",
	CreatedAt:    "created_at",
}
View Source
var MultiAddressRels = struct {
	ConnMultiAddressConnectionEvents string
	ConnectionEvents                 string
	HolePunchAttempts                string
	HolePunchResultsXMultiAddresses  string
	IPAddresses                      string
	LatencyMeasurements              string
}{
	ConnMultiAddressConnectionEvents: "ConnMultiAddressConnectionEvents",
	ConnectionEvents:                 "ConnectionEvents",
	HolePunchAttempts:                "HolePunchAttempts",
	HolePunchResultsXMultiAddresses:  "HolePunchResultsXMultiAddresses",
	IPAddresses:                      "IPAddresses",
	LatencyMeasurements:              "LatencyMeasurements",
}

MultiAddressRels is where relationship names are stored.

View Source
var MultiAddressTableColumns = struct {
	ID           string
	Asn          string
	IsCloud      string
	IsRelay      string
	IsPublic     string
	Addr         string
	HasManyAddrs string
	Country      string
	Continent    string
	Maddr        string
	UpdatedAt    string
	CreatedAt    string
}{
	ID:           "multi_addresses.id",
	Asn:          "multi_addresses.asn",
	IsCloud:      "multi_addresses.is_cloud",
	IsRelay:      "multi_addresses.is_relay",
	IsPublic:     "multi_addresses.is_public",
	Addr:         "multi_addresses.addr",
	HasManyAddrs: "multi_addresses.has_many_addrs",
	Country:      "multi_addresses.country",
	Continent:    "multi_addresses.continent",
	Maddr:        "multi_addresses.maddr",
	UpdatedAt:    "multi_addresses.updated_at",
	CreatedAt:    "multi_addresses.created_at",
}
View Source
var MultiAddressWhere = struct {
	ID           whereHelperint64
	Asn          whereHelpernull_Int
	IsCloud      whereHelpernull_Int
	IsRelay      whereHelpernull_Bool
	IsPublic     whereHelpernull_Bool
	Addr         whereHelpernull_String
	HasManyAddrs whereHelpernull_Bool
	Country      whereHelpernull_String
	Continent    whereHelpernull_String
	Maddr        whereHelperstring
	UpdatedAt    whereHelpertime_Time
	CreatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	Asn:          whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsCloud:      whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsRelay:      whereHelpernull_Bool{/* contains filtered or unexported fields */},
	IsPublic:     whereHelpernull_Bool{/* contains filtered or unexported fields */},
	Addr:         whereHelpernull_String{/* contains filtered or unexported fields */},
	HasManyAddrs: whereHelpernull_Bool{/* contains filtered or unexported fields */},
	Country:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent:    whereHelpernull_String{/* contains filtered or unexported fields */},
	Maddr:        whereHelperstring{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MultiAddressesSetColumns = struct {
	ID                string
	MultiAddressesIds string
	Digest            string
}{
	ID:                "id",
	MultiAddressesIds: "multi_addresses_ids",
	Digest:            "digest",
}
View Source
var MultiAddressesSetRels = struct {
	ListenMultiAddressesSetHolePunchResults string
}{
	ListenMultiAddressesSetHolePunchResults: "ListenMultiAddressesSetHolePunchResults",
}

MultiAddressesSetRels is where relationship names are stored.

View Source
var MultiAddressesSetTableColumns = struct {
	ID                string
	MultiAddressesIds string
	Digest            string
}{
	ID:                "multi_addresses_sets.id",
	MultiAddressesIds: "multi_addresses_sets.multi_addresses_ids",
	Digest:            "multi_addresses_sets.digest",
}
View Source
var MultiAddressesSetWhere = struct {
	ID                whereHelperint
	MultiAddressesIds whereHelpertypes_Int64Array
	Digest            whereHelper__byte
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	MultiAddressesIds: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	Digest:            whereHelper__byte{/* contains filtered or unexported fields */},
}
View Source
var NetworkInformationColumns = struct {
	ID                string
	PeerID            string
	SupportsIpv6      string
	SupportsIpv6Error string
	RouterHTML        string
	RouterHTMLError   string
	CreatedAt         string
}{
	ID:                "id",
	PeerID:            "peer_id",
	SupportsIpv6:      "supports_ipv6",
	SupportsIpv6Error: "supports_ipv6_error",
	RouterHTML:        "router_html",
	RouterHTMLError:   "router_html_error",
	CreatedAt:         "created_at",
}
View Source
var NetworkInformationRels = struct {
	Peer string
}{
	Peer: "Peer",
}

NetworkInformationRels is where relationship names are stored.

View Source
var NetworkInformationTableColumns = struct {
	ID                string
	PeerID            string
	SupportsIpv6      string
	SupportsIpv6Error string
	RouterHTML        string
	RouterHTMLError   string
	CreatedAt         string
}{
	ID:                "network_information.id",
	PeerID:            "network_information.peer_id",
	SupportsIpv6:      "network_information.supports_ipv6",
	SupportsIpv6Error: "network_information.supports_ipv6_error",
	RouterHTML:        "network_information.router_html",
	RouterHTMLError:   "network_information.router_html_error",
	CreatedAt:         "network_information.created_at",
}
View Source
var NetworkInformationWhere = struct {
	ID                whereHelperint
	PeerID            whereHelperint64
	SupportsIpv6      whereHelpernull_Bool
	SupportsIpv6Error whereHelpernull_String
	RouterHTML        whereHelpernull_String
	RouterHTMLError   whereHelpernull_String
	CreatedAt         whereHelpertime_Time
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	PeerID:            whereHelperint64{/* contains filtered or unexported fields */},
	SupportsIpv6:      whereHelpernull_Bool{/* contains filtered or unexported fields */},
	SupportsIpv6Error: whereHelpernull_String{/* contains filtered or unexported fields */},
	RouterHTML:        whereHelpernull_String{/* contains filtered or unexported fields */},
	RouterHTMLError:   whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:         whereHelpertime_Time{/* 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    whereHelperint64
	Field     whereHelperstring
	Old       whereHelperstring
	New       whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	PeerID:    whereHelperint64{/* 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 {
	Clients                   string
	LocalConnectionEvents     string
	RemoteConnectionEvents    string
	LocalHolePunchResults     string
	RemoteHolePunchResults    string
	RemoteLatencyMeasurements string
	NetworkInformations       string
	PeerLogs                  string
}{
	Clients:                   "Clients",
	LocalConnectionEvents:     "LocalConnectionEvents",
	RemoteConnectionEvents:    "RemoteConnectionEvents",
	LocalHolePunchResults:     "LocalHolePunchResults",
	RemoteHolePunchResults:    "RemoteHolePunchResults",
	RemoteLatencyMeasurements: "RemoteLatencyMeasurements",
	NetworkInformations:       "NetworkInformations",
	PeerLogs:                  "PeerLogs",
}

PeerRels is where relationship names are stored.

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           whereHelperint64
	MultiHash    whereHelperstring
	AgentVersion whereHelpernull_String
	Protocols    whereHelpertypes_StringArray
	UpdatedAt    whereHelpertime_Time
	CreatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint64{/* 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 PortMappingColumns = struct {
	ID                string
	HolePunchResultID string
	InternalPort      string
	ExternalPort      string
	Protocol          string
	Addr              string
	AddrNetwork       string
}{
	ID:                "id",
	HolePunchResultID: "hole_punch_result_id",
	InternalPort:      "internal_port",
	ExternalPort:      "external_port",
	Protocol:          "protocol",
	Addr:              "addr",
	AddrNetwork:       "addr_network",
}
View Source
var PortMappingRels = struct {
	HolePunchResult string
}{
	HolePunchResult: "HolePunchResult",
}

PortMappingRels is where relationship names are stored.

View Source
var PortMappingTableColumns = struct {
	ID                string
	HolePunchResultID string
	InternalPort      string
	ExternalPort      string
	Protocol          string
	Addr              string
	AddrNetwork       string
}{
	ID:                "port_mappings.id",
	HolePunchResultID: "port_mappings.hole_punch_result_id",
	InternalPort:      "port_mappings.internal_port",
	ExternalPort:      "port_mappings.external_port",
	Protocol:          "port_mappings.protocol",
	Addr:              "port_mappings.addr",
	AddrNetwork:       "port_mappings.addr_network",
}
View Source
var PortMappingWhere = struct {
	ID                whereHelperint
	HolePunchResultID whereHelperint
	InternalPort      whereHelperint
	ExternalPort      whereHelperint
	Protocol          whereHelperstring
	Addr              whereHelperstring
	AddrNetwork       whereHelperstring
}{
	ID:                whereHelperint{/* contains filtered or unexported fields */},
	HolePunchResultID: whereHelperint{/* contains filtered or unexported fields */},
	InternalPort:      whereHelperint{/* contains filtered or unexported fields */},
	ExternalPort:      whereHelperint{/* contains filtered or unexported fields */},
	Protocol:          whereHelperstring{/* contains filtered or unexported fields */},
	Addr:              whereHelperstring{/* contains filtered or unexported fields */},
	AddrNetwork:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Authorizations                  string
	Clients                         string
	ConnectionEvents                string
	ConnectionEventsXMultiAddresses string
	HolePunchAttempt                string
	HolePunchAttemptXMultiAddresses string
	HolePunchResults                string
	HolePunchResultsXMultiAddresses string
	IPAddresses                     string
	LatencyMeasurements             string
	MultiAddresses                  string
	MultiAddressesSets              string
	NetworkInformation              string
	PeerLogs                        string
	Peers                           string
	PortMappings                    string
}{
	Authorizations:                  "authorizations",
	Clients:                         "clients",
	ConnectionEvents:                "connection_events",
	ConnectionEventsXMultiAddresses: "connection_events_x_multi_addresses",
	HolePunchAttempt:                "hole_punch_attempt",
	HolePunchAttemptXMultiAddresses: "hole_punch_attempt_x_multi_addresses",
	HolePunchResults:                "hole_punch_results",
	HolePunchResultsXMultiAddresses: "hole_punch_results_x_multi_addresses",
	IPAddresses:                     "ip_addresses",
	LatencyMeasurements:             "latency_measurements",
	MultiAddresses:                  "multi_addresses",
	MultiAddressesSets:              "multi_addresses_sets",
	NetworkInformation:              "network_information",
	PeerLogs:                        "peer_logs",
	Peers:                           "peers",
	PortMappings:                    "port_mappings",
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAuthorizationHook

func AddAuthorizationHook(hookPoint boil.HookPoint, authorizationHook AuthorizationHook)

AddAuthorizationHook registers your hook function for all future operations.

func AddClientHook

func AddClientHook(hookPoint boil.HookPoint, clientHook ClientHook)

AddClientHook registers your hook function for all future operations.

func AddConnectionEventHook

func AddConnectionEventHook(hookPoint boil.HookPoint, connectionEventHook ConnectionEventHook)

AddConnectionEventHook registers your hook function for all future operations.

func AddHolePunchAttemptHook

func AddHolePunchAttemptHook(hookPoint boil.HookPoint, holePunchAttemptHook HolePunchAttemptHook)

AddHolePunchAttemptHook registers your hook function for all future operations.

func AddHolePunchResultHook

func AddHolePunchResultHook(hookPoint boil.HookPoint, holePunchResultHook HolePunchResultHook)

AddHolePunchResultHook registers your hook function for all future operations.

func AddHolePunchResultsXMultiAddressHook

func AddHolePunchResultsXMultiAddressHook(hookPoint boil.HookPoint, holePunchResultsXMultiAddressHook HolePunchResultsXMultiAddressHook)

AddHolePunchResultsXMultiAddressHook 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 AddLatencyMeasurementHook added in v0.6.0

func AddLatencyMeasurementHook(hookPoint boil.HookPoint, latencyMeasurementHook LatencyMeasurementHook)

AddLatencyMeasurementHook 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 AddMultiAddressesSetHook added in v0.3.0

func AddMultiAddressesSetHook(hookPoint boil.HookPoint, multiAddressesSetHook MultiAddressesSetHook)

AddMultiAddressesSetHook registers your hook function for all future operations.

func AddNetworkInformationHook added in v0.6.0

func AddNetworkInformationHook(hookPoint boil.HookPoint, networkInformationHook NetworkInformationHook)

AddNetworkInformationHook 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 AddPortMappingHook added in v0.7.0

func AddPortMappingHook(hookPoint boil.HookPoint, portMappingHook PortMappingHook)

AddPortMappingHook registers your hook function for all future operations.

func AllHolePunchAttemptOutcome added in v0.5.0

func AllHolePunchAttemptOutcome() []string

func AllHolePunchMultiAddressRelationship added in v0.5.0

func AllHolePunchMultiAddressRelationship() []string

func AllHolePunchOutcome added in v0.5.0

func AllHolePunchOutcome() []string

func AllLatencyMeasurementType added in v0.6.0

func AllLatencyMeasurementType() []string

func AuthorizationExists

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

AuthorizationExists checks if the Authorization row exists.

func Authorizations

func Authorizations(mods ...qm.QueryMod) authorizationQuery

Authorizations retrieves all the records using an executor.

func ClientExists

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

ClientExists checks if the Client row exists.

func Clients

func Clients(mods ...qm.QueryMod) clientQuery

Clients retrieves all the records using an executor.

func ConnectionEventExists

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

ConnectionEventExists checks if the ConnectionEvent row exists.

func ConnectionEvents

func ConnectionEvents(mods ...qm.QueryMod) connectionEventQuery

ConnectionEvents retrieves all the records using an executor.

func HolePunchAttemptExists

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

HolePunchAttemptExists checks if the HolePunchAttempt row exists.

func HolePunchAttempts

func HolePunchAttempts(mods ...qm.QueryMod) holePunchAttemptQuery

HolePunchAttempts retrieves all the records using an executor.

func HolePunchResultExists

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

HolePunchResultExists checks if the HolePunchResult row exists.

func HolePunchResults

func HolePunchResults(mods ...qm.QueryMod) holePunchResultQuery

HolePunchResults retrieves all the records using an executor.

func HolePunchResultsXMultiAddressExists

func HolePunchResultsXMultiAddressExists(ctx context.Context, exec boil.ContextExecutor, multiAddressID int64, holePunchResultID int, relationship string) (bool, error)

HolePunchResultsXMultiAddressExists checks if the HolePunchResultsXMultiAddress row exists.

func HolePunchResultsXMultiAddresses

func HolePunchResultsXMultiAddresses(mods ...qm.QueryMod) holePunchResultsXMultiAddressQuery

HolePunchResultsXMultiAddresses 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 LatencyMeasurementExists added in v0.6.0

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

LatencyMeasurementExists checks if the LatencyMeasurement row exists.

func LatencyMeasurements added in v0.6.0

func LatencyMeasurements(mods ...qm.QueryMod) latencyMeasurementQuery

LatencyMeasurements retrieves all the records using an executor.

func MultiAddressExists

func MultiAddressExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (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 MultiAddressesSetExists added in v0.3.0

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

MultiAddressesSetExists checks if the MultiAddressesSet row exists.

func MultiAddressesSets added in v0.3.0

func MultiAddressesSets(mods ...qm.QueryMod) multiAddressesSetQuery

MultiAddressesSets retrieves all the records using an executor.

func NetworkInformationExists added in v0.6.0

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

NetworkInformationExists checks if the NetworkInformation row exists.

func NetworkInformations added in v0.6.0

func NetworkInformations(mods ...qm.QueryMod) networkInformationQuery

NetworkInformations 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 int64) (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 Peers

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

Peers retrieves all the records using an executor.

func PortMappingExists added in v0.7.0

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

PortMappingExists checks if the PortMapping row exists.

func PortMappings added in v0.7.0

func PortMappings(mods ...qm.QueryMod) portMappingQuery

PortMappings retrieves all the records using an executor.

Types

type Authorization

type Authorization struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	APIKey    string    `boil:"api_key" json:"api_key" toml:"api_key" yaml:"api_key"`
	Username  string    `boil:"username" json:"username" toml:"username" yaml:"username"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *authorizationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authorizationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Authorization is an object representing the database table.

func FindAuthorization

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

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

func (*Authorization) AddClients

func (o *Authorization) AddClients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Client) error

AddClients adds the given related objects to the existing relationships of the authorization, optionally inserting them as new records. Appends related to o.R.Clients. Sets related.R.Authorization appropriately.

func (*Authorization) Clients

func (o *Authorization) Clients(mods ...qm.QueryMod) clientQuery

Clients retrieves all the client's Clients with an executor.

func (*Authorization) Delete

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

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

func (*Authorization) Insert

func (o *Authorization) 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 (*Authorization) Reload

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

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

func (*Authorization) Update

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

Update uses an executor to update the Authorization. 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 (*Authorization) Upsert

func (o *Authorization) 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 AuthorizationHook

type AuthorizationHook func(context.Context, boil.ContextExecutor, *Authorization) error

AuthorizationHook is the signature for custom Authorization hook methods

type AuthorizationSlice

type AuthorizationSlice []*Authorization

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

func (AuthorizationSlice) DeleteAll

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

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

func (*AuthorizationSlice) ReloadAll

func (o *AuthorizationSlice) 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 (AuthorizationSlice) UpdateAll

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

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

type Client

type Client struct {
	ID              int   `boil:"id" json:"id" toml:"id" yaml:"id"`
	PeerID          int64 `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	AuthorizationID int   `boil:"authorization_id" json:"authorization_id" toml:"authorization_id" yaml:"authorization_id"`

	R *clientR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L clientL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Client is an object representing the database table.

func FindClient

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

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

func (*Client) Authorization

func (o *Client) Authorization(mods ...qm.QueryMod) authorizationQuery

Authorization pointed to by the foreign key.

func (*Client) Delete

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

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

func (*Client) Insert

func (o *Client) 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 (*Client) Peer

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

Peer pointed to by the foreign key.

func (*Client) Reload

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

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

func (*Client) SetAuthorization

func (o *Client) SetAuthorization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Authorization) error

SetAuthorization of the client to the related item. Sets o.R.Authorization to related. Adds o to related.R.Clients.

func (*Client) SetPeer

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

SetPeer of the client to the related item. Sets o.R.Peer to related. Adds o to related.R.Clients.

func (*Client) Update

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

Update uses an executor to update the Client. 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 (*Client) Upsert

func (o *Client) 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 ClientHook

type ClientHook func(context.Context, boil.ContextExecutor, *Client) error

ClientHook is the signature for custom Client hook methods

type ClientSlice

type ClientSlice []*Client

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

func (ClientSlice) DeleteAll

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

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

func (*ClientSlice) ReloadAll

func (o *ClientSlice) 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 (ClientSlice) UpdateAll

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

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

type ConnectionEvent

type ConnectionEvent struct {
	ID                 int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	LocalID            int64     `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID           int64     `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	ConnMultiAddressID int64     `boil:"conn_multi_address_id" json:"conn_multi_address_id" toml:"conn_multi_address_id" yaml:"conn_multi_address_id"`
	OpenedAt           time.Time `boil:"opened_at" json:"opened_at" toml:"opened_at" yaml:"opened_at"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *connectionEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L connectionEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ConnectionEvent is an object representing the database table.

func FindConnectionEvent

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

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

func (*ConnectionEvent) AddMultiAddresses

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

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

func (*ConnectionEvent) ConnMultiAddress added in v0.6.0

func (o *ConnectionEvent) ConnMultiAddress(mods ...qm.QueryMod) multiAddressQuery

ConnMultiAddress pointed to by the foreign key.

func (*ConnectionEvent) Delete

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

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

func (*ConnectionEvent) Insert

func (o *ConnectionEvent) 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 (*ConnectionEvent) Local

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

Local pointed to by the foreign key.

func (*ConnectionEvent) MultiAddresses

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

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

func (*ConnectionEvent) Reload

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

func (*ConnectionEvent) Remote

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

Remote pointed to by the foreign key.

func (*ConnectionEvent) RemoveMultiAddresses

func (o *ConnectionEvent) 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.ConnectionEvents.

func (*ConnectionEvent) SetConnMultiAddress added in v0.6.0

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

SetConnMultiAddress of the connectionEvent to the related item. Sets o.R.ConnMultiAddress to related. Adds o to related.R.ConnMultiAddressConnectionEvents.

func (*ConnectionEvent) SetLocal

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

SetLocal of the connectionEvent to the related item. Sets o.R.Local to related. Adds o to related.R.LocalConnectionEvents.

func (*ConnectionEvent) SetMultiAddresses

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

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

func (*ConnectionEvent) SetRemote

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

SetRemote of the connectionEvent to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteConnectionEvents.

func (*ConnectionEvent) Update

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

Update uses an executor to update the ConnectionEvent. 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 (*ConnectionEvent) Upsert

func (o *ConnectionEvent) 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 ConnectionEventHook

type ConnectionEventHook func(context.Context, boil.ContextExecutor, *ConnectionEvent) error

ConnectionEventHook is the signature for custom ConnectionEvent hook methods

type ConnectionEventSlice

type ConnectionEventSlice []*ConnectionEvent

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

func (ConnectionEventSlice) DeleteAll

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

func (*ConnectionEventSlice) ReloadAll

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

func (ConnectionEventSlice) UpdateAll

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

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

type HolePunchAttempt

type HolePunchAttempt struct {
	ID                int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	HolePunchResultID int         `boil:"hole_punch_result_id" json:"hole_punch_result_id" toml:"hole_punch_result_id" yaml:"hole_punch_result_id"`
	OpenedAt          time.Time   `boil:"opened_at" json:"opened_at" toml:"opened_at" yaml:"opened_at"`
	StartedAt         null.Time   `boil:"started_at" json:"started_at,omitempty" toml:"started_at" yaml:"started_at,omitempty"`
	EndedAt           time.Time   `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	StartRTT          null.String `boil:"start_rtt" json:"start_rtt,omitempty" toml:"start_rtt" yaml:"start_rtt,omitempty"`
	ElapsedTime       string      `boil:"elapsed_time" json:"elapsed_time" toml:"elapsed_time" yaml:"elapsed_time"`
	Outcome           string      `boil:"outcome" json:"outcome" toml:"outcome" yaml:"outcome"`
	Error             null.String `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`
	DirectDialError   null.String `boil:"direct_dial_error" json:"direct_dial_error,omitempty" toml:"direct_dial_error" yaml:"direct_dial_error,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 *holePunchAttemptR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L holePunchAttemptL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

HolePunchAttempt is an object representing the database table.

func FindHolePunchAttempt

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

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

func (*HolePunchAttempt) AddMultiAddresses added in v0.4.0

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

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

func (*HolePunchAttempt) Delete

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

func (*HolePunchAttempt) HolePunchResult

func (o *HolePunchAttempt) HolePunchResult(mods ...qm.QueryMod) holePunchResultQuery

HolePunchResult pointed to by the foreign key.

func (*HolePunchAttempt) Insert

func (o *HolePunchAttempt) 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 (*HolePunchAttempt) MultiAddresses added in v0.4.0

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

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

func (*HolePunchAttempt) Reload

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

func (*HolePunchAttempt) RemoveMultiAddresses added in v0.4.0

func (o *HolePunchAttempt) 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.HolePunchAttempts.

func (*HolePunchAttempt) SetHolePunchResult

func (o *HolePunchAttempt) SetHolePunchResult(ctx context.Context, exec boil.ContextExecutor, insert bool, related *HolePunchResult) error

SetHolePunchResult of the holePunchAttempt to the related item. Sets o.R.HolePunchResult to related. Adds o to related.R.HolePunchAttempts.

func (*HolePunchAttempt) SetMultiAddresses added in v0.4.0

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

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

func (*HolePunchAttempt) Update

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

Update uses an executor to update the HolePunchAttempt. 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 (*HolePunchAttempt) Upsert

func (o *HolePunchAttempt) 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 HolePunchAttemptHook

type HolePunchAttemptHook func(context.Context, boil.ContextExecutor, *HolePunchAttempt) error

HolePunchAttemptHook is the signature for custom HolePunchAttempt hook methods

type HolePunchAttemptSlice

type HolePunchAttemptSlice []*HolePunchAttempt

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

func (HolePunchAttemptSlice) DeleteAll

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

func (*HolePunchAttemptSlice) ReloadAll

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

func (HolePunchAttemptSlice) UpdateAll

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

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

type HolePunchResult

type HolePunchResult struct {
	ID                        int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	LocalID                   int64            `boil:"local_id" json:"local_id" toml:"local_id" yaml:"local_id"`
	RemoteID                  int64            `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	ConnectStartedAt          time.Time        `boil:"connect_started_at" json:"connect_started_at" toml:"connect_started_at" yaml:"connect_started_at"`
	ConnectEndedAt            time.Time        `boil:"connect_ended_at" json:"connect_ended_at" toml:"connect_ended_at" yaml:"connect_ended_at"`
	HasDirectConns            bool             `boil:"has_direct_conns" json:"has_direct_conns" toml:"has_direct_conns" yaml:"has_direct_conns"`
	Error                     null.String      `boil:"error" json:"error,omitempty" toml:"error" yaml:"error,omitempty"`
	Outcome                   string           `boil:"outcome" json:"outcome" toml:"outcome" yaml:"outcome"`
	EndedAt                   time.Time        `boil:"ended_at" json:"ended_at" toml:"ended_at" yaml:"ended_at"`
	ProtocolFilters           types.Int64Array `boil:"protocol_filters" json:"protocol_filters" toml:"protocol_filters" yaml:"protocol_filters"`
	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"`
	ListenMultiAddressesSetID int              `` /* 147-byte string literal not displayed */

	R *holePunchResultR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L holePunchResultL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

HolePunchResult is an object representing the database table.

func FindHolePunchResult

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

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

func (*HolePunchResult) AddHolePunchAttempts

func (o *HolePunchResult) AddHolePunchAttempts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*HolePunchAttempt) error

AddHolePunchAttempts adds the given related objects to the existing relationships of the hole_punch_result, optionally inserting them as new records. Appends related to o.R.HolePunchAttempts. Sets related.R.HolePunchResult appropriately.

func (*HolePunchResult) AddHolePunchResultsXMultiAddresses

func (o *HolePunchResult) AddHolePunchResultsXMultiAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*HolePunchResultsXMultiAddress) error

AddHolePunchResultsXMultiAddresses adds the given related objects to the existing relationships of the hole_punch_result, optionally inserting them as new records. Appends related to o.R.HolePunchResultsXMultiAddresses. Sets related.R.HolePunchResult appropriately.

func (*HolePunchResult) AddLatencyMeasurements added in v0.6.0

func (o *HolePunchResult) AddLatencyMeasurements(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*LatencyMeasurement) error

AddLatencyMeasurements adds the given related objects to the existing relationships of the hole_punch_result, optionally inserting them as new records. Appends related to o.R.LatencyMeasurements. Sets related.R.HolePunchResult appropriately.

func (*HolePunchResult) AddPortMappings added in v0.7.0

func (o *HolePunchResult) AddPortMappings(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PortMapping) error

AddPortMappings adds the given related objects to the existing relationships of the hole_punch_result, optionally inserting them as new records. Appends related to o.R.PortMappings. Sets related.R.HolePunchResult appropriately.

func (*HolePunchResult) Delete

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

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

func (*HolePunchResult) HolePunchAttempts

func (o *HolePunchResult) HolePunchAttempts(mods ...qm.QueryMod) holePunchAttemptQuery

HolePunchAttempts retrieves all the hole_punch_attempt's HolePunchAttempts with an executor.

func (*HolePunchResult) HolePunchResultsXMultiAddresses

func (o *HolePunchResult) HolePunchResultsXMultiAddresses(mods ...qm.QueryMod) holePunchResultsXMultiAddressQuery

HolePunchResultsXMultiAddresses retrieves all the hole_punch_results_x_multi_address's HolePunchResultsXMultiAddresses with an executor.

func (*HolePunchResult) Insert

func (o *HolePunchResult) 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 (*HolePunchResult) LatencyMeasurements added in v0.6.0

func (o *HolePunchResult) LatencyMeasurements(mods ...qm.QueryMod) latencyMeasurementQuery

LatencyMeasurements retrieves all the latency_measurement's LatencyMeasurements with an executor.

func (*HolePunchResult) ListenMultiAddressesSet added in v0.3.0

func (o *HolePunchResult) ListenMultiAddressesSet(mods ...qm.QueryMod) multiAddressesSetQuery

ListenMultiAddressesSet pointed to by the foreign key.

func (*HolePunchResult) Local added in v0.6.0

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

Local pointed to by the foreign key.

func (*HolePunchResult) PortMappings added in v0.7.0

func (o *HolePunchResult) PortMappings(mods ...qm.QueryMod) portMappingQuery

PortMappings retrieves all the port_mapping's PortMappings with an executor.

func (*HolePunchResult) Reload

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

func (*HolePunchResult) Remote

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

Remote pointed to by the foreign key.

func (*HolePunchResult) SetListenMultiAddressesSet added in v0.3.0

func (o *HolePunchResult) SetListenMultiAddressesSet(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MultiAddressesSet) error

SetListenMultiAddressesSet of the holePunchResult to the related item. Sets o.R.ListenMultiAddressesSet to related. Adds o to related.R.ListenMultiAddressesSetHolePunchResults.

func (*HolePunchResult) SetLocal added in v0.6.0

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

SetLocal of the holePunchResult to the related item. Sets o.R.Local to related. Adds o to related.R.LocalHolePunchResults.

func (*HolePunchResult) SetRemote

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

SetRemote of the holePunchResult to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteHolePunchResults.

func (*HolePunchResult) Update

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

Update uses an executor to update the HolePunchResult. 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 (*HolePunchResult) Upsert

func (o *HolePunchResult) 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 HolePunchResultHook

type HolePunchResultHook func(context.Context, boil.ContextExecutor, *HolePunchResult) error

HolePunchResultHook is the signature for custom HolePunchResult hook methods

type HolePunchResultSlice

type HolePunchResultSlice []*HolePunchResult

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

func (HolePunchResultSlice) DeleteAll

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

func (*HolePunchResultSlice) ReloadAll

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

func (HolePunchResultSlice) UpdateAll

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

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

type HolePunchResultsXMultiAddress

type HolePunchResultsXMultiAddress struct {
	HolePunchResultID int    `boil:"hole_punch_result_id" json:"hole_punch_result_id" toml:"hole_punch_result_id" yaml:"hole_punch_result_id"`
	MultiAddressID    int64  `boil:"multi_address_id" json:"multi_address_id" toml:"multi_address_id" yaml:"multi_address_id"`
	Relationship      string `boil:"relationship" json:"relationship" toml:"relationship" yaml:"relationship"`

	R *holePunchResultsXMultiAddressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L holePunchResultsXMultiAddressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

HolePunchResultsXMultiAddress is an object representing the database table.

func FindHolePunchResultsXMultiAddress

func FindHolePunchResultsXMultiAddress(ctx context.Context, exec boil.ContextExecutor, multiAddressID int64, holePunchResultID int, relationship string, selectCols ...string) (*HolePunchResultsXMultiAddress, error)

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

func (*HolePunchResultsXMultiAddress) Delete

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

func (*HolePunchResultsXMultiAddress) HolePunchResult

func (o *HolePunchResultsXMultiAddress) HolePunchResult(mods ...qm.QueryMod) holePunchResultQuery

HolePunchResult pointed to by the foreign key.

func (*HolePunchResultsXMultiAddress) Insert

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

func (*HolePunchResultsXMultiAddress) MultiAddress

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

MultiAddress pointed to by the foreign key.

func (*HolePunchResultsXMultiAddress) Reload

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

func (*HolePunchResultsXMultiAddress) SetHolePunchResult

func (o *HolePunchResultsXMultiAddress) SetHolePunchResult(ctx context.Context, exec boil.ContextExecutor, insert bool, related *HolePunchResult) error

SetHolePunchResult of the holePunchResultsXMultiAddress to the related item. Sets o.R.HolePunchResult to related. Adds o to related.R.HolePunchResultsXMultiAddresses.

func (*HolePunchResultsXMultiAddress) SetMultiAddress

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

SetMultiAddress of the holePunchResultsXMultiAddress to the related item. Sets o.R.MultiAddress to related. Adds o to related.R.HolePunchResultsXMultiAddresses.

func (*HolePunchResultsXMultiAddress) Update

Update uses an executor to update the HolePunchResultsXMultiAddress. 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 (*HolePunchResultsXMultiAddress) Upsert

func (o *HolePunchResultsXMultiAddress) 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 HolePunchResultsXMultiAddressHook

type HolePunchResultsXMultiAddressHook func(context.Context, boil.ContextExecutor, *HolePunchResultsXMultiAddress) error

HolePunchResultsXMultiAddressHook is the signature for custom HolePunchResultsXMultiAddress hook methods

type HolePunchResultsXMultiAddressSlice

type HolePunchResultsXMultiAddressSlice []*HolePunchResultsXMultiAddress

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

func (HolePunchResultsXMultiAddressSlice) DeleteAll

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

func (*HolePunchResultsXMultiAddressSlice) ReloadAll

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

func (HolePunchResultsXMultiAddressSlice) UpdateAll

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"`
	MultiAddressID int64       `boil:"multi_address_id" json:"multi_address_id" toml:"multi_address_id" yaml:"multi_address_id"`
	Asn            null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsCloud        null.Int    `boil:"is_cloud" json:"is_cloud,omitempty" toml:"is_cloud" yaml:"is_cloud,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"`
	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"`
	Address        string      `boil:"address" json:"address" toml:"address" yaml:"address"`

	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) 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) MultiAddress added in v0.6.0

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

MultiAddress pointed to by the foreign key.

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) SetMultiAddress added in v0.6.0

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

SetMultiAddress of the ipAddress to the related item. Sets o.R.MultiAddress to related. Adds o to related.R.IPAddresses.

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 LatencyMeasurement added in v0.6.0

type LatencyMeasurement struct {
	ID                int                `boil:"id" json:"id" toml:"id" yaml:"id"`
	RemoteID          int64              `boil:"remote_id" json:"remote_id" toml:"remote_id" yaml:"remote_id"`
	HolePunchResultID int                `boil:"hole_punch_result_id" json:"hole_punch_result_id" toml:"hole_punch_result_id" yaml:"hole_punch_result_id"`
	MultiAddressID    int64              `boil:"multi_address_id" json:"multi_address_id" toml:"multi_address_id" yaml:"multi_address_id"`
	Mtype             string             `boil:"mtype" json:"mtype" toml:"mtype" yaml:"mtype"`
	RTTS              types.Float64Array `boil:"rtts" json:"rtts" toml:"rtts" yaml:"rtts"`
	RTTErrs           types.StringArray  `boil:"rtt_errs" json:"rtt_errs" toml:"rtt_errs" yaml:"rtt_errs"`
	RTTAvg            float64            `boil:"rtt_avg" json:"rtt_avg" toml:"rtt_avg" yaml:"rtt_avg"`
	RTTMax            float64            `boil:"rtt_max" json:"rtt_max" toml:"rtt_max" yaml:"rtt_max"`
	RTTMin            float64            `boil:"rtt_min" json:"rtt_min" toml:"rtt_min" yaml:"rtt_min"`
	RTTSTD            float64            `boil:"rtt_std" json:"rtt_std" toml:"rtt_std" yaml:"rtt_std"`

	R *latencyMeasurementR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L latencyMeasurementL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

LatencyMeasurement is an object representing the database table.

func FindLatencyMeasurement added in v0.6.0

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

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

func (*LatencyMeasurement) Delete added in v0.6.0

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

func (*LatencyMeasurement) HolePunchResult added in v0.6.0

func (o *LatencyMeasurement) HolePunchResult(mods ...qm.QueryMod) holePunchResultQuery

HolePunchResult pointed to by the foreign key.

func (*LatencyMeasurement) Insert added in v0.6.0

func (o *LatencyMeasurement) 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 (*LatencyMeasurement) MultiAddress added in v0.6.0

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

MultiAddress pointed to by the foreign key.

func (*LatencyMeasurement) Reload added in v0.6.0

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

func (*LatencyMeasurement) Remote added in v0.6.0

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

Remote pointed to by the foreign key.

func (*LatencyMeasurement) SetHolePunchResult added in v0.6.0

func (o *LatencyMeasurement) SetHolePunchResult(ctx context.Context, exec boil.ContextExecutor, insert bool, related *HolePunchResult) error

SetHolePunchResult of the latencyMeasurement to the related item. Sets o.R.HolePunchResult to related. Adds o to related.R.LatencyMeasurements.

func (*LatencyMeasurement) SetMultiAddress added in v0.6.0

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

SetMultiAddress of the latencyMeasurement to the related item. Sets o.R.MultiAddress to related. Adds o to related.R.LatencyMeasurements.

func (*LatencyMeasurement) SetRemote added in v0.6.0

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

SetRemote of the latencyMeasurement to the related item. Sets o.R.Remote to related. Adds o to related.R.RemoteLatencyMeasurements.

func (*LatencyMeasurement) Update added in v0.6.0

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

Update uses an executor to update the LatencyMeasurement. 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 (*LatencyMeasurement) Upsert added in v0.6.0

func (o *LatencyMeasurement) 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 LatencyMeasurementHook added in v0.6.0

type LatencyMeasurementHook func(context.Context, boil.ContextExecutor, *LatencyMeasurement) error

LatencyMeasurementHook is the signature for custom LatencyMeasurement hook methods

type LatencyMeasurementSlice added in v0.6.0

type LatencyMeasurementSlice []*LatencyMeasurement

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

func (LatencyMeasurementSlice) DeleteAll added in v0.6.0

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

func (*LatencyMeasurementSlice) ReloadAll added in v0.6.0

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

func (LatencyMeasurementSlice) UpdateAll added in v0.6.0

func (o LatencyMeasurementSlice) 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 MultiAddress

type MultiAddress struct {
	ID           int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Asn          null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsCloud      null.Int    `boil:"is_cloud" json:"is_cloud,omitempty" toml:"is_cloud" yaml:"is_cloud,omitempty"`
	IsRelay      null.Bool   `boil:"is_relay" json:"is_relay,omitempty" toml:"is_relay" yaml:"is_relay,omitempty"`
	IsPublic     null.Bool   `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"`
	Addr         null.String `boil:"addr" json:"addr,omitempty" toml:"addr" yaml:"addr,omitempty"`
	HasManyAddrs null.Bool   `boil:"has_many_addrs" json:"has_many_addrs,omitempty" toml:"has_many_addrs" yaml:"has_many_addrs,omitempty"`
	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"`
	Maddr        string      `boil:"maddr" json:"maddr" toml:"maddr" yaml:"maddr"`
	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 int64, 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) AddConnMultiAddressConnectionEvents added in v0.6.0

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

AddConnMultiAddressConnectionEvents adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.ConnMultiAddressConnectionEvents. Sets related.R.ConnMultiAddress appropriately.

func (*MultiAddress) AddConnectionEvents

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

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

func (*MultiAddress) AddHolePunchAttempts added in v0.4.0

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

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

func (*MultiAddress) AddHolePunchResultsXMultiAddresses

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

AddHolePunchResultsXMultiAddresses adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.HolePunchResultsXMultiAddresses. 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.MultiAddress appropriately.

func (*MultiAddress) AddLatencyMeasurements added in v0.6.0

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

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

func (*MultiAddress) ConnMultiAddressConnectionEvents added in v0.6.0

func (o *MultiAddress) ConnMultiAddressConnectionEvents(mods ...qm.QueryMod) connectionEventQuery

ConnMultiAddressConnectionEvents retrieves all the connection_event's ConnectionEvents with an executor via conn_multi_address_id column.

func (*MultiAddress) ConnectionEvents

func (o *MultiAddress) ConnectionEvents(mods ...qm.QueryMod) connectionEventQuery

ConnectionEvents retrieves all the connection_event's ConnectionEvents 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) HolePunchAttempts added in v0.4.0

func (o *MultiAddress) HolePunchAttempts(mods ...qm.QueryMod) holePunchAttemptQuery

HolePunchAttempts retrieves all the hole_punch_attempt's HolePunchAttempts with an executor.

func (*MultiAddress) HolePunchResultsXMultiAddresses

func (o *MultiAddress) HolePunchResultsXMultiAddresses(mods ...qm.QueryMod) holePunchResultsXMultiAddressQuery

HolePunchResultsXMultiAddresses retrieves all the hole_punch_results_x_multi_address's HolePunchResultsXMultiAddresses 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) LatencyMeasurements added in v0.6.0

func (o *MultiAddress) LatencyMeasurements(mods ...qm.QueryMod) latencyMeasurementQuery

LatencyMeasurements retrieves all the latency_measurement's LatencyMeasurements with an executor.

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) RemoveConnectionEvents

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

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

func (*MultiAddress) RemoveHolePunchAttempts added in v0.4.0

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

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

func (*MultiAddress) SetConnectionEvents

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

SetConnectionEvents 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 ConnectionEvents accordingly. Replaces o.R.ConnectionEvents with related. Sets related.R.MultiAddresses's ConnectionEvents accordingly.

func (*MultiAddress) SetHolePunchAttempts added in v0.4.0

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

SetHolePunchAttempts 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 HolePunchAttempts accordingly. Replaces o.R.HolePunchAttempts with related. Sets related.R.MultiAddresses's HolePunchAttempts 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 MultiAddressesSet added in v0.3.0

type MultiAddressesSet struct {
	ID                int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	MultiAddressesIds types.Int64Array `boil:"multi_addresses_ids" json:"multi_addresses_ids" toml:"multi_addresses_ids" yaml:"multi_addresses_ids"`
	Digest            []byte           `boil:"digest" json:"digest" toml:"digest" yaml:"digest"`

	R *multiAddressesSetR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L multiAddressesSetL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MultiAddressesSet is an object representing the database table.

func FindMultiAddressesSet added in v0.3.0

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

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

func (*MultiAddressesSet) AddListenMultiAddressesSetHolePunchResults added in v0.3.0

func (o *MultiAddressesSet) AddListenMultiAddressesSetHolePunchResults(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*HolePunchResult) error

AddListenMultiAddressesSetHolePunchResults adds the given related objects to the existing relationships of the multi_addresses_set, optionally inserting them as new records. Appends related to o.R.ListenMultiAddressesSetHolePunchResults. Sets related.R.ListenMultiAddressesSet appropriately.

func (*MultiAddressesSet) Delete added in v0.3.0

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

func (*MultiAddressesSet) Insert added in v0.3.0

func (o *MultiAddressesSet) 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 (*MultiAddressesSet) ListenMultiAddressesSetHolePunchResults added in v0.3.0

func (o *MultiAddressesSet) ListenMultiAddressesSetHolePunchResults(mods ...qm.QueryMod) holePunchResultQuery

ListenMultiAddressesSetHolePunchResults retrieves all the hole_punch_result's HolePunchResults with an executor via listen_multi_addresses_set_id column.

func (*MultiAddressesSet) Reload added in v0.3.0

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

func (*MultiAddressesSet) Update added in v0.3.0

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

Update uses an executor to update the MultiAddressesSet. 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 (*MultiAddressesSet) Upsert added in v0.3.0

func (o *MultiAddressesSet) 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 MultiAddressesSetHook added in v0.3.0

type MultiAddressesSetHook func(context.Context, boil.ContextExecutor, *MultiAddressesSet) error

MultiAddressesSetHook is the signature for custom MultiAddressesSet hook methods

type MultiAddressesSetSlice added in v0.3.0

type MultiAddressesSetSlice []*MultiAddressesSet

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

func (MultiAddressesSetSlice) DeleteAll added in v0.3.0

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

func (*MultiAddressesSetSlice) ReloadAll added in v0.3.0

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

func (MultiAddressesSetSlice) UpdateAll added in v0.3.0

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

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

type NetworkInformation added in v0.6.0

type NetworkInformation struct {
	ID                int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	PeerID            int64       `boil:"peer_id" json:"peer_id" toml:"peer_id" yaml:"peer_id"`
	SupportsIpv6      null.Bool   `boil:"supports_ipv6" json:"supports_ipv6,omitempty" toml:"supports_ipv6" yaml:"supports_ipv6,omitempty"`
	SupportsIpv6Error null.String `` /* 127-byte string literal not displayed */
	RouterHTML        null.String `boil:"router_html" json:"router_html,omitempty" toml:"router_html" yaml:"router_html,omitempty"`
	RouterHTMLError   null.String `boil:"router_html_error" json:"router_html_error,omitempty" toml:"router_html_error" yaml:"router_html_error,omitempty"`
	CreatedAt         time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *networkInformationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L networkInformationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NetworkInformation is an object representing the database table.

func FindNetworkInformation added in v0.6.0

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

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

func (*NetworkInformation) Delete added in v0.6.0

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

func (*NetworkInformation) Insert added in v0.6.0

func (o *NetworkInformation) 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 (*NetworkInformation) Peer added in v0.6.0

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

Peer pointed to by the foreign key.

func (*NetworkInformation) Reload added in v0.6.0

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

func (*NetworkInformation) SetPeer added in v0.6.0

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

SetPeer of the networkInformation to the related item. Sets o.R.Peer to related. Adds o to related.R.NetworkInformations.

func (*NetworkInformation) Update added in v0.6.0

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

Update uses an executor to update the NetworkInformation. 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 (*NetworkInformation) Upsert added in v0.6.0

func (o *NetworkInformation) 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 NetworkInformationHook added in v0.6.0

type NetworkInformationHook func(context.Context, boil.ContextExecutor, *NetworkInformation) error

NetworkInformationHook is the signature for custom NetworkInformation hook methods

type NetworkInformationSlice added in v0.6.0

type NetworkInformationSlice []*NetworkInformation

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

func (NetworkInformationSlice) DeleteAll added in v0.6.0

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

func (*NetworkInformationSlice) ReloadAll added in v0.6.0

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

func (NetworkInformationSlice) UpdateAll added in v0.6.0

func (o NetworkInformationSlice) 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           int64             `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 int64, 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) AddClients

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

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

func (*Peer) AddLocalConnectionEvents

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

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

func (*Peer) AddLocalHolePunchResults added in v0.6.0

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

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

func (*Peer) AddNetworkInformations added in v0.6.0

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

AddNetworkInformations adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.NetworkInformations. Sets related.R.Peer 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) AddRemoteConnectionEvents

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

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

func (*Peer) AddRemoteHolePunchResults

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

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

func (*Peer) AddRemoteLatencyMeasurements added in v0.6.0

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

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

func (*Peer) Clients

func (o *Peer) Clients(mods ...qm.QueryMod) clientQuery

Clients retrieves all the client's Clients 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) 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) LocalConnectionEvents

func (o *Peer) LocalConnectionEvents(mods ...qm.QueryMod) connectionEventQuery

LocalConnectionEvents retrieves all the connection_event's ConnectionEvents with an executor via local_id column.

func (*Peer) LocalHolePunchResults added in v0.6.0

func (o *Peer) LocalHolePunchResults(mods ...qm.QueryMod) holePunchResultQuery

LocalHolePunchResults retrieves all the hole_punch_result's HolePunchResults with an executor via local_id column.

func (*Peer) NetworkInformations added in v0.6.0

func (o *Peer) NetworkInformations(mods ...qm.QueryMod) networkInformationQuery

NetworkInformations retrieves all the network_information's NetworkInformations with an executor.

func (*Peer) PeerLogs

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

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

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) RemoteConnectionEvents

func (o *Peer) RemoteConnectionEvents(mods ...qm.QueryMod) connectionEventQuery

RemoteConnectionEvents retrieves all the connection_event's ConnectionEvents with an executor via remote_id column.

func (*Peer) RemoteHolePunchResults

func (o *Peer) RemoteHolePunchResults(mods ...qm.QueryMod) holePunchResultQuery

RemoteHolePunchResults retrieves all the hole_punch_result's HolePunchResults with an executor via remote_id column.

func (*Peer) RemoteLatencyMeasurements added in v0.6.0

func (o *Peer) RemoteLatencyMeasurements(mods ...qm.QueryMod) latencyMeasurementQuery

RemoteLatencyMeasurements retrieves all the latency_measurement's LatencyMeasurements with an executor via remote_id column.

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    int64     `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 PortMapping added in v0.7.0

type PortMapping struct {
	ID                int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	HolePunchResultID int    `boil:"hole_punch_result_id" json:"hole_punch_result_id" toml:"hole_punch_result_id" yaml:"hole_punch_result_id"`
	InternalPort      int    `boil:"internal_port" json:"internal_port" toml:"internal_port" yaml:"internal_port"`
	ExternalPort      int    `boil:"external_port" json:"external_port" toml:"external_port" yaml:"external_port"`
	Protocol          string `boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"`
	Addr              string `boil:"addr" json:"addr" toml:"addr" yaml:"addr"`
	AddrNetwork       string `boil:"addr_network" json:"addr_network" toml:"addr_network" yaml:"addr_network"`

	R *portMappingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L portMappingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PortMapping is an object representing the database table.

func FindPortMapping added in v0.7.0

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

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

func (*PortMapping) Delete added in v0.7.0

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

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

func (*PortMapping) HolePunchResult added in v0.7.0

func (o *PortMapping) HolePunchResult(mods ...qm.QueryMod) holePunchResultQuery

HolePunchResult pointed to by the foreign key.

func (*PortMapping) Insert added in v0.7.0

func (o *PortMapping) 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 (*PortMapping) Reload added in v0.7.0

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

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

func (*PortMapping) SetHolePunchResult added in v0.7.0

func (o *PortMapping) SetHolePunchResult(ctx context.Context, exec boil.ContextExecutor, insert bool, related *HolePunchResult) error

SetHolePunchResult of the portMapping to the related item. Sets o.R.HolePunchResult to related. Adds o to related.R.PortMappings.

func (*PortMapping) Update added in v0.7.0

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

Update uses an executor to update the PortMapping. 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 (*PortMapping) Upsert added in v0.7.0

func (o *PortMapping) 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 PortMappingHook added in v0.7.0

type PortMappingHook func(context.Context, boil.ContextExecutor, *PortMapping) error

PortMappingHook is the signature for custom PortMapping hook methods

type PortMappingSlice added in v0.7.0

type PortMappingSlice []*PortMapping

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

func (PortMappingSlice) DeleteAll added in v0.7.0

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

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

func (*PortMappingSlice) ReloadAll added in v0.7.0

func (o *PortMappingSlice) 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 (PortMappingSlice) UpdateAll added in v0.7.0

func (o PortMappingSlice) 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