comet

package
v0.0.0-...-de535d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package comet is a generated protocol buffer package.

It is generated from these files:

comet.proto

It has these top-level messages:

NoArgs
NoReply
PushMsgArg
PushMsgsArg
PushMsgsReply
MPushMsgArg
MPushMsgReply
MPushMsgsArg
MPushMsgsReply
BoardcastArg
BoardcastRoomArg
RoomsReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardcastArg

type BoardcastArg struct {
	Ver       int32  `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"`
	Operation int32  `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"`
	Msg       []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*BoardcastArg) Marshal

func (m *BoardcastArg) Marshal() (data []byte, err error)

func (*BoardcastArg) MarshalTo

func (m *BoardcastArg) MarshalTo(data []byte) (n int, err error)

func (*BoardcastArg) ProtoMessage

func (*BoardcastArg) ProtoMessage()

func (*BoardcastArg) Reset

func (m *BoardcastArg) Reset()

func (*BoardcastArg) Size

func (m *BoardcastArg) Size() (n int)

func (*BoardcastArg) String

func (m *BoardcastArg) String() string

func (*BoardcastArg) Unmarshal

func (m *BoardcastArg) Unmarshal(data []byte) error

type BoardcastRoomArg

type BoardcastRoomArg struct {
	Ver       int32  `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"`
	Operation int32  `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"`
	Msg       []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	RoomId    int32  `protobuf:"varint,4,opt,name=roomId,proto3" json:"roomId,omitempty"`
}

func (*BoardcastRoomArg) Marshal

func (m *BoardcastRoomArg) Marshal() (data []byte, err error)

func (*BoardcastRoomArg) MarshalTo

func (m *BoardcastRoomArg) MarshalTo(data []byte) (n int, err error)

func (*BoardcastRoomArg) ProtoMessage

func (*BoardcastRoomArg) ProtoMessage()

func (*BoardcastRoomArg) Reset

func (m *BoardcastRoomArg) Reset()

func (*BoardcastRoomArg) Size

func (m *BoardcastRoomArg) Size() (n int)

func (*BoardcastRoomArg) String

func (m *BoardcastRoomArg) String() string

func (*BoardcastRoomArg) Unmarshal

func (m *BoardcastRoomArg) Unmarshal(data []byte) error

type MPushMsgArg

type MPushMsgArg struct {
	Keys      []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
	Ver       int32    `protobuf:"varint,2,opt,name=ver,proto3" json:"ver,omitempty"`
	Operation int32    `protobuf:"varint,3,opt,name=operation,proto3" json:"operation,omitempty"`
	Msg       []byte   `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*MPushMsgArg) Marshal

func (m *MPushMsgArg) Marshal() (data []byte, err error)

func (*MPushMsgArg) MarshalTo

func (m *MPushMsgArg) MarshalTo(data []byte) (n int, err error)

func (*MPushMsgArg) ProtoMessage

func (*MPushMsgArg) ProtoMessage()

func (*MPushMsgArg) Reset

func (m *MPushMsgArg) Reset()

func (*MPushMsgArg) Size

func (m *MPushMsgArg) Size() (n int)

func (*MPushMsgArg) String

func (m *MPushMsgArg) String() string

func (*MPushMsgArg) Unmarshal

func (m *MPushMsgArg) Unmarshal(data []byte) error

type MPushMsgReply

type MPushMsgReply struct {
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*MPushMsgReply) Marshal

func (m *MPushMsgReply) Marshal() (data []byte, err error)

func (*MPushMsgReply) MarshalTo

func (m *MPushMsgReply) MarshalTo(data []byte) (n int, err error)

func (*MPushMsgReply) ProtoMessage

func (*MPushMsgReply) ProtoMessage()

func (*MPushMsgReply) Reset

func (m *MPushMsgReply) Reset()

func (*MPushMsgReply) Size

func (m *MPushMsgReply) Size() (n int)

func (*MPushMsgReply) String

func (m *MPushMsgReply) String() string

func (*MPushMsgReply) Unmarshal

func (m *MPushMsgReply) Unmarshal(data []byte) error

type MPushMsgsArg

type MPushMsgsArg struct {
	Keys       []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
	Vers       []int32  `protobuf:"varint,2,rep,name=vers" json:"vers,omitempty"`
	Operations []int32  `protobuf:"varint,3,rep,name=operations" json:"operations,omitempty"`
	Msgs       [][]byte `protobuf:"bytes,4,rep,name=msgs" json:"msgs,omitempty"`
}

func (*MPushMsgsArg) Marshal

func (m *MPushMsgsArg) Marshal() (data []byte, err error)

func (*MPushMsgsArg) MarshalTo

func (m *MPushMsgsArg) MarshalTo(data []byte) (n int, err error)

func (*MPushMsgsArg) ProtoMessage

func (*MPushMsgsArg) ProtoMessage()

func (*MPushMsgsArg) Reset

func (m *MPushMsgsArg) Reset()

func (*MPushMsgsArg) Size

func (m *MPushMsgsArg) Size() (n int)

func (*MPushMsgsArg) String

func (m *MPushMsgsArg) String() string

func (*MPushMsgsArg) Unmarshal

func (m *MPushMsgsArg) Unmarshal(data []byte) error

type MPushMsgsReply

type MPushMsgsReply struct {
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*MPushMsgsReply) Marshal

func (m *MPushMsgsReply) Marshal() (data []byte, err error)

func (*MPushMsgsReply) MarshalTo

func (m *MPushMsgsReply) MarshalTo(data []byte) (n int, err error)

func (*MPushMsgsReply) ProtoMessage

func (*MPushMsgsReply) ProtoMessage()

func (*MPushMsgsReply) Reset

func (m *MPushMsgsReply) Reset()

func (*MPushMsgsReply) Size

func (m *MPushMsgsReply) Size() (n int)

func (*MPushMsgsReply) String

func (m *MPushMsgsReply) String() string

func (*MPushMsgsReply) Unmarshal

func (m *MPushMsgsReply) Unmarshal(data []byte) error

type NoArgs

type NoArgs struct {
}

func (*NoArgs) Marshal

func (m *NoArgs) Marshal() (data []byte, err error)

func (*NoArgs) MarshalTo

func (m *NoArgs) MarshalTo(data []byte) (n int, err error)

func (*NoArgs) ProtoMessage

func (*NoArgs) ProtoMessage()

func (*NoArgs) Reset

func (m *NoArgs) Reset()

func (*NoArgs) Size

func (m *NoArgs) Size() (n int)

func (*NoArgs) String

func (m *NoArgs) String() string

func (*NoArgs) Unmarshal

func (m *NoArgs) Unmarshal(data []byte) error

type NoReply

type NoReply struct {
}

func (*NoReply) Marshal

func (m *NoReply) Marshal() (data []byte, err error)

func (*NoReply) MarshalTo

func (m *NoReply) MarshalTo(data []byte) (n int, err error)

func (*NoReply) ProtoMessage

func (*NoReply) ProtoMessage()

func (*NoReply) Reset

func (m *NoReply) Reset()

func (*NoReply) Size

func (m *NoReply) Size() (n int)

func (*NoReply) String

func (m *NoReply) String() string

func (*NoReply) Unmarshal

func (m *NoReply) Unmarshal(data []byte) error

type PushMsgArg

type PushMsgArg struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Ver       int32  `protobuf:"varint,2,opt,name=ver,proto3" json:"ver,omitempty"`
	Operation int32  `protobuf:"varint,3,opt,name=operation,proto3" json:"operation,omitempty"`
	Msg       []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*PushMsgArg) Marshal

func (m *PushMsgArg) Marshal() (data []byte, err error)

func (*PushMsgArg) MarshalTo

func (m *PushMsgArg) MarshalTo(data []byte) (n int, err error)

func (*PushMsgArg) ProtoMessage

func (*PushMsgArg) ProtoMessage()

func (*PushMsgArg) Reset

func (m *PushMsgArg) Reset()

func (*PushMsgArg) Size

func (m *PushMsgArg) Size() (n int)

func (*PushMsgArg) String

func (m *PushMsgArg) String() string

func (*PushMsgArg) Unmarshal

func (m *PushMsgArg) Unmarshal(data []byte) error

type PushMsgsArg

type PushMsgsArg struct {
	Key        string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Vers       []int32  `protobuf:"varint,2,rep,name=vers" json:"vers,omitempty"`
	Operations []int32  `protobuf:"varint,3,rep,name=operations" json:"operations,omitempty"`
	Msgs       [][]byte `protobuf:"bytes,4,rep,name=msgs" json:"msgs,omitempty"`
}

func (*PushMsgsArg) Marshal

func (m *PushMsgsArg) Marshal() (data []byte, err error)

func (*PushMsgsArg) MarshalTo

func (m *PushMsgsArg) MarshalTo(data []byte) (n int, err error)

func (*PushMsgsArg) ProtoMessage

func (*PushMsgsArg) ProtoMessage()

func (*PushMsgsArg) Reset

func (m *PushMsgsArg) Reset()

func (*PushMsgsArg) Size

func (m *PushMsgsArg) Size() (n int)

func (*PushMsgsArg) String

func (m *PushMsgsArg) String() string

func (*PushMsgsArg) Unmarshal

func (m *PushMsgsArg) Unmarshal(data []byte) error

type PushMsgsReply

type PushMsgsReply struct {
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*PushMsgsReply) Marshal

func (m *PushMsgsReply) Marshal() (data []byte, err error)

func (*PushMsgsReply) MarshalTo

func (m *PushMsgsReply) MarshalTo(data []byte) (n int, err error)

func (*PushMsgsReply) ProtoMessage

func (*PushMsgsReply) ProtoMessage()

func (*PushMsgsReply) Reset

func (m *PushMsgsReply) Reset()

func (*PushMsgsReply) Size

func (m *PushMsgsReply) Size() (n int)

func (*PushMsgsReply) String

func (m *PushMsgsReply) String() string

func (*PushMsgsReply) Unmarshal

func (m *PushMsgsReply) Unmarshal(data []byte) error

type RoomsReply

type RoomsReply struct {
	Rooms map[int32]bool `` /* 146-byte string literal not displayed */
}

func (*RoomsReply) GetRooms

func (m *RoomsReply) GetRooms() map[int32]bool

func (*RoomsReply) Marshal

func (m *RoomsReply) Marshal() (data []byte, err error)

func (*RoomsReply) MarshalTo

func (m *RoomsReply) MarshalTo(data []byte) (n int, err error)

func (*RoomsReply) ProtoMessage

func (*RoomsReply) ProtoMessage()

func (*RoomsReply) Reset

func (m *RoomsReply) Reset()

func (*RoomsReply) Size

func (m *RoomsReply) Size() (n int)

func (*RoomsReply) String

func (m *RoomsReply) String() string

func (*RoomsReply) Unmarshal

func (m *RoomsReply) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL