github.com/glide-im/glide@v1.6.0/pkg/subscription/chan_info.go (about) 1 package subscription 2 3 type ChanType int32 4 5 //goland:noinspection GoUnusedConst 6 const ( 7 ChanTypeUnknown ChanType = 0 8 ) 9 10 type ChanInfo struct { 11 ID ChanID 12 Type ChanType 13 14 Muted bool 15 Blocked bool 16 Closed bool 17 18 Parent *ChanID 19 Child []ChanID 20 } 21 22 func NewChanInfo(id ChanID, type_ ChanType) *ChanInfo { 23 return &ChanInfo{ 24 ID: id, 25 Type: type_, 26 } 27 } 28 29 type Chan struct { 30 }