| 1 | package hub |
| 2 | |
| 3 | import "amadan.net/oficina/calls/protocol" |
| 4 | |
| 5 | // Aliases keep the hub and native clients on one wire contract. |
| 6 | type PeerID = protocol.PeerID |
| 7 | type Kind = protocol.Kind |
| 8 | type Reason = protocol.Reason |
| 9 | type Message = protocol.Message |
| 10 | type Roster = protocol.Roster |
| 11 | type RosterPeer = protocol.RosterPeer |
| 12 | type MediaState = protocol.MediaState |
| 13 | |
| 14 | const ( |
| 15 | KindGuest = protocol.KindGuest |
| 16 | ReasonBuffer = protocol.ReasonBuffer |
| 17 | ReasonReplaced = protocol.ReasonReplaced |
| 18 | ReasonStanding = protocol.ReasonStanding |
| 19 | ReasonExpired = protocol.ReasonExpired |
| 20 | ReasonRemoved = protocol.ReasonRemoved |
| 21 | ReasonEnded = protocol.ReasonEnded |
| 22 | TypeJoin = protocol.TypeJoin |
| 23 | TypeAdmit = protocol.TypeAdmit |
| 24 | TypeLeave = protocol.TypeLeave |
| 25 | TypeOffer = protocol.TypeOffer |
| 26 | TypeAnswer = protocol.TypeAnswer |
| 27 | TypeCandidate = protocol.TypeCandidate |
| 28 | TypeReset = protocol.TypeReset |
| 29 | TypeChat = protocol.TypeChat |
| 30 | TypeShare = protocol.TypeShare |
| 31 | TypeMedia = protocol.TypeMedia |
| 32 | TypeHello = protocol.TypeHello |
| 33 | TypeRoster = protocol.TypeRoster |
| 34 | TypePeer = protocol.TypePeer |
| 35 | TypeGone = protocol.TypeGone |
| 36 | TypeKnock = protocol.TypeKnock |
| 37 | TypeKnockGone = protocol.TypeKnockGone |
| 38 | TypeFull = protocol.TypeFull |
| 39 | TypeEnded = protocol.TypeEnded |
| 40 | TypeLost = protocol.TypeLost |
| 41 | TypePair = protocol.TypePair |
| 42 | TypeGap = protocol.TypeGap |
| 43 | TypeState = protocol.TypeState |
| 44 | KindMember = protocol.KindMember |
| 45 | ) |
| 46 | |