| 1 | package callback |
| 2 | |
| 3 | import ( |
| 4 | "github.com/mesos/mesos-go/api/v0/upid" |
| 5 | ) |
| 6 | |
| 7 | type Interprocess struct { |
| 8 | client upid.UPID |
| 9 | server upid.UPID |
| 10 | } |
| 11 | |
| 12 | func NewInterprocess() *Interprocess { |
| 13 | return &Interprocess{} |
| 14 | } |
| 15 | |
| 16 | func (cb *Interprocess) Client() upid.UPID { |
| 17 | return cb.client |
| 18 | } |
| 19 | |
| 20 | func (cb *Interprocess) Server() upid.UPID { |
| 21 | return cb.server |
| 22 | } |
| 23 | |
| 24 | func (cb *Interprocess) Set(server, client upid.UPID) { |
| 25 | cb.server = server |
| 26 | cb.client = client |
| 27 | } |