MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / GetNodeByID

Method GetNodeByID

internal/store/postgres/sqlcgen/nodes.sql.go:110–131  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

108}
109
110func (q *Queries) GetNodeByID(ctx context.Context, id string) (GetNodeByIDRow, error) {
111 row := q.db.QueryRow(ctx, getNodeByID, id)
112 var i GetNodeByIDRow
113 err := row.Scan(
114 &i.ID,
115 &i.Name,
116 &i.BaseUrl,
117 &i.UploadBytes,
118 &i.DownloadBytes,
119 &i.AcmeEmail,
120 &i.PanelDomain,
121 &i.ExtraProxies,
122 &i.HttpsPort,
123 &i.ExpireAt,
124 &i.PanelUrl,
125 &i.Remark,
126 &i.IpOverride,
127 &i.Disabled,
128 &i.IsLanding,
129 )
130 return i, err
131}
132
133const insertNodeCheckResult = `-- name: InsertNodeCheckResult :exec
134INSERT INTO node_check_results (node_id, service, check_type, unlocked, region, note, checked_at)

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected