commit 437c38533df9e7215405d167484408117b5202eb Author: Jason Date: Thu Mar 17 15:54:23 2022 +0800 init diff --git a/DB.go b/DB.go new file mode 100644 index 0000000..1125829 --- /dev/null +++ b/DB.go @@ -0,0 +1,20 @@ +package imparse + +import "context" + +type MsgIndex struct { + Mid string + Seq string + SenderId string + CreateTime uint64 +} + +type Cache interface { + GetMsg(ctx context.Context, from, seq string) (*MsgIndex, error) + AddMsg(ctx context.Context, uid string, m *MsgIndex) error + GetMid(ctx context.Context) (id int64, err error) +} + +type DB interface { + SaveMsg(frame Frame) error +} diff --git a/action.go b/action.go new file mode 100644 index 0000000..81f239f --- /dev/null +++ b/action.go @@ -0,0 +1,35 @@ +package imparse + +import "context" + +type Channel int + +const ( + Undefined Channel = 0 + UniCast Channel = 1 + GroupCast Channel = 2 +) + +var ChannelTypeName = map[Channel]string{ + Undefined: "Undefined", + UniCast: "UniCast", + GroupCast: "GroupCast", +} + +func (ch Channel) String() string { + return ChannelTypeName[ch] +} + +type Answer interface { + Check(context.Context, Checker, Frame) error + Filter(context.Context, Frame) (uint64, error) + Transport(context.Context, Frame) error + Ack(context.Context, Frame) (int64, error) +} + +type Pusher interface { +} + +type Storage interface { + SaveMsg(context.Context, Frame) error +} diff --git a/chat/frame.go b/chat/frame.go new file mode 100644 index 0000000..3305487 --- /dev/null +++ b/chat/frame.go @@ -0,0 +1,170 @@ +package chat + +import ( + "github.com/golang/protobuf/proto" + comet "gitlab.33.cn/chat/im/api/comet/grpc" + "gitlab.33.cn/chat/imparse" +) + +const ( + PrivateFrameType imparse.FrameType = "private" + GroupFrameType imparse.FrameType = "group" + SignalFrameType imparse.FrameType = "signal" +) + +type Option func(*Options) +type Options struct { + mid int64 + createTime uint64 + target string + transmissionMethod imparse.Channel +} + +func WithMid(t int64) Option { + return func(o *Options) { + o.mid = t + } +} + +func WithCreateTime(t uint64) Option { + return func(o *Options) { + o.createTime = t + } +} + +func WithTarget(t string) Option { + return func(o *Options) { + o.target = t + } +} + +func WithTransmissionMethod(t imparse.Channel) Option { + return func(o *Options) { + o.transmissionMethod = t + } +} + +//标准帧 定义了标准协议的Ack数据和Push数据格式 +type StandardFrame struct { + body imparse.BizProto + base *comet.Proto + + mid int64 + createTime uint64 + key string + from string + target string + transmissionMethod imparse.Channel +} + +func NewStandardFrame(base *comet.Proto, key, from string, opts ...Option) *StandardFrame { + options := Options{} + for _, o := range opts { + o(&options) + } + return &StandardFrame{base: base, key: key, from: from, mid: options.mid, createTime: options.createTime, target: options.target, transmissionMethod: options.transmissionMethod} +} + +func (f *StandardFrame) Data() ([]byte, error) { + p := comet.Proto{ + Ver: f.base.GetVer(), + Op: f.base.GetOp(), + Seq: f.base.GetSeq(), + Ack: f.base.GetAck(), + } + var err error + p.Body, err = f.body.PushBody() + if err != nil { + return nil, err + } + //send transfer msg + return proto.Marshal(&p) +} + +func (f *StandardFrame) AckData() ([]byte, error) { + p := comet.Proto{ + Ver: f.base.GetVer(), + Op: int32(comet.Op_SendMsgReply), + Seq: f.base.GetSeq(), + Ack: f.base.GetAck(), + } + var err error + p.Body, err = f.body.AckBody() + if err != nil { + return nil, err + } + //send msg ack + return proto.Marshal(&p) +} + +func (f *StandardFrame) PushData() ([]byte, error) { + p := comet.Proto{ + Ver: f.base.GetVer(), + Op: int32(comet.Op_ReceiveMsg), + Seq: f.base.GetSeq(), + Ack: f.base.GetAck(), + } + var err error + p.Body, err = f.body.PushBody() + if err != nil { + return nil, err + } + //send to client B + return proto.Marshal(&p) +} + +func (f *StandardFrame) GetMid() int64 { + return f.mid +} + +func (f *StandardFrame) SetMid(mid int64) { + f.mid = mid +} + +func (f *StandardFrame) GetCreateTime() uint64 { + return f.createTime +} + +func (f *StandardFrame) SetCreateTime(createTime uint64) { + f.createTime = createTime +} + +func (f *StandardFrame) GetTarget() string { + return f.target +} + +func (f *StandardFrame) SetTarget(target string) { + f.target = target +} + +func (f *StandardFrame) GetTransmissionMethod() imparse.Channel { + return f.transmissionMethod +} + +func (f *StandardFrame) SetTransmissionMethod(transmissionMethod imparse.Channel) { + f.transmissionMethod = transmissionMethod +} + +func (f *StandardFrame) GetFrom() string { + return f.from +} + +func (f *StandardFrame) SetFrom(from string) { + f.from = from +} + +func (f *StandardFrame) GetKey() string { + return f.key +} + +func (f *StandardFrame) SetKey(key string) { + f.key = key +} + +func (f *StandardFrame) GetBody() imparse.BizProto { + return f.body +} + +func (f *StandardFrame) SetBody(body imparse.BizProto) { + f.body = body +} diff --git a/chat/group.go b/chat/group.go new file mode 100644 index 0000000..8511f3a --- /dev/null +++ b/chat/group.go @@ -0,0 +1,145 @@ +package chat + +import ( + "context" + "fmt" + "strconv" + "time" + + "github.com/golang/protobuf/proto" + "gitlab.33.cn/chat/imparse" + biz "gitlab.33.cn/chat/imparse/proto" + "gitlab.33.cn/chat/imparse/util" +) + +//private +type GroupFrame struct { + *StandardFrame + base *biz.Common + + stored bool +} + +func NewGroupFrame(standardFrame *StandardFrame, bizPro *biz.Common) *GroupFrame { + frame := &GroupFrame{ + StandardFrame: standardFrame, + base: bizPro, + } + frame.SetBody(frame) + bizPro.From = frame.GetFrom() + frame.SetTarget(bizPro.GetTarget()) + frame.SetTransmissionMethod(imparse.GroupCast) + return frame +} + +func (p *GroupFrame) Type() imparse.FrameType { + return GroupFrameType +} + +func (p *GroupFrame) Filter(ctx context.Context, db imparse.Cache, filters ...imparse.Filter) (uint64, error) { + //查询是否有重复消息 + msg, err := db.GetMsg(ctx, p.GetFrom(), p.base.GetSeq()) + if err != nil { + return 0, err + } + + if msg != nil { + p.stored = true + p.base.Mid, err = strconv.ParseInt(msg.Mid, 10, 64) + if err != nil { + return 0, err + } + p.base.Datetime = msg.CreateTime + } else { + for _, filter := range filters { + err = filter(ctx, p) + if err != nil { + return 0, err + } + } + + p.stored = false + p.base.Mid, err = db.GetMid(ctx) + if err != nil { + return 0, err + } + p.base.Datetime = uint64(util.TimeNowUnixNano() / int64(time.Millisecond)) + err := db.AddMsg(ctx, p.GetFrom(), &imparse.MsgIndex{ + Mid: strconv.FormatInt(p.base.GetMid(), 10), + Seq: p.base.GetSeq(), + SenderId: p.GetFrom(), + CreateTime: p.base.GetDatetime(), + }) + if err != nil { + return 0, err + } + } + return p.base.GetDatetime(), nil +} + +func (p *GroupFrame) Transport(ctx context.Context, exec imparse.Exec) error { + if p.stored { + return nil + } + data, err := p.PushData() + if err != nil { + return err + } + return exec.Transport(ctx, p.base.GetMid(), p.GetKey(), p.GetFrom(), p.GetTarget(), p.GetTransmissionMethod(), p.Type(), data) +} + +func (p *GroupFrame) Ack(ctx context.Context, exec imparse.Exec) (int64, error) { + ackBytes, err := p.AckData() + if err != nil { + return 0, err + } + return p.base.GetMid(), exec.RevAck(ctx, p.base.GetMid(), []string{p.GetKey()}, ackBytes) +} + +func (p *GroupFrame) AckBody() ([]byte, error) { + body, err := proto.Marshal(&biz.CommonAck{ + Mid: p.base.GetMid(), + Datetime: p.base.GetDatetime(), + }) + if err != nil { + return nil, fmt.Errorf("marshal CommonAck err: %v", err) + } + data, err := proto.Marshal(&biz.Proto{ + EventType: biz.Proto_commonAck, + Body: body, + }) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +func (p *GroupFrame) PushBody() ([]byte, error) { + var err error + var data []byte + pro := biz.Proto{ + EventType: biz.Proto_common, + } + pro.Body, err = proto.Marshal(p.base) + if err != nil { + return nil, fmt.Errorf("marshal Common err: %v", err) + } + data, err = proto.Marshal(&pro) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +// +func (p *GroupFrame) GetChannelType() biz.Channel { + return p.base.ChannelType +} + +func (p *GroupFrame) GetMsgType() biz.MsgType { + return p.base.MsgType +} + +func (p *GroupFrame) GetBase() *biz.Common { + return p.base +} diff --git a/chat/parser.go b/chat/parser.go new file mode 100644 index 0000000..065df0d --- /dev/null +++ b/chat/parser.go @@ -0,0 +1,85 @@ +package chat + +import ( + "io" + "io/ioutil" + + "github.com/golang/protobuf/proto" + comet "gitlab.33.cn/chat/im/api/comet/grpc" + "gitlab.33.cn/chat/imparse" + biz "gitlab.33.cn/chat/imparse/proto" +) + +type _handleEvent func(*StandardFrame, []byte) (imparse.Frame, error) + +var events = map[biz.Proto_EventType]_handleEvent{ + biz.Proto_common: func(s *StandardFrame, body []byte) (imparse.Frame, error) { + var pro biz.Common + err := proto.Unmarshal(body, &pro) + if err != nil { + return nil, err + } + switch pro.ChannelType { + case biz.Channel_ToUser: + return NewPrivateFrame(s, &pro), nil + case biz.Channel_ToGroup: + return NewGroupFrame(s, &pro), nil + default: + return nil, imparse.ErrExecSupport + } + }, + biz.Proto_Signal: func(s *StandardFrame, body []byte) (imparse.Frame, error) { + var pro biz.Signal + err := proto.Unmarshal(body, &pro) + if err != nil { + return nil, err + } + return NewNoticeFrame(s, &pro), nil + }, +} + +//标准解析器 定义了解析标准协议的方法 +type StandardParse struct { +} + +func (s *StandardParse) NewFrame(key, from string, in io.Reader, opts ...Option) (imparse.Frame, error) { + data, err := ioutil.ReadAll(in) + if err != nil { + return nil, err + } + + // + var p comet.Proto + err = proto.Unmarshal(data, &p) + if err != nil { + return nil, err + } + + switch p.GetVer() { + case 0, 1: + default: + } + + switch p.GetOp() { + case int32(comet.Op_SendMsg): + case int32(comet.Op_Auth): + + } + //业务服务协议解析 + var pro biz.Proto + err = proto.Unmarshal(p.Body, &pro) + if err != nil { + return nil, err + } + + //解析event事件 + event, ok := events[pro.EventType] + if !ok || event == nil { + return nil, imparse.ErrorEnvType + } + frame, err := event(NewStandardFrame(&p, key, from, opts...), pro.Body) + if err != nil { + return nil, err + } + return frame, err +} diff --git a/chat/private.go b/chat/private.go new file mode 100644 index 0000000..34372f9 --- /dev/null +++ b/chat/private.go @@ -0,0 +1,146 @@ +package chat + +import ( + "context" + "fmt" + "strconv" + "time" + + "github.com/golang/protobuf/proto" + "gitlab.33.cn/chat/imparse" + biz "gitlab.33.cn/chat/imparse/proto" + "gitlab.33.cn/chat/imparse/util" +) + +//private +type PrivateFrame struct { + *StandardFrame + base *biz.Common + + stored bool +} + +func NewPrivateFrame(standardFrame *StandardFrame, bizPro *biz.Common) *PrivateFrame { + frame := &PrivateFrame{ + StandardFrame: standardFrame, + base: bizPro, + } + frame.SetBody(frame) + bizPro.From = frame.GetFrom() + frame.SetTarget(bizPro.GetTarget()) + frame.SetTransmissionMethod(imparse.UniCast) + return frame +} + +func (p *PrivateFrame) Type() imparse.FrameType { + return PrivateFrameType +} + +func (p *PrivateFrame) Filter(ctx context.Context, db imparse.Cache, filters ...imparse.Filter) (uint64, error) { + //查询是否有重复消息 + msg, err := db.GetMsg(ctx, p.GetFrom(), p.base.GetSeq()) + if err != nil { + return 0, err + } + + if msg != nil { + p.stored = true + p.base.Mid, err = strconv.ParseInt(msg.Mid, 10, 64) + if err != nil { + return 0, err + } + p.base.Datetime = msg.CreateTime + } else { + for _, filter := range filters { + err = filter(ctx, p) + if err != nil { + return 0, err + } + } + p.stored = false + p.base.Mid, err = db.GetMid(ctx) + if err != nil { + return 0, err + } + p.base.Datetime = uint64(util.TimeNowUnixNano() / int64(time.Millisecond)) + err := db.AddMsg(ctx, p.GetFrom(), &imparse.MsgIndex{ + Mid: strconv.FormatInt(p.base.GetMid(), 10), + Seq: p.base.GetSeq(), + SenderId: p.GetFrom(), + CreateTime: p.base.GetDatetime(), + }) + if err != nil { + return 0, err + } + } + p.mid = p.base.Mid + p.createTime = p.base.Datetime + return p.base.GetDatetime(), nil +} + +func (p *PrivateFrame) Transport(ctx context.Context, exec imparse.Exec) error { + if p.stored { + return nil + } + data, err := p.PushData() + if err != nil { + return err + } + return exec.Transport(ctx, p.base.GetMid(), p.GetKey(), p.GetFrom(), p.GetTarget(), p.GetTransmissionMethod(), p.Type(), data) +} + +func (p *PrivateFrame) Ack(ctx context.Context, exec imparse.Exec) (int64, error) { + ackBytes, err := p.AckData() + if err != nil { + return 0, err + } + return p.base.GetMid(), exec.RevAck(ctx, p.base.GetMid(), []string{p.GetKey()}, ackBytes) +} + +func (p *PrivateFrame) AckBody() ([]byte, error) { + body, err := proto.Marshal(&biz.CommonAck{ + Mid: p.base.GetMid(), + Datetime: p.base.GetDatetime(), + }) + if err != nil { + return nil, fmt.Errorf("marshal CommonAck err: %v", err) + } + data, err := proto.Marshal(&biz.Proto{ + EventType: biz.Proto_commonAck, + Body: body, + }) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +func (p *PrivateFrame) PushBody() ([]byte, error) { + var err error + var data []byte + pro := biz.Proto{ + EventType: biz.Proto_common, + } + pro.Body, err = proto.Marshal(p.base) + if err != nil { + return nil, fmt.Errorf("marshal Common err: %v", err) + } + data, err = proto.Marshal(&pro) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +// +func (p *PrivateFrame) GetChannelType() biz.Channel { + return p.base.ChannelType +} + +func (p *PrivateFrame) GetMsgType() biz.MsgType { + return p.base.MsgType +} + +func (p *PrivateFrame) GetBase() *biz.Common { + return p.base +} diff --git a/chat/signal.go b/chat/signal.go new file mode 100644 index 0000000..30a7fc0 --- /dev/null +++ b/chat/signal.go @@ -0,0 +1,101 @@ +package chat + +import ( + "context" + "fmt" + "time" + + "github.com/golang/protobuf/proto" + "gitlab.33.cn/chat/imparse" + biz "gitlab.33.cn/chat/imparse/proto" + "gitlab.33.cn/chat/imparse/util" +) + +//private +type SignalFrame struct { + *StandardFrame + base *biz.Signal + + mid int64 + createTime uint64 +} + +func NewNoticeFrame(standardFrame *StandardFrame, bizPro *biz.Signal) *SignalFrame { + frame := &SignalFrame{ + StandardFrame: standardFrame, + base: bizPro, + } + frame.SetBody(frame) + return frame +} + +func (p *SignalFrame) Type() imparse.FrameType { + return SignalFrameType +} + +func (p *SignalFrame) Filter(ctx context.Context, db imparse.Cache, filters ...imparse.Filter) (uint64, error) { + var err error + for _, filter := range filters { + err = filter(ctx, p) + if err != nil { + return 0, err + } + } + p.mid, err = db.GetMid(ctx) + if err != nil { + return 0, err + } + p.createTime = uint64(util.TimeNowUnixNano() / int64(time.Millisecond)) + return p.createTime, nil +} + +func (p *SignalFrame) Transport(ctx context.Context, exec imparse.Exec) error { + data, err := p.PushData() + if err != nil { + return err + } + return exec.Transport(ctx, p.mid, p.GetKey(), p.GetFrom(), p.GetTarget(), p.GetTransmissionMethod(), p.Type(), data) +} + +func (p *SignalFrame) Ack(ctx context.Context, exec imparse.Exec) (int64, error) { + return p.mid, nil +} + +func (p *SignalFrame) AckBody() ([]byte, error) { + body, err := proto.Marshal(p.base) + if err != nil { + return nil, fmt.Errorf("marshal NotifyMsg err: %v", err) + } + if err != nil { + return nil, fmt.Errorf("marshal NotifyMsgAck err: %v", err) + } + data, err := proto.Marshal(&biz.Proto{ + EventType: biz.Proto_Signal, + Body: body, + }) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +func (p *SignalFrame) PushBody() ([]byte, error) { + var err error + var data []byte + pro := biz.Proto{ + EventType: biz.Proto_Signal, + } + pro.Body, err = proto.Marshal(p.base) + if err != nil { + return nil, fmt.Errorf("marshal NotifyMsg err: %v", err) + } + data, err = proto.Marshal(&pro) + if err != nil { + return nil, fmt.Errorf("marshal Proto err: %v", err) + } + return data, err +} + +func (p *SignalFrame) GetBase() *biz.Signal { + return p.base +} diff --git a/chat/test/action_test.go b/chat/test/action_test.go new file mode 100644 index 0000000..7f6b539 --- /dev/null +++ b/chat/test/action_test.go @@ -0,0 +1,171 @@ +package test + +import ( + "bytes" + "context" + "math/rand" + "os" + "testing" + "time" + + "github.com/golang/protobuf/proto" + comet "gitlab.33.cn/chat/im/api/comet/grpc" + "gitlab.33.cn/chat/imparse" + "gitlab.33.cn/chat/imparse/chat" + biz "gitlab.33.cn/chat/imparse/proto" +) + +type msg []byte + +var sourceData = []msg{} + +func TestMain(t *testing.M) { + sourceData = genTestFrames() + os.Exit(t.Run()) +} + +func genTestFrames() []msg { + p := comet.Proto{ + Ver: 0, + Op: int32(comet.Op_SendMsg), + Seq: 1, + Ack: 0, + Body: nil, + } + + pro := biz.Proto{ + EventType: biz.Proto_common, + Body: nil, + } + + comm := biz.Common{ + ChannelType: biz.Channel_ToUser, + Mid: 0, + Seq: "client-msg", + From: "client-from", + Target: "client-target", + MsgType: biz.MsgType_Text, + Msg: nil, + } + + data2, err := proto.Marshal(&comm) + if err != nil { + panic(err) + } + pro.Body = data2 + + data1, err := proto.Marshal(&pro) + if err != nil { + panic(err) + } + p.Body = data1 + + data, err := proto.Marshal(&p) + if err != nil { + panic(err) + } + return []msg{data} +} + +type testDB struct { +} + +func (db *testDB) GetMsg(ctx context.Context, from, seq string) (*imparse.MsgIndex, error) { + return nil, nil +} + +func (db *testDB) AddMsg(ctx context.Context, uid string, m *imparse.MsgIndex) error { + return nil +} +func (db *testDB) GetMid(ctx context.Context) (id int64, err error) { + //将时间戳设置成种子数 + rand.Seed(time.Now().UnixNano()) + id = int64(rand.Intn(100)) + return +} + +type testExec struct { +} + +func (e *testExec) Transport(ctx context.Context, id int64, key, from, target string, ch imparse.Channel, frameType imparse.FrameType, data []byte) error { + return nil +} + +func (e *testExec) RevAck(ctx context.Context, id int64, keys []string, data []byte) error { + return nil +} + +func TestStandard_Filter(t *testing.T) { + //全局初始化 + var db testDB + var e testExec + var exec = imparse.NewStandardAnswer(&db, &e, nil, nil) + var parser chat.StandardParse + + //局部初始化 + //来源模式 1. ws推送;2. http推送;3. 测试命令行 + from := "server-client" + key := "server-key" + + for _, m := range sourceData { + ctx := context.Background() + f, err := parser.NewFrame(key, from, bytes.NewReader(m)) + if err != nil { + t.Error(err) + return + } + _, err = exec.Filter(ctx, f) + if err != nil { + t.Error(err) + continue + } + err = exec.Transport(ctx, f) + if err != nil { + t.Error(err) + continue + } + _, err = exec.Ack(ctx, f) + if err != nil { + t.Error(err) + continue + } + } +} + +func BenchmarkCreateFrame(b *testing.B) { + //全局初始化 + var db testDB + var e testExec + var exec = imparse.NewStandardAnswer(&db, &e, nil, nil) + var parser chat.StandardParse + + data := sourceData[0] + //局部初始化 + //来源模式 1. ws推送;2. http推送;3. 测试命令行 + from := "server-client" + key := "server-key" + + for n := 0; n < b.N; n++ { + ctx := context.Background() + f, err := parser.NewFrame(key, from, bytes.NewReader(data)) + if err != nil { + b.Error(err) + return + } + _, err = exec.Filter(ctx, f) + if err != nil { + b.Error(err) + continue + } + err = exec.Transport(ctx, f) + if err != nil { + b.Error(err) + continue + } + _, err = exec.Ack(ctx, f) + if err != nil { + b.Error(err) + continue + } + } +} diff --git a/checker.go b/checker.go new file mode 100644 index 0000000..3700f17 --- /dev/null +++ b/checker.go @@ -0,0 +1,5 @@ +package imparse + +type Checker interface { + CheckFrame(frame Frame) error +} diff --git a/error.go b/error.go new file mode 100644 index 0000000..bf4bad6 --- /dev/null +++ b/error.go @@ -0,0 +1,15 @@ +package imparse + +import "errors" + +var ( + ErrorEnvType = errors.New("unsupported event type") + ErrorChType = errors.New("unsupported channel type") + ErrorMsgType = errors.New("unsupported message type") + + ErrExecSupport = errors.New("biz proto exec not support") + ErrMsgTypeSupport = errors.New("biz msg type not support") + ErrAppTypeSupport = errors.New("app type not support") + ErrPermissionDeny = errors.New("permission deny") + ErrGroupMemberNotExists = errors.New("group member not exists") +) diff --git a/frame.go b/frame.go new file mode 100644 index 0000000..373e6e3 --- /dev/null +++ b/frame.go @@ -0,0 +1,17 @@ +package imparse + +import "context" + +type FrameType string + +type BizProto interface { + AckBody() ([]byte, error) + PushBody() ([]byte, error) +} + +type Frame interface { + Type() FrameType + Filter(ctx context.Context, db Cache, filters ...Filter) (uint64, error) + Transport(ctx context.Context, exec Exec) error + Ack(ctx context.Context, exec Exec) (int64, error) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b3ac73e --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module gitlab.33.cn/chat/imparse + +go 1.15 + +require ( + github.com/golang/protobuf v1.4.3 + gitlab.33.cn/chat/im v1.0.6-pre2 + google.golang.org/protobuf v1.23.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..372519f --- /dev/null +++ b/go.sum @@ -0,0 +1,582 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/33cn/chain33 v0.0.0-20200527072033-e43d8da29c46/go.mod h1:RJsUKcMdXtCgpqp1W1ga6jTCieuJm6n7qd3XmnPXwa4= +github.com/33cn/chain33 v0.0.0-20200605043414-355d96f9ec97/go.mod h1:RJsUKcMdXtCgpqp1W1ga6jTCieuJm6n7qd3XmnPXwa4= +github.com/33cn/chain33 v1.64.0/go.mod h1:RJsUKcMdXtCgpqp1W1ga6jTCieuJm6n7qd3XmnPXwa4= +github.com/33cn/plugin v1.64.1-0.20200529022142-4c8918d6741c/go.mod h1:PKdkkj3I3NoPh2ahQa0cZ4l94PCtG34Bxm8YzaUq1rs= +github.com/360EntSecGroup-Skylar/excelize v1.4.1/go.mod h1:vnax29X2usfl7HHkBrX5EvSCJcmH3dT9luvxzu8iGAE= +github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/BurntSushi/toml v0.0.0-20170626110600-a368813c5e64/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= +github.com/NebulousLabs/Sia v1.3.7/go.mod h1:SCASk6mV8QdEojKyecjj/Jd0OGSXkZonkhow7XXKk6Q= +github.com/NebulousLabs/entropy-mnemonics v0.0.0-20170316012907-7b01a644a636/go.mod h1:ed2ZsnmJfqVNZOwxWWFZaSHJY3ifOjCS7i5yX9dvKHs= +github.com/NebulousLabs/errors v0.0.0-20171229012116-7ead97ef90b8/go.mod h1:J7tUI9Fg4YuFLsqeLE5uIp93Fot9oBCw2vwZJvLmWso= +github.com/NebulousLabs/fastrand v0.0.0-20180208210444-3cf7173006a0/go.mod h1:Bdzq+51GR4/0DIhaICZEOm+OHvXGwwB2trKZ8B4Y6eQ= +github.com/NebulousLabs/merkletree v0.0.0-20181025040823-2a1d1d1dc33c/go.mod h1:Cn056wBLKay+uIS9LJn7ymwhgC5mqbOtG6iOhEvyy4M= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/Terry-Mao/goim v0.0.0-20201205074412-7c5316e1c2e5 h1:C/AeojfBsXn0IneJFOQdUaVZzp6qs2xa0a72G+EQvyw= +github.com/Terry-Mao/goim v0.0.0-20201205074412-7c5316e1c2e5/go.mod h1:TbixifnJSmnDOkbQHYrXgQ04vqlSq6zlVQ5BWvadH44= +github.com/XiaoMi/pegasus-go-client v0.0.0-20181029071519-9400942c5d1c/go.mod h1:KcL6D/4RZ8RAYzQ5gKI0odcdWUmCVlbQTOlWrhP71CY= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/apache/thrift v0.0.0-20171203172758-327ebb6c2b6d/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bilibili/discovery v1.0.1/go.mod h1:daS5nEYEBt0scrrmuoNCxWXDHFK6gtEpjhVKG6MUxUg= +github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= +github.com/bsm/sarama-cluster v2.1.15+incompatible/go.mod h1:r7ao+4tTNXvWm+VRpRJchr2kQhqxgmAp2iEX5W96gMM= +github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/coreos/bbolt v1.3.0/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.15+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.25+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dchest/blake256 v1.0.0/go.mod h1:xXNWCE1jsAP8DAjP+rKw2MbeqLczjI3TRx2VK+9OEYY= +github.com/decred/base58 v1.0.0/go.mod h1:LLY1p5e3g91byL/UO1eiZaYd+uRoVRarybgcoymu9Ks= +github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= +github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gin-contrib/pprof v1.3.0/go.mod h1:waMjT1H9b179t3CxuG1cV3DHpga6ybizwfBaM5OXaB0= +github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v0.0.0-20180512030042-bf7803815b0b/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gin-gonic/gin v1.6.2/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3/go.mod h1:nPpo7qLxd6XL3hWJG/O60sR8ZKfMCiIoNap5GvD12KU= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gopherjs/gopherjs v0.0.0-20180424202546-8dffc02ea1cb/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU= +github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48= +github.com/haltingstate/secp256k1-go v0.0.0-20151224084235-572209b26df6/go.mod h1:73mKQiY8bLnscfGakn57WAJZTzT0eSUAy3qgMQNR/DI= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/inconshreveable/log15 v0.0.0-20200109203555-b30bc20e4fd1/go.mod h1:cOaXtrgN4ScfRrD9Bre7U1thNq5RtJ8ZoP4iXVGRj6o= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/influxdata/influxdb v1.7.9/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= +github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.1.0/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= +github.com/ipfs/go-ds-badger v0.0.2/go.mod h1:Y3QpeSFWQf6MopLTiZD+VT6IC1yZqaGmjvRcKeSGij8= +github.com/ipfs/go-ds-badger v0.0.5/go.mod h1:g5AuuCGmr7efyzQhLL8MzwqcauPojGPUaHzfGTzuE3s= +github.com/ipfs/go-ds-leveldb v0.0.1/go.mod h1:feO8V3kubwsEF22n0YRQCffeb79OOYIykR4L04tMOYc= +github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= +github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc= +github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= +github.com/ipfs/go-todocounter v0.0.1/go.mod h1:l5aErvQc8qKE2r7NDMjmq5UNAvuZy0rC8BHOplkWvZ4= +github.com/issue9/assert v1.0.0/go.mod h1:KLwR3U/5rbCxqwAnV3aCr+dz07aoIyIfk2lefIVr2BA= +github.com/jackpal/gateway v1.0.5/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= +github.com/jackpal/go-nat-pmp v1.0.1/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec/go.mod h1:rGaEvXB4uRSZMmzKNLoXvTu1sfx+1kv/DojUlPrSZGs= +github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= +github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2/go.mod h1:8GXXJV31xl8whumTzdZsTt3RnUIiPqzkyf7mxToRCMs= +github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8/go.mod h1:Ly/wlsjFq/qrU3Rar62tu1gASgGw6chQbSh/XgIIXCY= +github.com/jbenet/goprocess v0.1.3/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= +github.com/json-iterator/go v0.0.0-20180526014329-8744d7c5c7b4/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d/go.mod h1:P2viExyCEfeWGU259JnaQ34Inuec4R38JCyBx2edgD0= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/libp2p/go-addr-util v0.0.1/go.mod h1:4ac6O7n9rIAKB1dnd+s8IbbMXkt+oBpzX4/+RACcnlQ= +github.com/libp2p/go-buffer-pool v0.0.1/go.mod h1:xtyIz9PMobb13WaxR6Zo1Pd1zXJKYg0a8KiIvDp3TzQ= +github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= +github.com/libp2p/go-conn-security-multistream v0.1.0/go.mod h1:aw6eD7LOsHEX7+2hJkDxw1MteijaVcI+/eP2/x3J1xc= +github.com/libp2p/go-eventbus v0.0.2/go.mod h1:Hr/yGlwxA/stuLnpMiu82lpNKpvRy3EaJxPu40XYOwk= +github.com/libp2p/go-eventbus v0.1.0/go.mod h1:vROgu5cs5T7cv7POWlWxBaVLxfSegC5UGQf8A2eEmx4= +github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= +github.com/libp2p/go-flow-metrics v0.0.2/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= +github.com/libp2p/go-libp2p v0.3.1/go.mod h1:e6bwxbdYH1HqWTz8faTChKGR0BjPc8p+6SyP8GTTR7Y= +github.com/libp2p/go-libp2p v0.4.0/go.mod h1:9EsEIf9p2UDuwtPd0DwJsAl0qXVxgAnuDGRvHbfATfI= +github.com/libp2p/go-libp2p-autonat v0.1.0/go.mod h1:1tLf2yXxiE/oKGtDwPYWTSYG3PtvYlJmg7NeVtPRqH8= +github.com/libp2p/go-libp2p-blankhost v0.1.1/go.mod h1:pf2fvdLJPsC1FsVrNP3DUUvMzUts2dsLLBEpo1vW1ro= +github.com/libp2p/go-libp2p-blankhost v0.1.3/go.mod h1:KML1//wiKR8vuuJO0y3LUd1uLv+tlkGTAr3jC0S5cLg= +github.com/libp2p/go-libp2p-blankhost v0.1.4/go.mod h1:oJF0saYsAXQCSfDq254GMNmLNz6ZTHTOvtF4ZydUvwU= +github.com/libp2p/go-libp2p-circuit v0.1.1/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= +github.com/libp2p/go-libp2p-circuit v0.1.3/go.mod h1:Xqh2TjSy8DD5iV2cCOMzdynd6h8OTBGoV1AWbWor3qM= +github.com/libp2p/go-libp2p-connmgr v0.2.0/go.mod h1:C4r2FWWfbfk7U9NFcvY8oegIVxK3jPtOwFrEmtDunTg= +github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGcGip57wjTU4fco= +github.com/libp2p/go-libp2p-core v0.0.4/go.mod h1:jyuCQP356gzfCFtRKyvAbNkyeuxb7OlyhWZ3nls5d2I= +github.com/libp2p/go-libp2p-core v0.0.6/go.mod h1:0d9xmaYAVY5qmbp/fcgxHT3ZJsLjYeYPMJAUKpaCHrE= +github.com/libp2p/go-libp2p-core v0.2.0/go.mod h1:X0eyB0Gy93v0DZtSYbEM7RnMChm9Uv3j7yRXjO77xSI= +github.com/libp2p/go-libp2p-core v0.2.2/go.mod h1:8fcwTbsG2B+lTgRJ1ICZtiM5GWCWZVoVrLaDRvIRng0= +github.com/libp2p/go-libp2p-core v0.2.3/go.mod h1:GqhyQqyIAPsxFYXHMjfXgMv03lxsvM0mFzuYA9Ib42A= +github.com/libp2p/go-libp2p-core v0.2.5/go.mod h1:6+5zJmKhsf7yHn1RbmYDu08qDUpIUxGdqHuEZckmZOA= +github.com/libp2p/go-libp2p-crypto v0.1.0/go.mod h1:sPUokVISZiy+nNuTTH/TY+leRSxnFj/2GLjtOTW90hI= +github.com/libp2p/go-libp2p-discovery v0.1.0/go.mod h1:4F/x+aldVHjHDHuX85x1zWoFTGElt8HnoDzwkFZm29g= +github.com/libp2p/go-libp2p-kad-dht v0.2.1/go.mod h1:k7ONOlup7HKzQ68dE6lSnp07cdxdkmnRa+6B4Fh9/w0= +github.com/libp2p/go-libp2p-kbucket v0.2.1/go.mod h1:/Rtu8tqbJ4WQ2KTCOMJhggMukOLNLNPY1EtEWWLxUvc= +github.com/libp2p/go-libp2p-loggables v0.1.0/go.mod h1:EyumB2Y6PrYjr55Q3/tiJ/o3xoDasoRYM7nOzEpoa90= +github.com/libp2p/go-libp2p-mplex v0.2.0/go.mod h1:Ejl9IyjvXJ0T9iqUTE1jpYATQ9NM3g+OtR+EMMODbKo= +github.com/libp2p/go-libp2p-mplex v0.2.1/go.mod h1:SC99Rxs8Vuzrf/6WhmH41kNn13TiYdAWNYHrwImKLnE= +github.com/libp2p/go-libp2p-nat v0.0.4/go.mod h1:N9Js/zVtAXqaeT99cXgTV9e75KpnWCvVOiGzlcHmBbY= +github.com/libp2p/go-libp2p-netutil v0.1.0/go.mod h1:3Qv/aDqtMLTUyQeundkKsA+YCThNdbQD54k3TqjpbFU= +github.com/libp2p/go-libp2p-peer v0.2.0/go.mod h1:RCffaCvUyW2CJmG2gAWVqwePwW7JMgxjsHm7+J5kjWY= +github.com/libp2p/go-libp2p-peerstore v0.1.0/go.mod h1:2CeHkQsr8svp4fZ+Oi9ykN1HBb6u0MOvdJ7YIsmcwtY= +github.com/libp2p/go-libp2p-peerstore v0.1.3/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= +github.com/libp2p/go-libp2p-record v0.1.1/go.mod h1:VRgKajOyMVgP/F0L5g3kH7SVskp17vFi2xheb5uMJtg= +github.com/libp2p/go-libp2p-routing v0.1.0/go.mod h1:zfLhI1RI8RLEzmEaaPwzonRvXeeSHddONWkcTcB54nE= +github.com/libp2p/go-libp2p-secio v0.1.0/go.mod h1:tMJo2w7h3+wN4pgU2LSYeiKPrfqBgkOsdiKK77hE7c8= +github.com/libp2p/go-libp2p-secio v0.2.0/go.mod h1:2JdZepB8J5V9mBp79BmwsaPQhRPNN2NrnB2lKQcdy6g= +github.com/libp2p/go-libp2p-swarm v0.1.0/go.mod h1:wQVsCdjsuZoc730CgOvh5ox6K8evllckjebkdiY5ta4= +github.com/libp2p/go-libp2p-swarm v0.2.1/go.mod h1:x07b4zkMFo2EvgPV2bMTlNmdQc8i+74Jjio7xGvsTgU= +github.com/libp2p/go-libp2p-swarm v0.2.2/go.mod h1:fvmtQ0T1nErXym1/aa1uJEyN7JzaTNyBcHImCxRpPKU= +github.com/libp2p/go-libp2p-testing v0.0.2/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.3/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.4/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.1.0/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= +github.com/libp2p/go-libp2p-transport-upgrader v0.1.1/go.mod h1:IEtA6or8JUbsV07qPW4r01GnTenLW4oi3lOPbUMGJJA= +github.com/libp2p/go-libp2p-yamux v0.2.0/go.mod h1:Db2gU+XfLpm6E4rG5uGCFX6uXA8MEXOxFcRoXUODaK8= +github.com/libp2p/go-libp2p-yamux v0.2.1/go.mod h1:1FBXiHDk1VyRM1C0aez2bCfHQ4vMZKkAQzZbkSQt5fI= +github.com/libp2p/go-maddr-filter v0.0.4/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= +github.com/libp2p/go-maddr-filter v0.0.5/go.mod h1:Jk+36PMfIqCJhAnaASRH83bdAvfDRp/w6ENFaC9bG+M= +github.com/libp2p/go-mplex v0.0.3/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= +github.com/libp2p/go-mplex v0.1.0/go.mod h1:SXgmdki2kwCUlCCbfGLEgHjC4pFqhTp0ZoV6aiKgxDU= +github.com/libp2p/go-msgio v0.0.2/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-nat v0.0.3/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= +github.com/libp2p/go-openssl v0.0.2/go.mod h1:v8Zw2ijCSWBQi8Pq5GAixw6DbFfa9u6VIYDXnvOXkc0= +github.com/libp2p/go-openssl v0.0.3/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-reuseport v0.0.1/go.mod h1:jn6RmB1ufnQwl0Q1f+YxAj8isJgDCQzaaxIFYDhcYEA= +github.com/libp2p/go-reuseport-transport v0.0.2/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= +github.com/libp2p/go-stream-muxer v0.0.1/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= +github.com/libp2p/go-stream-muxer-multistream v0.2.0/go.mod h1:j9eyPol/LLRqT+GPLSxvimPhNph4sfYfMoDPd7HkzIc= +github.com/libp2p/go-tcp-transport v0.1.0/go.mod h1:oJ8I5VXryj493DEJ7OsBieu8fcg2nHGctwtInJVpipc= +github.com/libp2p/go-tcp-transport v0.1.1/go.mod h1:3HzGvLbx6etZjnFlERyakbaYPdfjg2pWP97dFZworkY= +github.com/libp2p/go-ws-transport v0.1.0/go.mod h1:rjw1MG1LU9YDC6gzmwObkPd/Sqwhw7yT74kj3raBFuo= +github.com/libp2p/go-ws-transport v0.1.2/go.mod h1:dsh2Ld8F+XNmzpkaAijmg5Is+e9l6/1tK/6VFOdN69Y= +github.com/libp2p/go-yamux v1.2.2/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.2.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/lotus-king/SM3 v0.0.0-20161018102718-5a3b85ca5a40/go.mod h1:BZEQO3B4MHBIfALOrsqsiZ1hNMdVZ0j7E4q6zXLh2aM= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/miekg/dns v1.1.12/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= +github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180511053014-58118c1ea916/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= +github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.1/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA= +github.com/multiformats/go-multiaddr v0.0.1/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.2/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.4/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.0/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= +github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= +github.com/multiformats/go-multiaddr-dns v0.0.1/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.0.2/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.0.3/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.1.0/go.mod h1:01k2RAqtoXIuPa3DCavAE9/6jc6nM0H3EgZyfUhN2oY= +github.com/multiformats/go-multiaddr-fmt v0.0.1/go.mod h1:aBYjqL4T/7j4Qx+R73XSv/8JsgnRFlf0w2KGLCmXl3Q= +github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= +github.com/multiformats/go-multiaddr-net v0.0.1/go.mod h1:nw6HSxNmCIQH27XPGBuX+d1tnvM7ihcFwHMSstNAVUU= +github.com/multiformats/go-multiaddr-net v0.1.0/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= +github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= +github.com/multiformats/go-multicodec v0.1.6/go.mod h1:lliaRHbcG8q33yf4Ot9BGD7JqR/Za9HE7HTyVyKwrUQ= +github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= +github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= +github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= +github.com/multiformats/go-multistream v0.1.0/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= +github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/oofpgDLD/dtask v1.0.2/go.mod h1:r07DPvHuXY0iEq7QSFBZ5gVYRmi3Ohv6d8rek5CNPuk= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/robertkrimen/otto v0.0.0-20180617131154-15f95af6e78d/go.mod h1:xvqspoSXJTIpemEonrMDFq6XzwHYYgToXWj5eRX1OtY= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/rs/zerolog v1.21.0/go.mod h1:ZPhntP/xmq1nnND05hhpAh2QMhSsA4UN3MGZ6O2J3hM= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/smartystreets/assertions v0.0.0-20180301161246-7678a5452ebe/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= +github.com/smartystreets/gunit v0.0.0-20180314194857-6f0d6275bdcd/go.mod h1:XUKj4gbqj2QvJk/OdLWzyZ3FYli0f+MdpngyryX0gcw= +github.com/smola/gocompat v0.2.0/go.mod h1:1B0MlxbmoZNo3h8guHp8HztB3BSYR5itql9qtVc0ypY= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0= +github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.2.3-0.20181224173747-660f15d67dbb/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/tendermint/ed25519 v0.0.0-20171027050219-d8387025d2b9/go.mod h1:nt45hbhDkWVdMBkr2TOgOzCrpBccXdN09WOiOYTHVEk= +github.com/thinkboy/log4go v0.0.0-20160303045050-f91a411e4a18/go.mod h1:IeFvD+ls8ldW9O62n+3QrktXSvtXuUDi6iLnISh6q80= +github.com/tjfoc/gmsm v0.0.0-20171124023159-98aa888b79d8/go.mod h1:XxO4hdhhrzAd+G4CjDqaOkd0hUzmtPR/d3EiBBMn/wc= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/ugorji/go v0.0.0-20180407103000-f3cacc17c85e/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= +github.com/ugorji/go v1.1.2/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43/go.mod h1:iT03XoTwV7xq/+UGwKO3UbC1nNNlopQiY61beSdrtOA= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.5.0/go.mod h1:eriCz9OhZjKCGfJ185a/IDgNl0bg9IbzfpcslMZXU1c= +github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= +github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM= +github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= +github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc/go.mod h1:bopw91TMyo8J3tvftk8xmU2kPmlrt4nScJQZU2hE5EM= +github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f/go.mod h1:cZNvX9cFybI01GriPRMXDtczuvUhgbcYr9iCGaNlRv8= +github.com/whyrusleeping/mafmt v1.2.8/go.mod h1:faQJFPbLSxzD9xpA02ttW/tS9vZykNvXwGvqIpk20FA= +github.com/whyrusleeping/mdns v0.0.0-20180901202407-ef14215e6b30/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= +github.com/whyrusleeping/mdns v0.0.0-20190826153040-b9b60ed33aa9/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= +github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7/go.mod h1:X2c0RVCI1eSUFI8eLcY3c0423ykwiUdxLJtkDvruhjI= +github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/zhenjl/cityhash v0.0.0-20131128155616-cdd6a94144ab/go.mod h1:P6L88wrqK99Njntah9SB7AyzFpUXsXYq06LkjixxQmY= +gitlab.33.cn/btrade/auto_trade_tools v1.2.8/go.mod h1:XbudTl/FDkpdcGDKwDIZ0QTuY2r9NVElcE/e9afixv8= +gitlab.33.cn/btrade/blockchain v1.1.0/go.mod h1:4XRBV9vjiAB2tQbXAtWCoAcI55OmNIVu9Gc8yrzg1cM= +gitlab.33.cn/btrade/common v1.0.2/go.mod h1:BJhb/g0OgtLBNJxS8zZA54jTtr6oY0/T5N5jTKbIxLY= +gitlab.33.cn/btrade/crypto v1.0.1/go.mod h1:FYhKLN69inc9nhXJw49qodvRRmFQCqEyj/JhfeNLfZk= +gitlab.33.cn/btrade/log v1.0.2/go.mod h1:grfvrYpf0OJOJ5HCUefcPlaOunEc53wOXw4WnAHLNwM= +gitlab.33.cn/chat/im v1.0.6-pre2 h1:5uGtJoOwC3szqrBXjWUE7Cx6rlBI2yOIM1rp5siffTA= +gitlab.33.cn/chat/im v1.0.6-pre2/go.mod h1:I54oIHXtpMDGk1xJVYrqsDwTlITkML4GjXo7XBoIKRs= +gitlab.33.cn/contract/exchange v1.0.7/go.mod h1:MylnHconA4rUfp10jWZc6zZ+3LBIt13Ow9HUWGACAto= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.2.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190225124518-7f87c0fbb88b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200117160349-530e935923ad/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201217014255-9d1352758620/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190227160552-c95aed5357e7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 h1:myAQVi0cGEoqQVR5POX+8RR2mrocKqNN1hmeMqhX27k= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181130052023-1c3d964395ce/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200310143817-43be25429f5a h1:lRlI5zu6AFy3iU/F8YWyNrAmn/tPCnhiTxfwhWb76eU= +google.golang.org/genproto v0.0.0-20200310143817-43be25429f5a/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/grpc v0.0.0-20181030232906-a88340f3c899/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= +google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.33.0 h1:IBKSUNL2uBS2DkJBncPP+TwT0sp9tgA8A75NjHt6umg= +google.golang.org/grpc v1.33.0/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +gopkg.in/Shopify/sarama.v1 v1.19.0/go.mod h1:AxnvoaevB2nBjNK17cG61A3LleFcWFwVBHBt+cot4Oc= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= +gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= +gopkg.in/go-playground/webhooks.v5 v5.2.0/go.mod h1:LZbya/qLVdbqDR1aKrGuWV6qbia2zCYSR5dpom2SInQ= +gopkg.in/h2non/gock.v1 v1.0.8/go.mod h1:KHI4Z1sxDW6P4N3DfTWSEza07YpkQP7KJBfglRMEjKY= +gopkg.in/natefinch/lumberjack.v2 v2.0.0-20170531160350-a96e63847dc3/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/sourcemap.v1 v1.0.5/go.mod h1:2RlvNNSMglmRrcvhfuzp4hQHwOtjxlbjX7UPY/GXb78= +gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVYcSwSjGebuDL6176A1XskgbtNl64NSg+n8= +gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637/go.mod h1:BHsqpu/nsuzkT5BpiH1EMZPLyqSMM8JbIavyFACoFNk= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/proto/auth.pb.go b/proto/auth.pb.go new file mode 100644 index 0000000..a7b180e --- /dev/null +++ b/proto/auth.pb.go @@ -0,0 +1,218 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.1 +// source: auth.proto + +package proto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Device int32 + +const ( + Device_Android Device = 0 + Device_IOS Device = 1 +) + +// Enum value maps for Device. +var ( + Device_name = map[int32]string{ + 0: "Android", + 1: "IOS", + } + Device_value = map[string]int32{ + "Android": 0, + "IOS": 1, + } +) + +func (x Device) Enum() *Device { + p := new(Device) + *p = x + return p +} + +func (x Device) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Device) Descriptor() protoreflect.EnumDescriptor { + return file_auth_proto_enumTypes[0].Descriptor() +} + +func (Device) Type() protoreflect.EnumType { + return &file_auth_proto_enumTypes[0] +} + +func (x Device) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Device.Descriptor instead. +func (Device) EnumDescriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{0} +} + +type Login struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Device Device `protobuf:"varint,1,opt,name=device,proto3,enum=imparse.auth.Device" json:"device,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + DeviceToken string `protobuf:"bytes,3,opt,name=deviceToken,proto3" json:"deviceToken,omitempty"` +} + +func (x *Login) Reset() { + *x = Login{} + if protoimpl.UnsafeEnabled { + mi := &file_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Login) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Login) ProtoMessage() {} + +func (x *Login) ProtoReflect() protoreflect.Message { + mi := &file_auth_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Login.ProtoReflect.Descriptor instead. +func (*Login) Descriptor() ([]byte, []int) { + return file_auth_proto_rawDescGZIP(), []int{0} +} + +func (x *Login) GetDevice() Device { + if x != nil { + return x.Device + } + return Device_Android +} + +func (x *Login) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *Login) GetDeviceToken() string { + if x != nil { + return x.DeviceToken + } + return "" +} + +var File_auth_proto protoreflect.FileDescriptor + +var file_auth_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x69, 0x6d, + 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x22, 0x73, 0x0a, 0x05, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x61, 0x75, + 0x74, 0x68, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, + 0x1e, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x6e, 0x64, + 0x72, 0x6f, 0x69, 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4f, 0x53, 0x10, 0x01, 0x42, + 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x33, 0x33, 0x2e, 0x63, 0x6e, 0x2f, + 0x63, 0x68, 0x61, 0x74, 0x2f, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_auth_proto_rawDescOnce sync.Once + file_auth_proto_rawDescData = file_auth_proto_rawDesc +) + +func file_auth_proto_rawDescGZIP() []byte { + file_auth_proto_rawDescOnce.Do(func() { + file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) + }) + return file_auth_proto_rawDescData +} + +var file_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_auth_proto_goTypes = []interface{}{ + (Device)(0), // 0: imparse.auth.Device + (*Login)(nil), // 1: imparse.auth.Login +} +var file_auth_proto_depIdxs = []int32{ + 0, // 0: imparse.auth.Login.device:type_name -> imparse.auth.Device + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_auth_proto_init() } +func file_auth_proto_init() { + if File_auth_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Login); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_auth_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_auth_proto_goTypes, + DependencyIndexes: file_auth_proto_depIdxs, + EnumInfos: file_auth_proto_enumTypes, + MessageInfos: file_auth_proto_msgTypes, + }.Build() + File_auth_proto = out.File + file_auth_proto_rawDesc = nil + file_auth_proto_goTypes = nil + file_auth_proto_depIdxs = nil +} diff --git a/proto/auth.proto b/proto/auth.proto new file mode 100644 index 0000000..56c950e --- /dev/null +++ b/proto/auth.proto @@ -0,0 +1,16 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto +syntax = "proto3"; + +package imparse.auth; +option go_package = "gitlab.33.cn/chat/imparse/proto"; + +enum Device { + Android = 0; + IOS = 1; +} + +message Login { + Device device = 1; + string username = 2; + string deviceToken = 3; +} \ No newline at end of file diff --git a/proto/create.sh b/proto/create.sh new file mode 100644 index 0000000..20b46c9 --- /dev/null +++ b/proto/create.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +#protoc --proto_path=$GOPATH/src:. \ +# --go_out=. --go_opt=paths=source_relative \ +# --go-grpc_out=. --go-grpc_opt=paths=source_relative \ +# api.proto + +#protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto + +protoc --go_out=. --go_opt=paths=source_relative \ + --go-grpc_out=. --go-grpc_opt=paths=source_relative \ + *.proto \ No newline at end of file diff --git a/proto/msg.pb.go b/proto/msg.pb.go new file mode 100644 index 0000000..3b469a5 --- /dev/null +++ b/proto/msg.pb.go @@ -0,0 +1,2003 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.1 +// source: msg.proto + +package proto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +//notice msg define +type NoticeMsgType int32 + +const ( + NoticeMsgType_UpdateGroupNameNoticeMsg NoticeMsgType = 0 + NoticeMsgType_SignInGroupNoticeMsg NoticeMsgType = 1 + NoticeMsgType_SignOutGroupNoticeMsg NoticeMsgType = 2 + NoticeMsgType_KickOutGroupNoticeMsg NoticeMsgType = 3 + NoticeMsgType_DeleteGroupNoticeMsg NoticeMsgType = 4 + NoticeMsgType_UpdateGroupMutedNoticeMsg NoticeMsgType = 5 + NoticeMsgType_UpdateGroupMemberMutedNoticeMsg NoticeMsgType = 6 + NoticeMsgType_UpdateGroupOwnerNoticeMsg NoticeMsgType = 7 + NoticeMsgType_MsgRevoked NoticeMsgType = 8 //撤回消息通知,客户端占用 +) + +// Enum value maps for NoticeMsgType. +var ( + NoticeMsgType_name = map[int32]string{ + 0: "UpdateGroupNameNoticeMsg", + 1: "SignInGroupNoticeMsg", + 2: "SignOutGroupNoticeMsg", + 3: "KickOutGroupNoticeMsg", + 4: "DeleteGroupNoticeMsg", + 5: "UpdateGroupMutedNoticeMsg", + 6: "UpdateGroupMemberMutedNoticeMsg", + 7: "UpdateGroupOwnerNoticeMsg", + 8: "MsgRevoked", + } + NoticeMsgType_value = map[string]int32{ + "UpdateGroupNameNoticeMsg": 0, + "SignInGroupNoticeMsg": 1, + "SignOutGroupNoticeMsg": 2, + "KickOutGroupNoticeMsg": 3, + "DeleteGroupNoticeMsg": 4, + "UpdateGroupMutedNoticeMsg": 5, + "UpdateGroupMemberMutedNoticeMsg": 6, + "UpdateGroupOwnerNoticeMsg": 7, + "MsgRevoked": 8, + } +) + +func (x NoticeMsgType) Enum() *NoticeMsgType { + p := new(NoticeMsgType) + *p = x + return p +} + +func (x NoticeMsgType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NoticeMsgType) Descriptor() protoreflect.EnumDescriptor { + return file_msg_proto_enumTypes[0].Descriptor() +} + +func (NoticeMsgType) Type() protoreflect.EnumType { + return &file_msg_proto_enumTypes[0] +} + +func (x NoticeMsgType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NoticeMsgType.Descriptor instead. +func (NoticeMsgType) EnumDescriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{0} +} + +type RedPacketMsg_RPType int32 + +const ( + RedPacketMsg_RandomAmount RedPacketMsg_RPType = 0 + RedPacketMsg_IdenticalAmount RedPacketMsg_RPType = 1 +) + +// Enum value maps for RedPacketMsg_RPType. +var ( + RedPacketMsg_RPType_name = map[int32]string{ + 0: "RandomAmount", + 1: "IdenticalAmount", + } + RedPacketMsg_RPType_value = map[string]int32{ + "RandomAmount": 0, + "IdenticalAmount": 1, + } +) + +func (x RedPacketMsg_RPType) Enum() *RedPacketMsg_RPType { + p := new(RedPacketMsg_RPType) + *p = x + return p +} + +func (x RedPacketMsg_RPType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RedPacketMsg_RPType) Descriptor() protoreflect.EnumDescriptor { + return file_msg_proto_enumTypes[1].Descriptor() +} + +func (RedPacketMsg_RPType) Type() protoreflect.EnumType { + return &file_msg_proto_enumTypes[1] +} + +func (x RedPacketMsg_RPType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RedPacketMsg_RPType.Descriptor instead. +func (RedPacketMsg_RPType) EnumDescriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{11, 0} +} + +type ContactCardMsg_CardType int32 + +const ( + ContactCardMsg_Undefined ContactCardMsg_CardType = 0 + ContactCardMsg_Personal ContactCardMsg_CardType = 1 +) + +// Enum value maps for ContactCardMsg_CardType. +var ( + ContactCardMsg_CardType_name = map[int32]string{ + 0: "Undefined", + 1: "Personal", + } + ContactCardMsg_CardType_value = map[string]int32{ + "Undefined": 0, + "Personal": 1, + } +) + +func (x ContactCardMsg_CardType) Enum() *ContactCardMsg_CardType { + p := new(ContactCardMsg_CardType) + *p = x + return p +} + +func (x ContactCardMsg_CardType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContactCardMsg_CardType) Descriptor() protoreflect.EnumDescriptor { + return file_msg_proto_enumTypes[2].Descriptor() +} + +func (ContactCardMsg_CardType) Type() protoreflect.EnumType { + return &file_msg_proto_enumTypes[2] +} + +func (x ContactCardMsg_CardType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContactCardMsg_CardType.Descriptor instead. +func (ContactCardMsg_CardType) EnumDescriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{12, 0} +} + +type EncryptMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` +} + +func (x *EncryptMsg) Reset() { + *x = EncryptMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EncryptMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EncryptMsg) ProtoMessage() {} + +func (x *EncryptMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EncryptMsg.ProtoReflect.Descriptor instead. +func (*EncryptMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{0} +} + +func (x *EncryptMsg) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +type TextMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + Mention []string `protobuf:"bytes,2,rep,name=mention,proto3" json:"mention,omitempty"` +} + +func (x *TextMsg) Reset() { + *x = TextMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TextMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TextMsg) ProtoMessage() {} + +func (x *TextMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TextMsg.ProtoReflect.Descriptor instead. +func (*TextMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{1} +} + +func (x *TextMsg) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *TextMsg) GetMention() []string { + if x != nil { + return x.Mention + } + return nil +} + +type AudioMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaUrl string `protobuf:"bytes,1,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"` + Time int32 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *AudioMsg) Reset() { + *x = AudioMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AudioMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AudioMsg) ProtoMessage() {} + +func (x *AudioMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AudioMsg.ProtoReflect.Descriptor instead. +func (*AudioMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{2} +} + +func (x *AudioMsg) GetMediaUrl() string { + if x != nil { + return x.MediaUrl + } + return "" +} + +func (x *AudioMsg) GetTime() int32 { + if x != nil { + return x.Time + } + return 0 +} + +type ImageMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaUrl string `protobuf:"bytes,1,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"` + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (x *ImageMsg) Reset() { + *x = ImageMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ImageMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageMsg) ProtoMessage() {} + +func (x *ImageMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ImageMsg.ProtoReflect.Descriptor instead. +func (*ImageMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{3} +} + +func (x *ImageMsg) GetMediaUrl() string { + if x != nil { + return x.MediaUrl + } + return "" +} + +func (x *ImageMsg) GetHeight() int32 { + if x != nil { + return x.Height + } + return 0 +} + +func (x *ImageMsg) GetWidth() int32 { + if x != nil { + return x.Width + } + return 0 +} + +type VideoMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaUrl string `protobuf:"bytes,1,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"` + Time int32 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` +} + +func (x *VideoMsg) Reset() { + *x = VideoMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VideoMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VideoMsg) ProtoMessage() {} + +func (x *VideoMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VideoMsg.ProtoReflect.Descriptor instead. +func (*VideoMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{4} +} + +func (x *VideoMsg) GetMediaUrl() string { + if x != nil { + return x.MediaUrl + } + return "" +} + +func (x *VideoMsg) GetTime() int32 { + if x != nil { + return x.Time + } + return 0 +} + +func (x *VideoMsg) GetHeight() int32 { + if x != nil { + return x.Height + } + return 0 +} + +func (x *VideoMsg) GetWidth() int32 { + if x != nil { + return x.Width + } + return 0 +} + +type FileMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaUrl string `protobuf:"bytes,1,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Md5 string `protobuf:"bytes,3,opt,name=md5,proto3" json:"md5,omitempty"` + Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *FileMsg) Reset() { + *x = FileMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileMsg) ProtoMessage() {} + +func (x *FileMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileMsg.ProtoReflect.Descriptor instead. +func (*FileMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{5} +} + +func (x *FileMsg) GetMediaUrl() string { + if x != nil { + return x.MediaUrl + } + return "" +} + +func (x *FileMsg) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *FileMsg) GetMd5() string { + if x != nil { + return x.Md5 + } + return "" +} + +func (x *FileMsg) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type CardMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bank string `protobuf:"bytes,1,opt,name=bank,proto3" json:"bank,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` +} + +func (x *CardMsg) Reset() { + *x = CardMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CardMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CardMsg) ProtoMessage() {} + +func (x *CardMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CardMsg.ProtoReflect.Descriptor instead. +func (*CardMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{6} +} + +func (x *CardMsg) GetBank() string { + if x != nil { + return x.Bank + } + return "" +} + +func (x *CardMsg) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CardMsg) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +type NoticeMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type NoticeMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=imparse.msg.NoticeMsgType" json:"type,omitempty"` + Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` +} + +func (x *NoticeMsg) Reset() { + *x = NoticeMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsg) ProtoMessage() {} + +func (x *NoticeMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsg.ProtoReflect.Descriptor instead. +func (*NoticeMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{7} +} + +func (x *NoticeMsg) GetType() NoticeMsgType { + if x != nil { + return x.Type + } + return NoticeMsgType_UpdateGroupNameNoticeMsg +} + +func (x *NoticeMsg) GetBody() []byte { + if x != nil { + return x.Body + } + return nil +} + +type ForwardItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + MsgType int32 `protobuf:"varint,3,opt,name=msgType,proto3" json:"msgType,omitempty"` + Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` + Datetime uint64 `protobuf:"varint,5,opt,name=datetime,proto3" json:"datetime,omitempty"` +} + +func (x *ForwardItem) Reset() { + *x = ForwardItem{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ForwardItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForwardItem) ProtoMessage() {} + +func (x *ForwardItem) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ForwardItem.ProtoReflect.Descriptor instead. +func (*ForwardItem) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{8} +} + +func (x *ForwardItem) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *ForwardItem) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ForwardItem) GetMsgType() int32 { + if x != nil { + return x.MsgType + } + return 0 +} + +func (x *ForwardItem) GetMsg() []byte { + if x != nil { + return x.Msg + } + return nil +} + +func (x *ForwardItem) GetDatetime() uint64 { + if x != nil { + return x.Datetime + } + return 0 +} + +type ForwardMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Items []*ForwardItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *ForwardMsg) Reset() { + *x = ForwardMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ForwardMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForwardMsg) ProtoMessage() {} + +func (x *ForwardMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ForwardMsg.ProtoReflect.Descriptor instead. +func (*ForwardMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{9} +} + +func (x *ForwardMsg) GetItems() []*ForwardItem { + if x != nil { + return x.Items + } + return nil +} + +type TransferMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` + CoinName string `protobuf:"bytes,2,opt,name=coinName,proto3" json:"coinName,omitempty"` +} + +func (x *TransferMsg) Reset() { + *x = TransferMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransferMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransferMsg) ProtoMessage() {} + +func (x *TransferMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransferMsg.ProtoReflect.Descriptor instead. +func (*TransferMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{10} +} + +func (x *TransferMsg) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *TransferMsg) GetCoinName() string { + if x != nil { + return x.CoinName + } + return "" +} + +type RedPacketMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` + CoinName string `protobuf:"bytes,2,opt,name=coinName,proto3" json:"coinName,omitempty"` + Exec string `protobuf:"bytes,3,opt,name=exec,proto3" json:"exec,omitempty"` //执行器名称 user.p. + PacketType RedPacketMsg_RPType `protobuf:"varint,4,opt,name=packetType,proto3,enum=imparse.msg.RedPacketMsg_RPType" json:"packetType,omitempty"` + PrivateKey string `protobuf:"bytes,5,opt,name=privateKey,proto3" json:"privateKey,omitempty"` //客户端创建的私钥(选填) + Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` + Expire uint64 `protobuf:"varint,7,opt,name=expire,proto3" json:"expire,omitempty"` //到期时间 单位:ms时间戳 +} + +func (x *RedPacketMsg) Reset() { + *x = RedPacketMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RedPacketMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RedPacketMsg) ProtoMessage() {} + +func (x *RedPacketMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RedPacketMsg.ProtoReflect.Descriptor instead. +func (*RedPacketMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{11} +} + +func (x *RedPacketMsg) GetTxHash() string { + if x != nil { + return x.TxHash + } + return "" +} + +func (x *RedPacketMsg) GetCoinName() string { + if x != nil { + return x.CoinName + } + return "" +} + +func (x *RedPacketMsg) GetExec() string { + if x != nil { + return x.Exec + } + return "" +} + +func (x *RedPacketMsg) GetPacketType() RedPacketMsg_RPType { + if x != nil { + return x.PacketType + } + return RedPacketMsg_RandomAmount +} + +func (x *RedPacketMsg) GetPrivateKey() string { + if x != nil { + return x.PrivateKey + } + return "" +} + +func (x *RedPacketMsg) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *RedPacketMsg) GetExpire() uint64 { + if x != nil { + return x.Expire + } + return 0 +} + +type ContactCardMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ContactCardMsg_CardType `protobuf:"varint,1,opt,name=type,proto3,enum=imparse.msg.ContactCardMsg_CardType" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` + Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` + Inviter string `protobuf:"bytes,6,opt,name=inviter,proto3" json:"inviter,omitempty"` +} + +func (x *ContactCardMsg) Reset() { + *x = ContactCardMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContactCardMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContactCardMsg) ProtoMessage() {} + +func (x *ContactCardMsg) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContactCardMsg.ProtoReflect.Descriptor instead. +func (*ContactCardMsg) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{12} +} + +func (x *ContactCardMsg) GetType() ContactCardMsg_CardType { + if x != nil { + return x.Type + } + return ContactCardMsg_Undefined +} + +func (x *ContactCardMsg) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ContactCardMsg) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ContactCardMsg) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *ContactCardMsg) GetServer() string { + if x != nil { + return x.Server + } + return "" +} + +func (x *ContactCardMsg) GetInviter() string { + if x != nil { + return x.Inviter + } + return "" +} + +type NoticeMsgUpdateGroupName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *NoticeMsgUpdateGroupName) Reset() { + *x = NoticeMsgUpdateGroupName{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgUpdateGroupName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgUpdateGroupName) ProtoMessage() {} + +func (x *NoticeMsgUpdateGroupName) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgUpdateGroupName.ProtoReflect.Descriptor instead. +func (*NoticeMsgUpdateGroupName) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{13} +} + +func (x *NoticeMsgUpdateGroupName) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgUpdateGroupName) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *NoticeMsgUpdateGroupName) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type NoticeMsgSignInGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Inviter string `protobuf:"bytes,2,opt,name=inviter,proto3" json:"inviter,omitempty"` + Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` +} + +func (x *NoticeMsgSignInGroup) Reset() { + *x = NoticeMsgSignInGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgSignInGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgSignInGroup) ProtoMessage() {} + +func (x *NoticeMsgSignInGroup) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgSignInGroup.ProtoReflect.Descriptor instead. +func (*NoticeMsgSignInGroup) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{14} +} + +func (x *NoticeMsgSignInGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgSignInGroup) GetInviter() string { + if x != nil { + return x.Inviter + } + return "" +} + +func (x *NoticeMsgSignInGroup) GetMembers() []string { + if x != nil { + return x.Members + } + return nil +} + +type NoticeMsgSignOutGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (x *NoticeMsgSignOutGroup) Reset() { + *x = NoticeMsgSignOutGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgSignOutGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgSignOutGroup) ProtoMessage() {} + +func (x *NoticeMsgSignOutGroup) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgSignOutGroup.ProtoReflect.Descriptor instead. +func (*NoticeMsgSignOutGroup) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{15} +} + +func (x *NoticeMsgSignOutGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgSignOutGroup) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +type NoticeMsgKickOutGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` +} + +func (x *NoticeMsgKickOutGroup) Reset() { + *x = NoticeMsgKickOutGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgKickOutGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgKickOutGroup) ProtoMessage() {} + +func (x *NoticeMsgKickOutGroup) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgKickOutGroup.ProtoReflect.Descriptor instead. +func (*NoticeMsgKickOutGroup) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{16} +} + +func (x *NoticeMsgKickOutGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgKickOutGroup) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *NoticeMsgKickOutGroup) GetMembers() []string { + if x != nil { + return x.Members + } + return nil +} + +type NoticeMsgDeleteGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (x *NoticeMsgDeleteGroup) Reset() { + *x = NoticeMsgDeleteGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgDeleteGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgDeleteGroup) ProtoMessage() {} + +func (x *NoticeMsgDeleteGroup) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgDeleteGroup.ProtoReflect.Descriptor instead. +func (*NoticeMsgDeleteGroup) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{17} +} + +func (x *NoticeMsgDeleteGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgDeleteGroup) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +type NoticeMsgUpdateGroupMuted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Type MuteType `protobuf:"varint,3,opt,name=type,proto3,enum=imparse.signal.MuteType" json:"type,omitempty"` +} + +func (x *NoticeMsgUpdateGroupMuted) Reset() { + *x = NoticeMsgUpdateGroupMuted{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgUpdateGroupMuted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgUpdateGroupMuted) ProtoMessage() {} + +func (x *NoticeMsgUpdateGroupMuted) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgUpdateGroupMuted.ProtoReflect.Descriptor instead. +func (*NoticeMsgUpdateGroupMuted) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{18} +} + +func (x *NoticeMsgUpdateGroupMuted) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgUpdateGroupMuted) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *NoticeMsgUpdateGroupMuted) GetType() MuteType { + if x != nil { + return x.Type + } + return MuteType_MuteAllow +} + +type NoticeMsgUpdateGroupMemberMutedTime struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` +} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) Reset() { + *x = NoticeMsgUpdateGroupMemberMutedTime{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgUpdateGroupMemberMutedTime) ProtoMessage() {} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgUpdateGroupMemberMutedTime.ProtoReflect.Descriptor instead. +func (*NoticeMsgUpdateGroupMemberMutedTime) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{19} +} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *NoticeMsgUpdateGroupMemberMutedTime) GetMembers() []string { + if x != nil { + return x.Members + } + return nil +} + +type NoticeMsgUpdateGroupOwner struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=newOwner,proto3" json:"newOwner,omitempty"` +} + +func (x *NoticeMsgUpdateGroupOwner) Reset() { + *x = NoticeMsgUpdateGroupOwner{} + if protoimpl.UnsafeEnabled { + mi := &file_msg_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NoticeMsgUpdateGroupOwner) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NoticeMsgUpdateGroupOwner) ProtoMessage() {} + +func (x *NoticeMsgUpdateGroupOwner) ProtoReflect() protoreflect.Message { + mi := &file_msg_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NoticeMsgUpdateGroupOwner.ProtoReflect.Descriptor instead. +func (*NoticeMsgUpdateGroupOwner) Descriptor() ([]byte, []int) { + return file_msg_proto_rawDescGZIP(), []int{20} +} + +func (x *NoticeMsgUpdateGroupOwner) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *NoticeMsgUpdateGroupOwner) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +var File_msg_proto protoreflect.FileDescriptor + +var file_msg_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x69, 0x6d, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x2e, 0x6d, 0x73, 0x67, 0x1a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0a, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x3d, + 0x0a, 0x07, 0x54, 0x65, 0x78, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, + 0x08, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x64, + 0x69, 0x61, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x64, + 0x69, 0x61, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x08, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, + 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, + 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x22, + 0x68, 0x0a, 0x08, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x22, 0x5f, 0x0a, 0x07, 0x46, 0x69, 0x6c, + 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, 0x6c, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x64, 0x35, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x64, 0x35, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x07, 0x43, 0x61, + 0x72, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x61, 0x6e, 0x6b, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x61, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4f, 0x0a, 0x09, 0x4e, 0x6f, 0x74, 0x69, 0x63, + 0x65, 0x4d, 0x73, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x6d, 0x73, 0x67, + 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x81, 0x01, 0x0a, 0x0b, 0x46, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, + 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, + 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x0a, + 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x2e, 0x0a, 0x05, 0x69, 0x74, + 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x69, 0x6d, 0x70, 0x61, + 0x72, 0x73, 0x65, 0x2e, 0x6d, 0x73, 0x67, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, + 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x41, 0x0a, 0x0b, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x78, 0x48, + 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, + 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x99, 0x02, + 0x0a, 0x0c, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x16, + 0x0a, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x78, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x65, 0x78, 0x65, 0x63, 0x12, 0x40, 0x0a, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x69, 0x6d, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x2e, 0x6d, 0x73, 0x67, 0x2e, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x4d, 0x73, 0x67, 0x2e, 0x52, 0x50, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x22, 0x2f, 0x0a, 0x06, 0x52, 0x50, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0x01, 0x22, 0xe1, 0x01, 0x0a, 0x0e, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x38, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x69, 0x6d, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x2e, 0x6d, 0x73, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x43, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, + 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, + 0x61, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, + 0x76, 0x69, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x72, 0x22, 0x27, 0x0a, 0x08, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, + 0x0c, 0x0a, 0x08, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x6c, 0x10, 0x01, 0x22, 0x60, 0x0a, + 0x18, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x60, 0x0a, 0x14, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, + 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, + 0x07, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x22, 0x49, 0x0a, 0x15, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x53, 0x69, + 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x63, 0x0a, 0x15, + 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x4b, 0x69, 0x63, 0x6b, 0x4f, 0x75, 0x74, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x22, 0x48, 0x0a, 0x14, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x7b, 0x0a, 0x19, 0x4e, + 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4d, 0x75, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, + 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, + 0x73, 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x4d, 0x75, 0x74, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x71, 0x0a, 0x23, 0x4e, 0x6f, 0x74, 0x69, + 0x63, 0x65, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x75, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x4d, 0x0a, 0x19, 0x4e, + 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, + 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x2a, 0x8a, 0x02, 0x0a, 0x0d, 0x4e, + 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x4e, + 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x69, + 0x67, 0x6e, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, + 0x73, 0x67, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x10, 0x02, 0x12, + 0x19, 0x0a, 0x15, 0x4b, 0x69, 0x63, 0x6b, 0x4f, 0x75, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, + 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, + 0x73, 0x67, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4d, 0x75, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x4d, 0x73, + 0x67, 0x10, 0x05, 0x12, 0x23, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x75, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x74, + 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x6f, 0x74, 0x69, + 0x63, 0x65, 0x4d, 0x73, 0x67, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x10, 0x08, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x6c, 0x61, + 0x62, 0x2e, 0x33, 0x33, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x69, 0x6d, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_msg_proto_rawDescOnce sync.Once + file_msg_proto_rawDescData = file_msg_proto_rawDesc +) + +func file_msg_proto_rawDescGZIP() []byte { + file_msg_proto_rawDescOnce.Do(func() { + file_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_msg_proto_rawDescData) + }) + return file_msg_proto_rawDescData +} + +var file_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_msg_proto_goTypes = []interface{}{ + (NoticeMsgType)(0), // 0: imparse.msg.NoticeMsgType + (RedPacketMsg_RPType)(0), // 1: imparse.msg.RedPacketMsg.RPType + (ContactCardMsg_CardType)(0), // 2: imparse.msg.ContactCardMsg.CardType + (*EncryptMsg)(nil), // 3: imparse.msg.EncryptMsg + (*TextMsg)(nil), // 4: imparse.msg.TextMsg + (*AudioMsg)(nil), // 5: imparse.msg.AudioMsg + (*ImageMsg)(nil), // 6: imparse.msg.ImageMsg + (*VideoMsg)(nil), // 7: imparse.msg.VideoMsg + (*FileMsg)(nil), // 8: imparse.msg.FileMsg + (*CardMsg)(nil), // 9: imparse.msg.CardMsg + (*NoticeMsg)(nil), // 10: imparse.msg.NoticeMsg + (*ForwardItem)(nil), // 11: imparse.msg.ForwardItem + (*ForwardMsg)(nil), // 12: imparse.msg.ForwardMsg + (*TransferMsg)(nil), // 13: imparse.msg.TransferMsg + (*RedPacketMsg)(nil), // 14: imparse.msg.RedPacketMsg + (*ContactCardMsg)(nil), // 15: imparse.msg.ContactCardMsg + (*NoticeMsgUpdateGroupName)(nil), // 16: imparse.msg.NoticeMsgUpdateGroupName + (*NoticeMsgSignInGroup)(nil), // 17: imparse.msg.NoticeMsgSignInGroup + (*NoticeMsgSignOutGroup)(nil), // 18: imparse.msg.NoticeMsgSignOutGroup + (*NoticeMsgKickOutGroup)(nil), // 19: imparse.msg.NoticeMsgKickOutGroup + (*NoticeMsgDeleteGroup)(nil), // 20: imparse.msg.NoticeMsgDeleteGroup + (*NoticeMsgUpdateGroupMuted)(nil), // 21: imparse.msg.NoticeMsgUpdateGroupMuted + (*NoticeMsgUpdateGroupMemberMutedTime)(nil), // 22: imparse.msg.NoticeMsgUpdateGroupMemberMutedTime + (*NoticeMsgUpdateGroupOwner)(nil), // 23: imparse.msg.NoticeMsgUpdateGroupOwner + (MuteType)(0), // 24: imparse.signal.MuteType +} +var file_msg_proto_depIdxs = []int32{ + 0, // 0: imparse.msg.NoticeMsg.type:type_name -> imparse.msg.NoticeMsgType + 11, // 1: imparse.msg.ForwardMsg.items:type_name -> imparse.msg.ForwardItem + 1, // 2: imparse.msg.RedPacketMsg.packetType:type_name -> imparse.msg.RedPacketMsg.RPType + 2, // 3: imparse.msg.ContactCardMsg.type:type_name -> imparse.msg.ContactCardMsg.CardType + 24, // 4: imparse.msg.NoticeMsgUpdateGroupMuted.type:type_name -> imparse.signal.MuteType + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_msg_proto_init() } +func file_msg_proto_init() { + if File_msg_proto != nil { + return + } + file_signal_proto_init() + if !protoimpl.UnsafeEnabled { + file_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EncryptMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TextMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AudioMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ImageMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VideoMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RedPacketMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactCardMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgUpdateGroupName); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgSignInGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgSignOutGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgKickOutGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgDeleteGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgUpdateGroupMuted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgUpdateGroupMemberMutedTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NoticeMsgUpdateGroupOwner); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_msg_proto_rawDesc, + NumEnums: 3, + NumMessages: 21, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_msg_proto_goTypes, + DependencyIndexes: file_msg_proto_depIdxs, + EnumInfos: file_msg_proto_enumTypes, + MessageInfos: file_msg_proto_msgTypes, + }.Build() + File_msg_proto = out.File + file_msg_proto_rawDesc = nil + file_msg_proto_goTypes = nil + file_msg_proto_depIdxs = nil +} diff --git a/proto/msg.proto b/proto/msg.proto new file mode 100644 index 0000000..eabafd3 --- /dev/null +++ b/proto/msg.proto @@ -0,0 +1,154 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto +syntax = "proto3"; + +package imparse.msg; +option go_package = "gitlab.33.cn/chat/imparse/proto"; + +import "signal.proto"; + +message EncryptMsg { + string content = 1; +} + +message TextMsg { + string content = 1; + repeated string mention = 2; +} + +message AudioMsg { + string mediaUrl = 1; + int32 time = 2; +} + +message ImageMsg { + string mediaUrl = 1; + int32 height = 2; + int32 width = 3; +} + +message VideoMsg { + string mediaUrl = 1; + int32 time = 2; + int32 height = 3; + int32 width = 4; +} + +message FileMsg { + string mediaUrl = 1; + string name = 2; + string md5 = 3; + int64 size = 4; +} + +message CardMsg { + string bank = 1; + string name = 2; + string account = 3; +} + +message NoticeMsg { + NoticeMsgType type = 1; + bytes body = 2; +} + +message ForwardItem { + string avatar = 1; + string name = 2; + int32 msgType = 3; + bytes msg = 4; + uint64 datetime = 5; +} + +message ForwardMsg { + repeated ForwardItem items = 1; +} + +message TransferMsg { + string txHash = 1; + string coinName = 2; +} + +message RedPacketMsg { + string txHash = 1; + string coinName = 2; + string exec = 3; //执行器名称 user.p. + enum RPType { + RandomAmount = 0; + IdenticalAmount = 1; + } + RPType packetType = 4; + string privateKey = 5; //客户端创建的私钥(选填) + string remark = 6; + uint64 expire = 7; //到期时间 单位:ms时间戳 +} + +message ContactCardMsg { + enum CardType { + Undefined = 0; + Personal = 1; + } + CardType type = 1; + string id = 2; + string name = 3; + string avatar = 4; + string server = 5; + string inviter = 6; +} + +//notice msg define +enum NoticeMsgType { + UpdateGroupNameNoticeMsg = 0; + SignInGroupNoticeMsg = 1; + SignOutGroupNoticeMsg = 2; + KickOutGroupNoticeMsg = 3; + DeleteGroupNoticeMsg = 4; + UpdateGroupMutedNoticeMsg = 5; + UpdateGroupMemberMutedNoticeMsg = 6; + UpdateGroupOwnerNoticeMsg = 7; + MsgRevoked = 8; //撤回消息通知,客户端占用 +} + +message NoticeMsgUpdateGroupName { + int64 group = 1; + string operator = 2; + string name = 3; +} + +message NoticeMsgSignInGroup { + int64 group = 1; + string inviter = 2; + repeated string members = 3; +} + +message NoticeMsgSignOutGroup { + int64 group = 1; + string operator = 2; +} + +message NoticeMsgKickOutGroup { + int64 group = 1; + string operator = 2; + repeated string members = 3; +} + +message NoticeMsgDeleteGroup { + int64 group = 1; + string operator = 2; +} + +message NoticeMsgUpdateGroupMuted { + int64 group = 1; + string operator = 2; + imparse.signal.MuteType type = 3; +} + +message NoticeMsgUpdateGroupMemberMutedTime { + int64 group = 1; + string operator = 2; + repeated string members = 3; +} + +message NoticeMsgUpdateGroupOwner { + int64 group = 1; + string newOwner = 2; +} diff --git a/proto/signal.pb.go b/proto/signal.pb.go new file mode 100644 index 0000000..25c6240 --- /dev/null +++ b/proto/signal.pb.go @@ -0,0 +1,1859 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.1 +// source: signal.proto + +package proto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type SignalType int32 + +const ( + SignalType_Received SignalType = 0 + SignalType_Revoke SignalType = 1 + SignalType_SignInGroup SignalType = 10 + SignalType_SignOutGroup SignalType = 11 + SignalType_DeleteGroup SignalType = 12 + SignalType_FocusMessage SignalType = 13 + // + SignalType_UpdateGroupJoinType SignalType = 20 + SignalType_UpdateGroupFriendType SignalType = 21 + SignalType_UpdateGroupMuteType SignalType = 22 + SignalType_UpdateGroupMemberType SignalType = 23 + SignalType_UpdateGroupMemberMuteTime SignalType = 24 + SignalType_UpdateGroupName SignalType = 25 + SignalType_UpdateGroupAvatar SignalType = 26 + // + SignalType_StartCall SignalType = 31 + SignalType_AcceptCall SignalType = 32 + SignalType_StopCall SignalType = 33 +) + +// Enum value maps for SignalType. +var ( + SignalType_name = map[int32]string{ + 0: "Received", + 1: "Revoke", + 10: "SignInGroup", + 11: "SignOutGroup", + 12: "DeleteGroup", + 13: "FocusMessage", + 20: "UpdateGroupJoinType", + 21: "UpdateGroupFriendType", + 22: "UpdateGroupMuteType", + 23: "UpdateGroupMemberType", + 24: "UpdateGroupMemberMuteTime", + 25: "UpdateGroupName", + 26: "UpdateGroupAvatar", + 31: "StartCall", + 32: "AcceptCall", + 33: "StopCall", + } + SignalType_value = map[string]int32{ + "Received": 0, + "Revoke": 1, + "SignInGroup": 10, + "SignOutGroup": 11, + "DeleteGroup": 12, + "FocusMessage": 13, + "UpdateGroupJoinType": 20, + "UpdateGroupFriendType": 21, + "UpdateGroupMuteType": 22, + "UpdateGroupMemberType": 23, + "UpdateGroupMemberMuteTime": 24, + "UpdateGroupName": 25, + "UpdateGroupAvatar": 26, + "StartCall": 31, + "AcceptCall": 32, + "StopCall": 33, + } +) + +func (x SignalType) Enum() *SignalType { + p := new(SignalType) + *p = x + return p +} + +func (x SignalType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SignalType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[0].Descriptor() +} + +func (SignalType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[0] +} + +func (x SignalType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SignalType.Descriptor instead. +func (SignalType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{0} +} + +type JoinType int32 + +const ( + JoinType_JoinAllow JoinType = 0 + JoinType_JoinDeny JoinType = 1 + JoinType_JoinApply JoinType = 2 +) + +// Enum value maps for JoinType. +var ( + JoinType_name = map[int32]string{ + 0: "JoinAllow", + 1: "JoinDeny", + 2: "JoinApply", + } + JoinType_value = map[string]int32{ + "JoinAllow": 0, + "JoinDeny": 1, + "JoinApply": 2, + } +) + +func (x JoinType) Enum() *JoinType { + p := new(JoinType) + *p = x + return p +} + +func (x JoinType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (JoinType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[1].Descriptor() +} + +func (JoinType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[1] +} + +func (x JoinType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use JoinType.Descriptor instead. +func (JoinType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{1} +} + +type FriendType int32 + +const ( + FriendType_FriendAllow FriendType = 0 + FriendType_FriendDeny FriendType = 1 +) + +// Enum value maps for FriendType. +var ( + FriendType_name = map[int32]string{ + 0: "FriendAllow", + 1: "FriendDeny", + } + FriendType_value = map[string]int32{ + "FriendAllow": 0, + "FriendDeny": 1, + } +) + +func (x FriendType) Enum() *FriendType { + p := new(FriendType) + *p = x + return p +} + +func (x FriendType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FriendType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[2].Descriptor() +} + +func (FriendType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[2] +} + +func (x FriendType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FriendType.Descriptor instead. +func (FriendType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{2} +} + +type MuteType int32 + +const ( + MuteType_MuteAllow MuteType = 0 + MuteType_MuteDeny MuteType = 1 +) + +// Enum value maps for MuteType. +var ( + MuteType_name = map[int32]string{ + 0: "MuteAllow", + 1: "MuteDeny", + } + MuteType_value = map[string]int32{ + "MuteAllow": 0, + "MuteDeny": 1, + } +) + +func (x MuteType) Enum() *MuteType { + p := new(MuteType) + *p = x + return p +} + +func (x MuteType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MuteType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[3].Descriptor() +} + +func (MuteType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[3] +} + +func (x MuteType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MuteType.Descriptor instead. +func (MuteType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{3} +} + +type MemberType int32 + +const ( + MemberType_Normal MemberType = 0 + MemberType_Admin MemberType = 1 + MemberType_Owner MemberType = 2 +) + +// Enum value maps for MemberType. +var ( + MemberType_name = map[int32]string{ + 0: "Normal", + 1: "Admin", + 2: "Owner", + } + MemberType_value = map[string]int32{ + "Normal": 0, + "Admin": 1, + "Owner": 2, + } +) + +func (x MemberType) Enum() *MemberType { + p := new(MemberType) + *p = x + return p +} + +func (x MemberType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MemberType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[4].Descriptor() +} + +func (MemberType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[4] +} + +func (x MemberType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MemberType.Descriptor instead. +func (MemberType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{4} +} + +type StopCallType int32 + +const ( + StopCallType_Busy StopCallType = 0 + StopCallType_Timeout StopCallType = 1 + StopCallType_Reject StopCallType = 2 + StopCallType_Hangup StopCallType = 3 + StopCallType_Cancel StopCallType = 4 +) + +// Enum value maps for StopCallType. +var ( + StopCallType_name = map[int32]string{ + 0: "Busy", + 1: "Timeout", + 2: "Reject", + 3: "Hangup", + 4: "Cancel", + } + StopCallType_value = map[string]int32{ + "Busy": 0, + "Timeout": 1, + "Reject": 2, + "Hangup": 3, + "Cancel": 4, + } +) + +func (x StopCallType) Enum() *StopCallType { + p := new(StopCallType) + *p = x + return p +} + +func (x StopCallType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StopCallType) Descriptor() protoreflect.EnumDescriptor { + return file_signal_proto_enumTypes[5].Descriptor() +} + +func (StopCallType) Type() protoreflect.EnumType { + return &file_signal_proto_enumTypes[5] +} + +func (x StopCallType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StopCallType.Descriptor instead. +func (StopCallType) EnumDescriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{5} +} + +//alert msg define +type Signal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type SignalType `protobuf:"varint,1,opt,name=type,proto3,enum=imparse.signal.SignalType" json:"type,omitempty"` + Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` +} + +func (x *Signal) Reset() { + *x = Signal{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Signal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Signal) ProtoMessage() {} + +func (x *Signal) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Signal.ProtoReflect.Descriptor instead. +func (*Signal) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{0} +} + +func (x *Signal) GetType() SignalType { + if x != nil { + return x.Type + } + return SignalType_Received +} + +func (x *Signal) GetBody() []byte { + if x != nil { + return x.Body + } + return nil +} + +type SignalReceived struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Logs []int64 `protobuf:"varint,1,rep,packed,name=logs,proto3" json:"logs,omitempty"` +} + +func (x *SignalReceived) Reset() { + *x = SignalReceived{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalReceived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalReceived) ProtoMessage() {} + +func (x *SignalReceived) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalReceived.ProtoReflect.Descriptor instead. +func (*SignalReceived) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{1} +} + +func (x *SignalReceived) GetLogs() []int64 { + if x != nil { + return x.Logs + } + return nil +} + +type SignalSignInGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid []string `protobuf:"bytes,1,rep,name=uid,proto3" json:"uid,omitempty"` + Group int64 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalSignInGroup) Reset() { + *x = SignalSignInGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalSignInGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalSignInGroup) ProtoMessage() {} + +func (x *SignalSignInGroup) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalSignInGroup.ProtoReflect.Descriptor instead. +func (*SignalSignInGroup) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{2} +} + +func (x *SignalSignInGroup) GetUid() []string { + if x != nil { + return x.Uid + } + return nil +} + +func (x *SignalSignInGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalSignInGroup) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalSignOutGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid []string `protobuf:"bytes,1,rep,name=uid,proto3" json:"uid,omitempty"` + Group int64 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalSignOutGroup) Reset() { + *x = SignalSignOutGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalSignOutGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalSignOutGroup) ProtoMessage() {} + +func (x *SignalSignOutGroup) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalSignOutGroup.ProtoReflect.Descriptor instead. +func (*SignalSignOutGroup) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{3} +} + +func (x *SignalSignOutGroup) GetUid() []string { + if x != nil { + return x.Uid + } + return nil +} + +func (x *SignalSignOutGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalSignOutGroup) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalDeleteGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalDeleteGroup) Reset() { + *x = SignalDeleteGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalDeleteGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalDeleteGroup) ProtoMessage() {} + +func (x *SignalDeleteGroup) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalDeleteGroup.ProtoReflect.Descriptor instead. +func (*SignalDeleteGroup) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{4} +} + +func (x *SignalDeleteGroup) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalDeleteGroup) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalFocusMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"` + Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` + CurrentNum int32 `protobuf:"varint,3,opt,name=currentNum,proto3" json:"currentNum,omitempty"` + Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalFocusMessage) Reset() { + *x = SignalFocusMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalFocusMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalFocusMessage) ProtoMessage() {} + +func (x *SignalFocusMessage) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalFocusMessage.ProtoReflect.Descriptor instead. +func (*SignalFocusMessage) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{5} +} + +func (x *SignalFocusMessage) GetMid() int64 { + if x != nil { + return x.Mid + } + return 0 +} + +func (x *SignalFocusMessage) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *SignalFocusMessage) GetCurrentNum() int32 { + if x != nil { + return x.CurrentNum + } + return 0 +} + +func (x *SignalFocusMessage) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupJoinType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Type JoinType `protobuf:"varint,2,opt,name=type,proto3,enum=imparse.signal.JoinType" json:"type,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupJoinType) Reset() { + *x = SignalUpdateGroupJoinType{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupJoinType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupJoinType) ProtoMessage() {} + +func (x *SignalUpdateGroupJoinType) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupJoinType.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupJoinType) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{6} +} + +func (x *SignalUpdateGroupJoinType) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupJoinType) GetType() JoinType { + if x != nil { + return x.Type + } + return JoinType_JoinAllow +} + +func (x *SignalUpdateGroupJoinType) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupFriendType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Type FriendType `protobuf:"varint,2,opt,name=type,proto3,enum=imparse.signal.FriendType" json:"type,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupFriendType) Reset() { + *x = SignalUpdateGroupFriendType{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupFriendType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupFriendType) ProtoMessage() {} + +func (x *SignalUpdateGroupFriendType) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupFriendType.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupFriendType) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{7} +} + +func (x *SignalUpdateGroupFriendType) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupFriendType) GetType() FriendType { + if x != nil { + return x.Type + } + return FriendType_FriendAllow +} + +func (x *SignalUpdateGroupFriendType) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupMuteType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Type MuteType `protobuf:"varint,2,opt,name=type,proto3,enum=imparse.signal.MuteType" json:"type,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupMuteType) Reset() { + *x = SignalUpdateGroupMuteType{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupMuteType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupMuteType) ProtoMessage() {} + +func (x *SignalUpdateGroupMuteType) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupMuteType.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupMuteType) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{8} +} + +func (x *SignalUpdateGroupMuteType) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupMuteType) GetType() MuteType { + if x != nil { + return x.Type + } + return MuteType_MuteAllow +} + +func (x *SignalUpdateGroupMuteType) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupMemberType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` + Type MemberType `protobuf:"varint,3,opt,name=type,proto3,enum=imparse.signal.MemberType" json:"type,omitempty"` + Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupMemberType) Reset() { + *x = SignalUpdateGroupMemberType{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupMemberType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupMemberType) ProtoMessage() {} + +func (x *SignalUpdateGroupMemberType) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupMemberType.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupMemberType) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{9} +} + +func (x *SignalUpdateGroupMemberType) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupMemberType) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *SignalUpdateGroupMemberType) GetType() MemberType { + if x != nil { + return x.Type + } + return MemberType_Normal +} + +func (x *SignalUpdateGroupMemberType) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupMemberMuteTime struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Uid []string `protobuf:"bytes,2,rep,name=uid,proto3" json:"uid,omitempty"` + MuteTime int64 `protobuf:"varint,3,opt,name=muteTime,proto3" json:"muteTime,omitempty"` + Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupMemberMuteTime) Reset() { + *x = SignalUpdateGroupMemberMuteTime{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupMemberMuteTime) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupMemberMuteTime) ProtoMessage() {} + +func (x *SignalUpdateGroupMemberMuteTime) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupMemberMuteTime.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupMemberMuteTime) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{10} +} + +func (x *SignalUpdateGroupMemberMuteTime) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupMemberMuteTime) GetUid() []string { + if x != nil { + return x.Uid + } + return nil +} + +func (x *SignalUpdateGroupMemberMuteTime) GetMuteTime() int64 { + if x != nil { + return x.MuteTime + } + return 0 +} + +func (x *SignalUpdateGroupMemberMuteTime) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupName) Reset() { + *x = SignalUpdateGroupName{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupName) ProtoMessage() {} + +func (x *SignalUpdateGroupName) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupName.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupName) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{11} +} + +func (x *SignalUpdateGroupName) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupName) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SignalUpdateGroupName) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalUpdateGroupAvatar struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Group int64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` + Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` + Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *SignalUpdateGroupAvatar) Reset() { + *x = SignalUpdateGroupAvatar{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalUpdateGroupAvatar) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalUpdateGroupAvatar) ProtoMessage() {} + +func (x *SignalUpdateGroupAvatar) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalUpdateGroupAvatar.ProtoReflect.Descriptor instead. +func (*SignalUpdateGroupAvatar) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{12} +} + +func (x *SignalUpdateGroupAvatar) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *SignalUpdateGroupAvatar) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *SignalUpdateGroupAvatar) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +type SignalStartCall struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TraceId int64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` +} + +func (x *SignalStartCall) Reset() { + *x = SignalStartCall{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalStartCall) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalStartCall) ProtoMessage() {} + +func (x *SignalStartCall) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalStartCall.ProtoReflect.Descriptor instead. +func (*SignalStartCall) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{13} +} + +func (x *SignalStartCall) GetTraceId() int64 { + if x != nil { + return x.TraceId + } + return 0 +} + +type SignalAcceptCall struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TraceId int64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + RoomId int32 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` + Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` + UserSig string `protobuf:"bytes,4,opt,name=user_sig,json=userSig,proto3" json:"user_sig,omitempty"` + PrivateMapKey string `protobuf:"bytes,5,opt,name=private_map_key,json=privateMapKey,proto3" json:"private_map_key,omitempty"` + SkdAppId int32 `protobuf:"varint,6,opt,name=skd_app_id,json=skdAppId,proto3" json:"skd_app_id,omitempty"` +} + +func (x *SignalAcceptCall) Reset() { + *x = SignalAcceptCall{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalAcceptCall) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalAcceptCall) ProtoMessage() {} + +func (x *SignalAcceptCall) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalAcceptCall.ProtoReflect.Descriptor instead. +func (*SignalAcceptCall) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{14} +} + +func (x *SignalAcceptCall) GetTraceId() int64 { + if x != nil { + return x.TraceId + } + return 0 +} + +func (x *SignalAcceptCall) GetRoomId() int32 { + if x != nil { + return x.RoomId + } + return 0 +} + +func (x *SignalAcceptCall) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *SignalAcceptCall) GetUserSig() string { + if x != nil { + return x.UserSig + } + return "" +} + +func (x *SignalAcceptCall) GetPrivateMapKey() string { + if x != nil { + return x.PrivateMapKey + } + return "" +} + +func (x *SignalAcceptCall) GetSkdAppId() int32 { + if x != nil { + return x.SkdAppId + } + return 0 +} + +type SignalStopCall struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TraceId int64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Reason StopCallType `protobuf:"varint,2,opt,name=reason,proto3,enum=imparse.signal.StopCallType" json:"reason,omitempty"` +} + +func (x *SignalStopCall) Reset() { + *x = SignalStopCall{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalStopCall) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalStopCall) ProtoMessage() {} + +func (x *SignalStopCall) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalStopCall.ProtoReflect.Descriptor instead. +func (*SignalStopCall) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{15} +} + +func (x *SignalStopCall) GetTraceId() int64 { + if x != nil { + return x.TraceId + } + return 0 +} + +func (x *SignalStopCall) GetReason() StopCallType { + if x != nil { + return x.Reason + } + return StopCallType_Busy +} + +type SignalRevoke struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Self bool `protobuf:"varint,3,opt,name=self,proto3" json:"self,omitempty"` +} + +func (x *SignalRevoke) Reset() { + *x = SignalRevoke{} + if protoimpl.UnsafeEnabled { + mi := &file_signal_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalRevoke) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalRevoke) ProtoMessage() {} + +func (x *SignalRevoke) ProtoReflect() protoreflect.Message { + mi := &file_signal_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalRevoke.ProtoReflect.Descriptor instead. +func (*SignalRevoke) Descriptor() ([]byte, []int) { + return file_signal_proto_rawDescGZIP(), []int{16} +} + +func (x *SignalRevoke) GetMid() int64 { + if x != nil { + return x.Mid + } + return 0 +} + +func (x *SignalRevoke) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *SignalRevoke) GetSelf() bool { + if x != nil { + return x.Self + } + return false +} + +var File_signal_proto protoreflect.FileDescriptor + +var file_signal_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0x4c, + 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, + 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x24, 0x0a, 0x0e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x6f, + 0x67, 0x73, 0x22, 0x4f, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x69, 0x67, 0x6e, + 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x69, 0x67, + 0x6e, 0x4f, 0x75, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, + 0x74, 0x69, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x46, 0x6f, + 0x63, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6d, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1e, + 0x0a, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, + 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x19, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x77, 0x0a, 0x1b, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2e, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x69, 0x6d, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x22, 0x73, 0x0a, 0x19, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x18, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x2e, 0x4d, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x1b, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x69, 0x6d, + 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, + 0x65, 0x22, 0x79, 0x0a, 0x1f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x75, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x6d, 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x6d, 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x55, 0x0a, 0x15, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x22, 0x2c, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, + 0x61, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0xb9, + 0x01, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x43, + 0x61, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, + 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x53, 0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, + 0x6d, 0x61, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x0a, + 0x73, 0x6b, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x73, 0x6b, 0x64, 0x41, 0x70, 0x70, 0x49, 0x64, 0x22, 0x61, 0x0a, 0x0e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, + 0x65, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x61, 0x6c, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x54, 0x0a, + 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x6f, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x6f, + 0x67, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, + 0x65, 0x6c, 0x66, 0x2a, 0xcc, 0x02, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0x00, + 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, + 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x0a, 0x12, 0x10, 0x0a, + 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x0b, 0x12, + 0x0f, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x0c, + 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x6f, 0x63, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x10, 0x0d, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x14, 0x12, 0x19, 0x0a, 0x15, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x10, 0x15, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0x16, 0x12, + 0x19, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x10, 0x17, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4d, + 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x10, 0x18, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x10, 0x19, 0x12, 0x15, + 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x76, 0x61, + 0x74, 0x61, 0x72, 0x10, 0x1a, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x61, + 0x6c, 0x6c, 0x10, 0x1f, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x43, 0x61, + 0x6c, 0x6c, 0x10, 0x20, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x61, 0x6c, 0x6c, + 0x10, 0x21, 0x2a, 0x36, 0x0a, 0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, + 0x0a, 0x09, 0x4a, 0x6f, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x44, 0x65, 0x6e, 0x79, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, + 0x6f, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x10, 0x02, 0x2a, 0x2d, 0x0a, 0x0a, 0x46, 0x72, + 0x69, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x44, 0x65, 0x6e, 0x79, 0x10, 0x01, 0x2a, 0x27, 0x0a, 0x08, 0x4d, 0x75, 0x74, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x75, 0x74, 0x65, 0x41, 0x6c, 0x6c, + 0x6f, 0x77, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x75, 0x74, 0x65, 0x44, 0x65, 0x6e, 0x79, + 0x10, 0x01, 0x2a, 0x2e, 0x0a, 0x0a, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x10, 0x02, 0x2a, 0x49, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x75, 0x73, 0x79, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x67, 0x75, 0x70, 0x10, + 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x10, 0x04, 0x42, 0x21, 0x5a, + 0x1f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x33, 0x33, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x68, + 0x61, 0x74, 0x2f, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_signal_proto_rawDescOnce sync.Once + file_signal_proto_rawDescData = file_signal_proto_rawDesc +) + +func file_signal_proto_rawDescGZIP() []byte { + file_signal_proto_rawDescOnce.Do(func() { + file_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_signal_proto_rawDescData) + }) + return file_signal_proto_rawDescData +} + +var file_signal_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_signal_proto_goTypes = []interface{}{ + (SignalType)(0), // 0: imparse.signal.SignalType + (JoinType)(0), // 1: imparse.signal.JoinType + (FriendType)(0), // 2: imparse.signal.FriendType + (MuteType)(0), // 3: imparse.signal.MuteType + (MemberType)(0), // 4: imparse.signal.MemberType + (StopCallType)(0), // 5: imparse.signal.StopCallType + (*Signal)(nil), // 6: imparse.signal.Signal + (*SignalReceived)(nil), // 7: imparse.signal.SignalReceived + (*SignalSignInGroup)(nil), // 8: imparse.signal.SignalSignInGroup + (*SignalSignOutGroup)(nil), // 9: imparse.signal.SignalSignOutGroup + (*SignalDeleteGroup)(nil), // 10: imparse.signal.SignalDeleteGroup + (*SignalFocusMessage)(nil), // 11: imparse.signal.SignalFocusMessage + (*SignalUpdateGroupJoinType)(nil), // 12: imparse.signal.SignalUpdateGroupJoinType + (*SignalUpdateGroupFriendType)(nil), // 13: imparse.signal.SignalUpdateGroupFriendType + (*SignalUpdateGroupMuteType)(nil), // 14: imparse.signal.SignalUpdateGroupMuteType + (*SignalUpdateGroupMemberType)(nil), // 15: imparse.signal.SignalUpdateGroupMemberType + (*SignalUpdateGroupMemberMuteTime)(nil), // 16: imparse.signal.SignalUpdateGroupMemberMuteTime + (*SignalUpdateGroupName)(nil), // 17: imparse.signal.SignalUpdateGroupName + (*SignalUpdateGroupAvatar)(nil), // 18: imparse.signal.SignalUpdateGroupAvatar + (*SignalStartCall)(nil), // 19: imparse.signal.SignalStartCall + (*SignalAcceptCall)(nil), // 20: imparse.signal.SignalAcceptCall + (*SignalStopCall)(nil), // 21: imparse.signal.SignalStopCall + (*SignalRevoke)(nil), // 22: imparse.signal.SignalRevoke +} +var file_signal_proto_depIdxs = []int32{ + 0, // 0: imparse.signal.Signal.type:type_name -> imparse.signal.SignalType + 1, // 1: imparse.signal.SignalUpdateGroupJoinType.type:type_name -> imparse.signal.JoinType + 2, // 2: imparse.signal.SignalUpdateGroupFriendType.type:type_name -> imparse.signal.FriendType + 3, // 3: imparse.signal.SignalUpdateGroupMuteType.type:type_name -> imparse.signal.MuteType + 4, // 4: imparse.signal.SignalUpdateGroupMemberType.type:type_name -> imparse.signal.MemberType + 5, // 5: imparse.signal.SignalStopCall.reason:type_name -> imparse.signal.StopCallType + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_signal_proto_init() } +func file_signal_proto_init() { + if File_signal_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Signal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalReceived); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalSignInGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalSignOutGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalDeleteGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalFocusMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupJoinType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupFriendType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupMuteType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupMemberType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupMemberMuteTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupName); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalUpdateGroupAvatar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalStartCall); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalAcceptCall); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalStopCall); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_signal_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalRevoke); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_signal_proto_rawDesc, + NumEnums: 6, + NumMessages: 17, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_signal_proto_goTypes, + DependencyIndexes: file_signal_proto_depIdxs, + EnumInfos: file_signal_proto_enumTypes, + MessageInfos: file_signal_proto_msgTypes, + }.Build() + File_signal_proto = out.File + file_signal_proto_rawDesc = nil + file_signal_proto_goTypes = nil + file_signal_proto_depIdxs = nil +} diff --git a/proto/signal.proto b/proto/signal.proto new file mode 100644 index 0000000..ee1ddec --- /dev/null +++ b/proto/signal.proto @@ -0,0 +1,158 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto +syntax = "proto3"; + +package imparse.signal; +option go_package = "gitlab.33.cn/chat/imparse/proto"; + +//alert msg define +message Signal { + SignalType type = 1; + bytes body = 2; +} + +enum SignalType { + Received = 0; + Revoke = 1; + SignInGroup = 10; + SignOutGroup = 11; + DeleteGroup = 12; + FocusMessage = 13; + // + UpdateGroupJoinType = 20; + UpdateGroupFriendType = 21; + UpdateGroupMuteType = 22; + UpdateGroupMemberType = 23; + UpdateGroupMemberMuteTime = 24; + UpdateGroupName = 25; + UpdateGroupAvatar = 26; + // + StartCall = 31; + AcceptCall = 32; + StopCall = 33; +} + +message SignalReceived { + repeated int64 logs = 1; +} + +message SignalSignInGroup { + repeated string uid = 1; + int64 group = 2; + uint64 time = 3; +} + +message SignalSignOutGroup { + repeated string uid = 1; + int64 group = 2; + uint64 time = 3; +} + +message SignalDeleteGroup { + int64 group = 1; + uint64 time = 2; +} + +message SignalFocusMessage { + int64 mid = 1; + string uid = 2; + int32 currentNum = 3; + uint64 time = 4; +} + +enum JoinType { + JoinAllow = 0; + JoinDeny = 1; + JoinApply = 2; +} + +message SignalUpdateGroupJoinType { + int64 group = 1; + JoinType type = 2; + uint64 time = 3; +} + +enum FriendType { + FriendAllow = 0; + FriendDeny = 1; +} + +message SignalUpdateGroupFriendType { + int64 group = 1; + FriendType type = 2; + uint64 time = 3; +} + +enum MuteType { + MuteAllow = 0; + MuteDeny = 1; +} + +message SignalUpdateGroupMuteType { + int64 group = 1; + MuteType type = 2; + uint64 time = 3; +} + +enum MemberType { + Normal = 0; + Admin = 1; + Owner = 2; +} + +message SignalUpdateGroupMemberType { + int64 group = 1; + string uid = 2; + MemberType type = 3; + uint64 time = 4; +} + +message SignalUpdateGroupMemberMuteTime { + int64 group = 1; + repeated string uid = 2; + int64 muteTime = 3; + uint64 time = 4; +} + +message SignalUpdateGroupName { + int64 group = 1; + string name = 2; + uint64 time = 3; +} + +message SignalUpdateGroupAvatar { + int64 group = 1; + string avatar = 2; + uint64 time = 3; +} + +message SignalStartCall { + int64 trace_id = 1; +} + +message SignalAcceptCall { + int64 trace_id = 1; + int32 room_id = 2; + string uid = 3; + string user_sig = 4; + string private_map_key = 5; + int32 skd_app_id = 6; +} + +enum StopCallType { + Busy = 0; + Timeout = 1; + Reject = 2; + Hangup = 3; + Cancel = 4; +} + +message SignalStopCall { + int64 trace_id = 1; + StopCallType reason = 2; +} + +message SignalRevoke { + int64 mid = 1; + string operator = 2; + bool self = 3; +} diff --git a/proto/v1.pb.go b/proto/v1.pb.go new file mode 100644 index 0000000..3eeb931 --- /dev/null +++ b/proto/v1.pb.go @@ -0,0 +1,822 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.1 +// source: v1.proto + +package proto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Channel int32 + +const ( + Channel_ToUser Channel = 0 + Channel_ToGroup Channel = 1 +) + +// Enum value maps for Channel. +var ( + Channel_name = map[int32]string{ + 0: "ToUser", + 1: "ToGroup", + } + Channel_value = map[string]int32{ + "ToUser": 0, + "ToGroup": 1, + } +) + +func (x Channel) Enum() *Channel { + p := new(Channel) + *p = x + return p +} + +func (x Channel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Channel) Descriptor() protoreflect.EnumDescriptor { + return file_v1_proto_enumTypes[0].Descriptor() +} + +func (Channel) Type() protoreflect.EnumType { + return &file_v1_proto_enumTypes[0] +} + +func (x Channel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Channel.Descriptor instead. +func (Channel) EnumDescriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{0} +} + +// common msg define +type MsgType int32 + +const ( + MsgType_System MsgType = 0 + MsgType_Text MsgType = 1 + MsgType_Audio MsgType = 2 + MsgType_Image MsgType = 3 + MsgType_Video MsgType = 4 + MsgType_File MsgType = 5 + MsgType_Card MsgType = 6 + MsgType_Notice MsgType = 7 + MsgType_Forward MsgType = 8 + MsgType_RTCCall MsgType = 9 + MsgType_Transfer MsgType = 10 + MsgType_Collect MsgType = 11 + MsgType_RedPacket MsgType = 12 + MsgType_ContactCard MsgType = 13 +) + +// Enum value maps for MsgType. +var ( + MsgType_name = map[int32]string{ + 0: "System", + 1: "Text", + 2: "Audio", + 3: "Image", + 4: "Video", + 5: "File", + 6: "Card", + 7: "Notice", + 8: "Forward", + 9: "RTCCall", + 10: "Transfer", + 11: "Collect", + 12: "RedPacket", + 13: "ContactCard", + } + MsgType_value = map[string]int32{ + "System": 0, + "Text": 1, + "Audio": 2, + "Image": 3, + "Video": 4, + "File": 5, + "Card": 6, + "Notice": 7, + "Forward": 8, + "RTCCall": 9, + "Transfer": 10, + "Collect": 11, + "RedPacket": 12, + "ContactCard": 13, + } +) + +func (x MsgType) Enum() *MsgType { + p := new(MsgType) + *p = x + return p +} + +func (x MsgType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MsgType) Descriptor() protoreflect.EnumDescriptor { + return file_v1_proto_enumTypes[1].Descriptor() +} + +func (MsgType) Type() protoreflect.EnumType { + return &file_v1_proto_enumTypes[1] +} + +func (x MsgType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MsgType.Descriptor instead. +func (MsgType) EnumDescriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{1} +} + +// event define +type Proto_EventType int32 + +const ( + Proto_common Proto_EventType = 0 + Proto_commonAck Proto_EventType = 1 + Proto_Signal Proto_EventType = 2 + Proto_SYSNotice Proto_EventType = 3 +) + +// Enum value maps for Proto_EventType. +var ( + Proto_EventType_name = map[int32]string{ + 0: "common", + 1: "commonAck", + 2: "Signal", + 3: "SYSNotice", + } + Proto_EventType_value = map[string]int32{ + "common": 0, + "commonAck": 1, + "Signal": 2, + "SYSNotice": 3, + } +) + +func (x Proto_EventType) Enum() *Proto_EventType { + p := new(Proto_EventType) + *p = x + return p +} + +func (x Proto_EventType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Proto_EventType) Descriptor() protoreflect.EnumDescriptor { + return file_v1_proto_enumTypes[2].Descriptor() +} + +func (Proto_EventType) Type() protoreflect.EnumType { + return &file_v1_proto_enumTypes[2] +} + +func (x Proto_EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Proto_EventType.Descriptor instead. +func (Proto_EventType) EnumDescriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{0, 0} +} + +type Proto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EventType Proto_EventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=imparse.v1.Proto_EventType" json:"eventType,omitempty"` + Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` +} + +func (x *Proto) Reset() { + *x = Proto{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Proto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Proto) ProtoMessage() {} + +func (x *Proto) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Proto.ProtoReflect.Descriptor instead. +func (*Proto) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{0} +} + +func (x *Proto) GetEventType() Proto_EventType { + if x != nil { + return x.EventType + } + return Proto_common +} + +func (x *Proto) GetBody() []byte { + if x != nil { + return x.Body + } + return nil +} + +type Common struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChannelType Channel `protobuf:"varint,1,opt,name=channelType,proto3,enum=imparse.v1.Channel" json:"channelType,omitempty"` + Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"` + Seq string `protobuf:"bytes,3,opt,name=seq,proto3" json:"seq,omitempty"` + From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` + Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` + MsgType MsgType `protobuf:"varint,6,opt,name=msgType,proto3,enum=imparse.v1.MsgType" json:"msgType,omitempty"` + Msg []byte `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` + Datetime uint64 `protobuf:"varint,8,opt,name=datetime,proto3" json:"datetime,omitempty"` + Source *Source `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"` + Reference *Reference `protobuf:"bytes,10,opt,name=reference,proto3" json:"reference,omitempty"` +} + +func (x *Common) Reset() { + *x = Common{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Common) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Common) ProtoMessage() {} + +func (x *Common) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Common.ProtoReflect.Descriptor instead. +func (*Common) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{1} +} + +func (x *Common) GetChannelType() Channel { + if x != nil { + return x.ChannelType + } + return Channel_ToUser +} + +func (x *Common) GetMid() int64 { + if x != nil { + return x.Mid + } + return 0 +} + +func (x *Common) GetSeq() string { + if x != nil { + return x.Seq + } + return "" +} + +func (x *Common) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *Common) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +func (x *Common) GetMsgType() MsgType { + if x != nil { + return x.MsgType + } + return MsgType_System +} + +func (x *Common) GetMsg() []byte { + if x != nil { + return x.Msg + } + return nil +} + +func (x *Common) GetDatetime() uint64 { + if x != nil { + return x.Datetime + } + return 0 +} + +func (x *Common) GetSource() *Source { + if x != nil { + return x.Source + } + return nil +} + +func (x *Common) GetReference() *Reference { + if x != nil { + return x.Reference + } + return nil +} + +type Source struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChannelType Channel `protobuf:"varint,1,opt,name=channelType,proto3,enum=imparse.v1.Channel" json:"channelType,omitempty"` + From *SourceUser `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + Target *SourceUser `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` +} + +func (x *Source) Reset() { + *x = Source{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Source) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Source) ProtoMessage() {} + +func (x *Source) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Source.ProtoReflect.Descriptor instead. +func (*Source) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{2} +} + +func (x *Source) GetChannelType() Channel { + if x != nil { + return x.ChannelType + } + return Channel_ToUser +} + +func (x *Source) GetFrom() *SourceUser { + if x != nil { + return x.From + } + return nil +} + +func (x *Source) GetTarget() *SourceUser { + if x != nil { + return x.Target + } + return nil +} + +type SourceUser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *SourceUser) Reset() { + *x = SourceUser{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceUser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceUser) ProtoMessage() {} + +func (x *SourceUser) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceUser.ProtoReflect.Descriptor instead. +func (*SourceUser) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{3} +} + +func (x *SourceUser) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SourceUser) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type CommonAck struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"` + Datetime uint64 `protobuf:"varint,8,opt,name=datetime,proto3" json:"datetime,omitempty"` +} + +func (x *CommonAck) Reset() { + *x = CommonAck{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommonAck) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommonAck) ProtoMessage() {} + +func (x *CommonAck) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommonAck.ProtoReflect.Descriptor instead. +func (*CommonAck) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{4} +} + +func (x *CommonAck) GetMid() int64 { + if x != nil { + return x.Mid + } + return 0 +} + +func (x *CommonAck) GetDatetime() uint64 { + if x != nil { + return x.Datetime + } + return 0 +} + +type Reference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Topic int64 `protobuf:"varint,1,opt,name=topic,proto3" json:"topic,omitempty"` + Ref int64 `protobuf:"varint,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *Reference) Reset() { + *x = Reference{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Reference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reference) ProtoMessage() {} + +func (x *Reference) ProtoReflect() protoreflect.Message { + mi := &file_v1_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Reference.ProtoReflect.Descriptor instead. +func (*Reference) Descriptor() ([]byte, []int) { + return file_v1_proto_rawDescGZIP(), []int{5} +} + +func (x *Reference) GetTopic() int64 { + if x != nil { + return x.Topic + } + return 0 +} + +func (x *Reference) GetRef() int64 { + if x != nil { + return x.Ref + } + return 0 +} + +var File_v1_proto protoreflect.FileDescriptor + +var file_v1_proto_rawDesc = []byte{ + 0x0a, 0x08, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x69, 0x6d, 0x70, 0x61, + 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x99, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x39, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, + 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, + 0x41, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x41, 0x63, 0x6b, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x53, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, + 0x10, 0x03, 0x22, 0xcd, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x12, 0x35, 0x0a, + 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x03, 0x6d, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, + 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x35, 0x0a, + 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 0x12, 0x2e, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x22, 0x30, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x63, 0x6b, 0x12, + 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6d, 0x69, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x33, 0x0a, + 0x09, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x72, + 0x65, 0x66, 0x2a, 0x22, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0a, 0x0a, + 0x06, 0x54, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x6f, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x10, 0x01, 0x2a, 0xb5, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x10, 0x00, 0x12, 0x08, + 0x0a, 0x04, 0x54, 0x65, 0x78, 0x74, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x75, 0x64, 0x69, + 0x6f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x10, 0x03, 0x12, 0x09, + 0x0a, 0x05, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x69, 0x6c, + 0x65, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x61, 0x72, 0x64, 0x10, 0x06, 0x12, 0x0a, 0x0a, + 0x06, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x54, 0x43, 0x43, 0x61, 0x6c, + 0x6c, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x10, + 0x0a, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x10, 0x0b, 0x12, 0x0d, + 0x0a, 0x09, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x0c, 0x12, 0x0f, 0x0a, + 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x43, 0x61, 0x72, 0x64, 0x10, 0x0d, 0x42, 0x21, + 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x33, 0x33, 0x2e, 0x63, 0x6e, 0x2f, 0x63, + 0x68, 0x61, 0x74, 0x2f, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_v1_proto_rawDescOnce sync.Once + file_v1_proto_rawDescData = file_v1_proto_rawDesc +) + +func file_v1_proto_rawDescGZIP() []byte { + file_v1_proto_rawDescOnce.Do(func() { + file_v1_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_proto_rawDescData) + }) + return file_v1_proto_rawDescData +} + +var file_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_v1_proto_goTypes = []interface{}{ + (Channel)(0), // 0: imparse.v1.Channel + (MsgType)(0), // 1: imparse.v1.MsgType + (Proto_EventType)(0), // 2: imparse.v1.Proto.EventType + (*Proto)(nil), // 3: imparse.v1.Proto + (*Common)(nil), // 4: imparse.v1.Common + (*Source)(nil), // 5: imparse.v1.Source + (*SourceUser)(nil), // 6: imparse.v1.SourceUser + (*CommonAck)(nil), // 7: imparse.v1.CommonAck + (*Reference)(nil), // 8: imparse.v1.Reference +} +var file_v1_proto_depIdxs = []int32{ + 2, // 0: imparse.v1.Proto.eventType:type_name -> imparse.v1.Proto.EventType + 0, // 1: imparse.v1.Common.channelType:type_name -> imparse.v1.Channel + 1, // 2: imparse.v1.Common.msgType:type_name -> imparse.v1.MsgType + 5, // 3: imparse.v1.Common.source:type_name -> imparse.v1.Source + 8, // 4: imparse.v1.Common.reference:type_name -> imparse.v1.Reference + 0, // 5: imparse.v1.Source.channelType:type_name -> imparse.v1.Channel + 6, // 6: imparse.v1.Source.from:type_name -> imparse.v1.SourceUser + 6, // 7: imparse.v1.Source.target:type_name -> imparse.v1.SourceUser + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_v1_proto_init() } +func file_v1_proto_init() { + if File_v1_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Common); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Source); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceUser); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommonAck); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_v1_proto_rawDesc, + NumEnums: 3, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_v1_proto_goTypes, + DependencyIndexes: file_v1_proto_depIdxs, + EnumInfos: file_v1_proto_enumTypes, + MessageInfos: file_v1_proto_msgTypes, + }.Build() + File_v1_proto = out.File + file_v1_proto_rawDesc = nil + file_v1_proto_goTypes = nil + file_v1_proto_depIdxs = nil +} diff --git a/proto/v1.proto b/proto/v1.proto new file mode 100644 index 0000000..54d1cf4 --- /dev/null +++ b/proto/v1.proto @@ -0,0 +1,74 @@ +// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto +syntax = "proto3"; + +package imparse.v1; +option go_package = "gitlab.33.cn/chat/imparse/proto"; + +enum Channel { + ToUser = 0; + ToGroup = 1; +} + +// common msg define +enum MsgType { + System = 0; + Text = 1; + Audio = 2; + Image = 3; + Video = 4; + File = 5; + Card = 6; + Notice = 7; + Forward = 8; + RTCCall = 9; + Transfer = 10; + Collect = 11; + RedPacket = 12; + ContactCard = 13; +} + +message Proto { + // event define + enum EventType { + common = 0; + commonAck = 1; + Signal = 2; + SYSNotice = 3; + } + EventType eventType = 1; + bytes body = 2; +} + +message Common { + Channel channelType = 1; + int64 mid = 2; + string seq = 3; + string from = 4; + string target = 5; + MsgType msgType = 6; + bytes msg = 7; + uint64 datetime = 8; + Source source = 9; + Reference reference = 10; +} + +message Source { + Channel channelType = 1; + SourceUser from = 2; + SourceUser target = 3; +} + +message SourceUser { + string id = 1; + string name = 2; +} + +message CommonAck { + int64 mid = 2; + uint64 datetime = 8; +} + +message Reference { + int64 topic = 1; + int64 ref = 2; +} diff --git a/standard.go b/standard.go new file mode 100644 index 0000000..0d43e1f --- /dev/null +++ b/standard.go @@ -0,0 +1,86 @@ +package imparse + +import "context" + +// +type Exec interface { + Transport(ctx context.Context, id int64, key, from, target string, ch Channel, frameType FrameType, data []byte) error + RevAck(ctx context.Context, id int64, keys []string, data []byte) error +} + +type Filter func(ctx context.Context, frame Frame) error +type ActionFilter interface { + FrameFilters(tp FrameType) []Filter +} + +//implement +type StandardAnswer struct { + cache Cache + exec Exec + trace Trace + frameFilters map[FrameType][]Filter +} + +func NewStandardAnswer(cache Cache, exec Exec, trace Trace, filters map[FrameType][]Filter) *StandardAnswer { + return &StandardAnswer{ + cache: cache, + exec: exec, + trace: trace, + frameFilters: filters, + } +} + +func (s *StandardAnswer) FrameFilters(tp FrameType) []Filter { + if s.frameFilters == nil { + s.frameFilters = make(map[FrameType][]Filter) + } + return s.frameFilters[tp] +} + +func (s *StandardAnswer) Check(ctx context.Context, checker Checker, frame Frame) error { + if s.trace != nil { + finish, _ := s.trace.StartSpanFromContext(ctx, "Check") + defer finish() + } + return checker.CheckFrame(frame) +} + +func (s *StandardAnswer) Filter(ctx context.Context, frame Frame) (uint64, error) { + if s.trace != nil { + finish, _ := s.trace.StartSpanFromContext(ctx, "Filter") + defer finish() + } + fs := s.FrameFilters(frame.Type()) + return frame.Filter(ctx, s.cache, fs...) +} + +func (s *StandardAnswer) Transport(ctx context.Context, frame Frame) error { + if s.trace != nil { + finish, _ := s.trace.StartSpanFromContext(ctx, "Transport") + defer finish() + } + return frame.Transport(ctx, s.exec) +} + +func (s *StandardAnswer) Ack(ctx context.Context, frame Frame) (int64, error) { + if s.trace != nil { + finish, _ := s.trace.StartSpanFromContext(ctx, "Ack") + defer finish() + } + return frame.Ack(ctx, s.exec) +} + +// +type StandardStorage struct { + db DB +} + +func NewStandardStorage(db DB) *StandardStorage { + return &StandardStorage{ + db: db, + } +} + +func (s *StandardStorage) SaveMsg(ctx context.Context, frame Frame) error { + return s.db.SaveMsg(frame) +} diff --git a/trace.go b/trace.go new file mode 100644 index 0000000..e0e8dfb --- /dev/null +++ b/trace.go @@ -0,0 +1,7 @@ +package imparse + +import "context" + +type Trace interface { + StartSpanFromContext(ctx context.Context, funcName string) (func(), context.Context) +} diff --git a/util/time.go b/util/time.go new file mode 100644 index 0000000..f4740e7 --- /dev/null +++ b/util/time.go @@ -0,0 +1,33 @@ +package util + +import "time" + +var ( + shanghai = Location("Asia/Shanghai") // Shanghai *time.Location + hongkong = Location("Asia/Hong_Kong") // Hong Kong *time.Location + local = Location("Local") // Local *time.Location + utc = Location("UTC") // UTC *time.Location +) + +// Location returns *time.Location by location name. +func Location(name string) *time.Location { + loc, err := time.LoadLocation(name) + if err != nil { + panic(err) + } + return loc +} + +// Shanghai returns Shanghai *time.Location. +func Shanghai() *time.Location { + return shanghai +} + +// TimeNowUnixNano returns now unix nanosecond timestamp. +func TimeNowUnixNano(location ...*time.Location) int64 { + loc := Shanghai() + if len(location) != 0 { + loc = location[0] + } + return time.Now().In(loc).UnixNano() +}