github.com/glide-im/glide@v1.6.0/im_service/proto/sub.proto (about)

     1  syntax = "proto3";
     2  package im_service.glide_im.github.com;
     3  
     4  option go_package = "pkg/proto";
     5  
     6  message SubscribeRequest {
     7    string channelID = 1;
     8    string subscriberID = 2;
     9    bytes extra = 3;
    10  }
    11  
    12  message  UnsubscribeRequest {
    13    string channelID = 1;
    14    string subscriberID = 2;
    15  }
    16  
    17  message UpdateSubscriberRequest {
    18    string channelID = 1;
    19    string subscriberID = 2;
    20    bytes extra = 3;
    21  }
    22  
    23  message RemoveChannelRequest {
    24    string channelID = 1;
    25  }
    26  
    27  message ChannelInfo {
    28    string ID = 1;
    29  
    30    int32 type = 4;
    31    bool muted = 5;
    32    bool blocked = 6;
    33    bool closed = 7;
    34  
    35    string parent = 8;
    36    repeated string children = 9;
    37  }
    38  
    39  message CreateChannelRequest {
    40    string channelID = 1;
    41    ChannelInfo channelInfo = 2;
    42  }
    43  
    44  message UpdateChannelRequest {
    45    string channelID = 1;
    46    ChannelInfo channelInfo = 2;
    47  }
    48  
    49  message PublishRequest {
    50    string channelID = 1;
    51    bytes message = 2;
    52  }