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

Method GetRouteRuleByID

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

Source from the content-addressed store, hash-verified

38}
39
40func (q *Queries) GetRouteRuleByID(ctx context.Context, id string) (GetRouteRuleByIDRow, error) {
41 row := q.db.QueryRow(ctx, getRouteRuleByID, id)
42 var i GetRouteRuleByIDRow
43 err := row.Scan(
44 &i.ID,
45 &i.Name,
46 &i.RuleType,
47 &i.Patterns,
48 &i.OutboundID,
49 &i.Priority,
50 &i.RuleSetUrl,
51 &i.RuleSetFormat,
52 &i.NodeIds,
53 &i.InboundIds,
54 )
55 return i, err
56}
57
58const listRouteRules = `-- name: ListRouteRules :many
59SELECT id, name, rule_type, patterns, outbound_id, priority, rule_set_url, rule_set_format, node_ids, inbound_ids

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected