models

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConnectionDirectionUNKNOWN  string = "UNKNOWN"
	ConnectionDirectionOUTBOUND string = "OUTBOUND"
	ConnectionDirectionINBOUND  string = "INBOUND"
)

Enum values for ConnectionDirection

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

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
	ConnectionMultiAddressID   string
	Direction                  string
	ListensOnRelayMultiAddress string
	SupportsDcutr              string
	OpenedAt                   string
	CreatedAt                  string
}{
	ID:                         "id",
	LocalID:                    "local_id",
	RemoteID:                   "remote_id",
	ConnectionMultiAddressID:   "connection_multi_address_id",
	Direction:                  "direction",
	ListensOnRelayMultiAddress: "listens_on_relay_multi_address",
	SupportsDcutr:              "supports_dcutr",
	OpenedAt:                   "opened_at",
	CreatedAt:                  "created_at",
}
View Source
var ConnectionEventRels = struct {
	Local                  string
	ConnectionMultiAddress string
	Remote                 string
	MultiAddresses         string
}{
	Local:                  "Local",
	ConnectionMultiAddress: "ConnectionMultiAddress",
	Remote:                 "Remote",
	MultiAddresses:         "MultiAddresses",
}

ConnectionEventRels is where relationship names are stored.

View Source
var ConnectionEventTableColumns = struct {
	ID                         string
	LocalID                    string
	RemoteID                   string
	ConnectionMultiAddressID   string
	Direction                  string
	ListensOnRelayMultiAddress string
	SupportsDcutr              string
	OpenedAt                   string
	CreatedAt                  string
}{
	ID:                         "connection_events.id",
	LocalID:                    "connection_events.local_id",
	RemoteID:                   "connection_events.remote_id",
	ConnectionMultiAddressID:   "connection_events.connection_multi_address_id",
	Direction:                  "connection_events.direction",
	ListensOnRelayMultiAddress: "connection_events.listens_on_relay_multi_address",
	SupportsDcutr:              "connection_events.supports_dcutr",
	OpenedAt:                   "connection_events.opened_at",
	CreatedAt:                  "connection_events.created_at",
}
View Source
var ConnectionEventWhere = struct {
	ID                         whereHelperint
	LocalID                    whereHelperint64
	RemoteID                   whereHelperint64
	ConnectionMultiAddressID   whereHelperint64
	Direction                  whereHelperstring
	ListensOnRelayMultiAddress whereHelperbool
	SupportsDcutr              whereHelperbool
	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 */},
	ConnectionMultiAddressID:   whereHelperint64{/* contains filtered or unexported fields */},
	Direction:                  whereHelperstring{/* contains filtered or unexported fields */},
	ListensOnRelayMultiAddress: whereHelperbool{/* contains filtered or unexported fields */},
	SupportsDcutr:              whereHelperbool{/* 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
	ClientID                  string
	RemoteID                  string
	ConnectStartedAt          string
	ConnectEndedAt            string
	HasDirectConns            string
	Error                     string
	Outcome                   string
	EndedAt                   string
	UpdatedAt                 string
	CreatedAt                 string
	ListenMultiAddressesSetID string
}{
	ID:                        "id",
	ClientID:                  "client_id",
	RemoteID:                  "remote_id",
	ConnectStartedAt:          "connect_started_at",
	ConnectEndedAt:            "connect_ended_at",
	HasDirectConns:            "has_direct_conns",
	Error:                     "error",
	Outcome:                   "outcome",
	EndedAt:                   "ended_at",
	UpdatedAt:                 "updated_at",
	CreatedAt:                 "created_at",
	ListenMultiAddressesSetID: "listen_multi_addresses_set_id",
}
View Source
var HolePunchResultRels = struct {
	Client                          string
	ListenMultiAddressesSet         string
	Remote                          string
	HolePunchAttempts               string
	HolePunchResultsXMultiAddresses string
}{
	Client:                          "Client",
	ListenMultiAddressesSet:         "ListenMultiAddressesSet",
	Remote:                          "Remote",
	HolePunchAttempts:               "HolePunchAttempts",
	HolePunchResultsXMultiAddresses: "HolePunchResultsXMultiAddresses",
}

HolePunchResultRels is where relationship names are stored.

View Source
var HolePunchResultTableColumns = struct {
	ID                        string
	ClientID                  string
	RemoteID                  string
	ConnectStartedAt          string
	ConnectEndedAt            string
	HasDirectConns            string
	Error                     string
	Outcome                   string
	EndedAt                   string
	UpdatedAt                 string
	CreatedAt                 string
	ListenMultiAddressesSetID string
}{
	ID:                        "hole_punch_results.id",
	ClientID:                  "hole_punch_results.client_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",
	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
	ClientID                  whereHelperint64
	RemoteID                  whereHelperint64
	ConnectStartedAt          whereHelpertime_Time
	ConnectEndedAt            whereHelpertime_Time
	HasDirectConns            whereHelperbool
	Error                     whereHelpernull_String
	Outcome                   whereHelperstring
	EndedAt                   whereHelpertime_Time
	UpdatedAt                 whereHelpertime_Time
	CreatedAt                 whereHelpertime_Time
	ListenMultiAddressesSetID whereHelperint
}{
	ID:                        whereHelperint{/* contains filtered or unexported fields */},
	ClientID:                  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 */},
	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
	Address   string
	Country   string
	Continent string
	Asn       string
	IsPublic  string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "id",
	Address:   "address",
	Country:   "country",
	Continent: "continent",
	Asn:       "asn",
	IsPublic:  "is_public",
	UpdatedAt: "updated_at",
	CreatedAt: "created_at",
}
View Source
var IPAddressRels = struct {
	MultiAddresses string
}{
	MultiAddresses: "MultiAddresses",
}

IPAddressRels is where relationship names are stored.

View Source
var IPAddressTableColumns = struct {
	ID        string
	Address   string
	Country   string
	Continent string
	Asn       string
	IsPublic  string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "ip_addresses.id",
	Address:   "ip_addresses.address",
	Country:   "ip_addresses.country",
	Continent: "ip_addresses.continent",
	Asn:       "ip_addresses.asn",
	IsPublic:  "ip_addresses.is_public",
	UpdatedAt: "ip_addresses.updated_at",
	CreatedAt: "ip_addresses.created_at",
}
View Source
var IPAddressWhere = struct {
	ID        whereHelperint64
	Address   whereHelperstring
	Country   whereHelpernull_String
	Continent whereHelpernull_String
	Asn       whereHelpernull_Int
	IsPublic  whereHelperbool
	UpdatedAt whereHelpertime_Time
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Address:   whereHelperstring{/* contains filtered or unexported fields */},
	Country:   whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent: whereHelpernull_String{/* contains filtered or unexported fields */},
	Asn:       whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsPublic:  whereHelperbool{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MultiAddressColumns = struct {
	ID             string
	Maddr          string
	Country        string
	Continent      string
	Asn            string
	IsPublic       string
	IsRelay        string
	IPAddressCount string
	UpdatedAt      string
	CreatedAt      string
}{
	ID:             "id",
	Maddr:          "maddr",
	Country:        "country",
	Continent:      "continent",
	Asn:            "asn",
	IsPublic:       "is_public",
	IsRelay:        "is_relay",
	IPAddressCount: "ip_address_count",
	UpdatedAt:      "updated_at",
	CreatedAt:      "created_at",
}
View Source
var MultiAddressRels = struct {
	ConnectionMultiAddressConnectionEvents string
	ConnectionEvents                       string
	HolePunchAttempts                      string
	HolePunchResultsXMultiAddresses        string
	IPAddresses                            string
}{
	ConnectionMultiAddressConnectionEvents: "ConnectionMultiAddressConnectionEvents",
	ConnectionEvents:                       "ConnectionEvents",
	HolePunchAttempts:                      "HolePunchAttempts",
	HolePunchResultsXMultiAddresses:        "HolePunchResultsXMultiAddresses",
	IPAddresses:                            "IPAddresses",
}

MultiAddressRels is where relationship names are stored.

View Source
var MultiAddressTableColumns = struct {
	ID             string
	Maddr          string
	Country        string
	Continent      string
	Asn            string
	IsPublic       string
	IsRelay        string
	IPAddressCount string
	UpdatedAt      string
	CreatedAt      string
}{
	ID:             "multi_addresses.id",
	Maddr:          "multi_addresses.maddr",
	Country:        "multi_addresses.country",
	Continent:      "multi_addresses.continent",
	Asn:            "multi_addresses.asn",
	IsPublic:       "multi_addresses.is_public",
	IsRelay:        "multi_addresses.is_relay",
	IPAddressCount: "multi_addresses.ip_address_count",
	UpdatedAt:      "multi_addresses.updated_at",
	CreatedAt:      "multi_addresses.created_at",
}
View Source
var MultiAddressWhere = struct {
	ID             whereHelperint64
	Maddr          whereHelperstring
	Country        whereHelpernull_String
	Continent      whereHelpernull_String
	Asn            whereHelpernull_Int
	IsPublic       whereHelperbool
	IsRelay        whereHelperbool
	IPAddressCount whereHelperint
	UpdatedAt      whereHelpertime_Time
	CreatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	Maddr:          whereHelperstring{/* contains filtered or unexported fields */},
	Country:        whereHelpernull_String{/* contains filtered or unexported fields */},
	Continent:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Asn:            whereHelpernull_Int{/* contains filtered or unexported fields */},
	IsPublic:       whereHelperbool{/* contains filtered or unexported fields */},
	IsRelay:        whereHelperbool{/* contains filtered or unexported fields */},
	IPAddressCount: whereHelperint{/* 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 PeerColumns = struct {
	ID            string
	MultiHash     string
	AgentVersion  string
	Protocols     string
	SupportsDcutr string
	UpdatedAt     string
	CreatedAt     string
}{
	ID:            "id",
	MultiHash:     "multi_hash",
	AgentVersion:  "agent_version",
	Protocols:     "protocols",
	SupportsDcutr: "supports_dcutr",
	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
	ClientHolePunchResults string
	RemoteHolePunchResults string
	PeerLogs               string
	ClientRouters          string
}{
	Clients:                "Clients",
	LocalConnectionEvents:  "LocalConnectionEvents",
	RemoteConnectionEvents: "RemoteConnectionEvents",
	ClientHolePunchResults: "ClientHolePunchResults",
	RemoteHolePunchResults: "RemoteHolePunchResults",
	PeerLogs:               "PeerLogs",
	ClientRouters:          "ClientRouters",
}

PeerRels is where relationship names are stored.

View Source
var PeerTableColumns = struct {
	ID            string
	MultiHash     string
	AgentVersion  string
	Protocols     string
	SupportsDcutr string
	UpdatedAt     string
	CreatedAt     string
}{
	ID:            "peers.id",
	MultiHash:     "peers.multi_hash",
	AgentVersion:  "peers.agent_version",
	Protocols:     "peers.protocols",
	SupportsDcutr: "peers.supports_dcutr",
	UpdatedAt:     "peers.updated_at",
	CreatedAt:     "peers.created_at",
}
View Source
var PeerWhere = struct {
	ID            whereHelperint64
	MultiHash     whereHelperstring
	AgentVersion  whereHelpernull_String
	Protocols     whereHelpertypes_StringArray
	SupportsDcutr whereHelperbool
	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 */},
	SupportsDcutr: whereHelperbool{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RouterColumns = struct {
	ID        string
	ClientID  string
	HTML      string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "id",
	ClientID:  "client_id",
	HTML:      "html",
	UpdatedAt: "updated_at",
	CreatedAt: "created_at",
}
View Source
var RouterRels = struct {
	Client string
}{
	Client: "Client",
}

RouterRels is where relationship names are stored.

View Source
var RouterTableColumns = struct {
	ID        string
	ClientID  string
	HTML      string
	UpdatedAt string
	CreatedAt string
}{
	ID:        "routers.id",
	ClientID:  "routers.client_id",
	HTML:      "routers.html",
	UpdatedAt: "routers.updated_at",
	CreatedAt: "routers.created_at",
}
View Source
var RouterWhere = struct {
	ID        whereHelperint
	ClientID  whereHelperint64
	HTML      whereHelperstring
	UpdatedAt whereHelpertime_Time
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	ClientID:  whereHelperint64{/* contains filtered or unexported fields */},
	HTML:      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 TableNames = struct {
	Authorizations                  string
	Clients                         string
	ConnectionEvents                string
	ConnectionEventsXMultiAddresses string
	HolePunchAttempt                string
	HolePunchAttemptXMultiAddresses string
	HolePunchResults                string
	HolePunchResultsXMultiAddresses string
	IPAddresses                     string
	MultiAddresses                  string
	MultiAddressesSets              string
	MultiAddressesXIPAddresses      string
	PeerLogs                        string
	Peers                           string
	Routers                         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",
	MultiAddresses:                  "multi_addresses",
	MultiAddressesSets:              "multi_addresses_sets",
	MultiAddressesXIPAddresses:      "multi_addresses_x_ip_addresses",
	PeerLogs:                        "peer_logs",
	Peers:                           "peers",
	Routers:                         "routers",
}
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 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 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 AddRouterHook added in v0.5.0

func AddRouterHook(hookPoint boil.HookPoint, routerHook RouterHook)

AddRouterHook registers your hook function for all future operations.

func AllConnectionDirection added in v0.5.0

func AllConnectionDirection() []string

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 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 int64) (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 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 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 RouterExists added in v0.5.0

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

RouterExists checks if the Router row exists.

func Routers added in v0.5.0

func Routers(mods ...qm.QueryMod) routerQuery

Routers 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"`
	ConnectionMultiAddressID   int64     `` /* 139-byte string literal not displayed */
	Direction                  string    `boil:"direction" json:"direction" toml:"direction" yaml:"direction"`
	ListensOnRelayMultiAddress bool      `` /* 151-byte string literal not displayed */
	SupportsDcutr              bool      `boil:"supports_dcutr" json:"supports_dcutr" toml:"supports_dcutr" yaml:"supports_dcutr"`
	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) ConnectionMultiAddress

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

ConnectionMultiAddress 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) SetConnectionMultiAddress

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

SetConnectionMultiAddress of the connectionEvent to the related item. Sets o.R.ConnectionMultiAddress to related. Adds o to related.R.ConnectionMultiAddressConnectionEvents.

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"`
	ClientID                  int64       `boil:"client_id" json:"client_id" toml:"client_id" yaml:"client_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"`
	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) Client

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

Client pointed to by the foreign key.

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) ListenMultiAddressesSet added in v0.3.0

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

ListenMultiAddressesSet pointed to by the foreign key.

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

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

SetClient of the holePunchResult to the related item. Sets o.R.Client to related. Adds o to related.R.ClientHolePunchResults.

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) 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        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address   string      `boil:"address" json:"address" toml:"address" yaml:"address"`
	Country   null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
	Continent null.String `boil:"continent" json:"continent,omitempty" toml:"continent" yaml:"continent,omitempty"`
	Asn       null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsPublic  bool        `boil:"is_public" json:"is_public" toml:"is_public" yaml:"is_public"`
	UpdatedAt time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

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

IPAddress is an object representing the database table.

func FindIPAddress

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

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

func (*IPAddress) AddMultiAddresses

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

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

func (*IPAddress) Delete

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

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

func (*IPAddress) Insert

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

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

func (*IPAddress) MultiAddresses

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

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

func (*IPAddress) Reload

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

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

func (*IPAddress) RemoveMultiAddresses

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

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

func (*IPAddress) SetMultiAddresses

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

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

func (*IPAddress) Update

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

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

func (*IPAddress) Upsert

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

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

type IPAddressHook

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

IPAddressHook is the signature for custom IPAddress hook methods

type IPAddressSlice

type IPAddressSlice []*IPAddress

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

func (IPAddressSlice) DeleteAll

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

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

func (*IPAddressSlice) ReloadAll

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

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

func (IPAddressSlice) UpdateAll

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

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

type M

type M map[string]interface{}

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

type MultiAddress

type MultiAddress struct {
	ID             int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Maddr          string      `boil:"maddr" json:"maddr" toml:"maddr" yaml:"maddr"`
	Country        null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
	Continent      null.String `boil:"continent" json:"continent,omitempty" toml:"continent" yaml:"continent,omitempty"`
	Asn            null.Int    `boil:"asn" json:"asn,omitempty" toml:"asn" yaml:"asn,omitempty"`
	IsPublic       bool        `boil:"is_public" json:"is_public" toml:"is_public" yaml:"is_public"`
	IsRelay        bool        `boil:"is_relay" json:"is_relay" toml:"is_relay" yaml:"is_relay"`
	IPAddressCount int         `boil:"ip_address_count" json:"ip_address_count" toml:"ip_address_count" yaml:"ip_address_count"`
	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) 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) AddConnectionMultiAddressConnectionEvents

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

AddConnectionMultiAddressConnectionEvents adds the given related objects to the existing relationships of the multi_address, optionally inserting them as new records. Appends related to o.R.ConnectionMultiAddressConnectionEvents. Sets related.R.ConnectionMultiAddress 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.MultiAddresses appropriately.

func (*MultiAddress) ConnectionEvents

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

ConnectionEvents retrieves all the connection_event's ConnectionEvents with an executor.

func (*MultiAddress) ConnectionMultiAddressConnectionEvents

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

ConnectionMultiAddressConnectionEvents retrieves all the connection_event's ConnectionEvents with an executor via connection_multi_address_id column.

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

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

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

func (*MultiAddress) 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) SetIPAddresses

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

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

func (*MultiAddress) Update

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

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

func (*MultiAddress) Upsert

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

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

type MultiAddressHook

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

MultiAddressHook is the signature for custom MultiAddress hook methods

type MultiAddressSlice

type MultiAddressSlice []*MultiAddress

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

func (MultiAddressSlice) DeleteAll

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

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

func (*MultiAddressSlice) ReloadAll

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

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

func (MultiAddressSlice) UpdateAll

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

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

type 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 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"`
	SupportsDcutr bool              `boil:"supports_dcutr" json:"supports_dcutr" toml:"supports_dcutr" yaml:"supports_dcutr"`
	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) AddClientHolePunchResults

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

AddClientHolePunchResults adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.ClientHolePunchResults. Sets related.R.Client appropriately.

func (*Peer) AddClientRouters added in v0.5.0

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

AddClientRouters adds the given related objects to the existing relationships of the peer, optionally inserting them as new records. Appends related to o.R.ClientRouters. Sets related.R.Client appropriately.

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

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

ClientHolePunchResults retrieves all the hole_punch_result's HolePunchResults with an executor via client_id column.

func (*Peer) ClientRouters added in v0.5.0

func (o *Peer) ClientRouters(mods ...qm.QueryMod) routerQuery

ClientRouters retrieves all the router's Routers with an executor via client_id column.

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) 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) 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 Router added in v0.5.0

type Router struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	ClientID  int64     `boil:"client_id" json:"client_id" toml:"client_id" yaml:"client_id"`
	HTML      string    `boil:"html" json:"html" toml:"html" yaml:"html"`
	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 *routerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L routerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Router is an object representing the database table.

func FindRouter added in v0.5.0

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

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

func (*Router) Client added in v0.5.0

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

Client pointed to by the foreign key.

func (*Router) Delete added in v0.5.0

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

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

func (*Router) Insert added in v0.5.0

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

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

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

func (*Router) SetClient added in v0.5.0

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

SetClient of the router to the related item. Sets o.R.Client to related. Adds o to related.R.ClientRouters.

func (*Router) Update added in v0.5.0

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

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

func (o *Router) 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 RouterHook added in v0.5.0

type RouterHook func(context.Context, boil.ContextExecutor, *Router) error

RouterHook is the signature for custom Router hook methods

type RouterSlice added in v0.5.0

type RouterSlice []*Router

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

func (RouterSlice) DeleteAll added in v0.5.0

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

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

func (*RouterSlice) ReloadAll added in v0.5.0

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

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