v0.1.0 7deb448

transport.go RawHistoryFolder

1package ports
2
3import "context"
4
5// Transport is a framed message channel over a single connection. Close must
6// be safe to call concurrently with Send and Recv, and must unblock active
7// Send and Recv calls.
8type Transport interface {
9	Send(Frame) error
10	Recv() (Frame, error) // blocking; io.EOF on close
11	Close() error
12}
13
14// DatagramTransport marks transports backed by a datagram link. It lets
15// usecases negotiate a conservative output window without importing adapters.
16type DatagramTransport interface {
17	Transport
18	DatagramTransport()
19}
20
21// AsyncTransport accepts frames for ordered background transmission. SendAsync
22// returns once the adapter owns the frame; Send retains its synchronous wire-
23// attempt contract. Daemon paint output may use this capability to pipeline.
24type AsyncTransport interface {
25	SendAsync(Frame) error
26}
27
28// OwnedSynchronousTransport owns the complete bounded synchronous operation,
29// including adapter queues, pacing, write deadlines, and close cancellation.
30type OwnedSynchronousTransport interface {
31	SendSynchronous(Frame) error
32}
33
34// Dialer establishes outbound Transport connections.
35type Dialer interface {
36	Dial(ctx context.Context) (Transport, error)
37}
38
39// Listener accepts incoming Transport connections.
40type Listener interface {
41	Accept() (Transport, error)
42	Close() error
43	Addr() string
44}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 12

Tags 11

↑↓ moveenter openesc close