]> git.giacomolli.uk - onehouse/blob - driver/transport.go
Apply M31 commands through the shared ledger
[onehouse] / driver / transport.go
1 package driver
2
3 import (
4 "context"
5
6 "onehouse/protocol"
7 )
8
9 // Transport sends a complete protocol publication. The caller owns the
10 // connection. Publish must stop when ctx stops and must not mutate publication.
11 type Transport interface {
12 Publish(ctx context.Context, publication protocol.Publication) error
13 }