proto

package
v0.0.0-...-db9ae0a Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

router.proto

It has these top-level messages:

NoArg
NoReply
ConnArg
ConnReply
DisconnArg
DisconnReply
GetArg
GetReply
GetAllReply
MGetArg
MGetReply
UserCountArg
UserCountReply
CountReply
RoomCountArg
RoomCountReply
AllRoomCountReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllRoomCountReply

type AllRoomCountReply struct {
	Counter map[int32]int32 `` /* 150-byte string literal not displayed */
}

func (*AllRoomCountReply) GetCounter

func (m *AllRoomCountReply) GetCounter() map[int32]int32

func (*AllRoomCountReply) Marshal

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

func (*AllRoomCountReply) MarshalTo

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

func (*AllRoomCountReply) ProtoMessage

func (*AllRoomCountReply) ProtoMessage()

func (*AllRoomCountReply) Reset

func (m *AllRoomCountReply) Reset()

func (*AllRoomCountReply) Size

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

func (*AllRoomCountReply) String

func (m *AllRoomCountReply) String() string

func (*AllRoomCountReply) Unmarshal

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

type ConnArg

type ConnArg struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Server int32 `protobuf:"varint,2,opt,name=server,proto3" json:"server,omitempty"`
	RoomId int32 `protobuf:"varint,3,opt,name=roomId,proto3" json:"roomId,omitempty"`
}

func (*ConnArg) Marshal

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

func (*ConnArg) MarshalTo

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

func (*ConnArg) ProtoMessage

func (*ConnArg) ProtoMessage()

func (*ConnArg) Reset

func (m *ConnArg) Reset()

func (*ConnArg) Size

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

func (*ConnArg) String

func (m *ConnArg) String() string

func (*ConnArg) Unmarshal

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

type ConnReply

type ConnReply struct {
	Seq int32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}

func (*ConnReply) Marshal

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

func (*ConnReply) MarshalTo

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

func (*ConnReply) ProtoMessage

func (*ConnReply) ProtoMessage()

func (*ConnReply) Reset

func (m *ConnReply) Reset()

func (*ConnReply) Size

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

func (*ConnReply) String

func (m *ConnReply) String() string

func (*ConnReply) Unmarshal

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

type CountReply

type CountReply struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}

func (*CountReply) Marshal

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

func (*CountReply) MarshalTo

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

func (*CountReply) ProtoMessage

func (*CountReply) ProtoMessage()

func (*CountReply) Reset

func (m *CountReply) Reset()

func (*CountReply) Size

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

func (*CountReply) String

func (m *CountReply) String() string

func (*CountReply) Unmarshal

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

type DisconnArg

type DisconnArg struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Seq    int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	RoomId int32 `protobuf:"varint,3,opt,name=roomId,proto3" json:"roomId,omitempty"`
}

func (*DisconnArg) Marshal

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

func (*DisconnArg) MarshalTo

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

func (*DisconnArg) ProtoMessage

func (*DisconnArg) ProtoMessage()

func (*DisconnArg) Reset

func (m *DisconnArg) Reset()

func (*DisconnArg) Size

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

func (*DisconnArg) String

func (m *DisconnArg) String() string

func (*DisconnArg) Unmarshal

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

type DisconnReply

type DisconnReply struct {
	Has bool `protobuf:"varint,1,opt,name=has,proto3" json:"has,omitempty"`
}

func (*DisconnReply) Marshal

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

func (*DisconnReply) MarshalTo

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

func (*DisconnReply) ProtoMessage

func (*DisconnReply) ProtoMessage()

func (*DisconnReply) Reset

func (m *DisconnReply) Reset()

func (*DisconnReply) Size

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

func (*DisconnReply) String

func (m *DisconnReply) String() string

func (*DisconnReply) Unmarshal

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

type GetAllReply

type GetAllReply struct {
	UserIds  []int64     `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"`
	Sessions []*GetReply `protobuf:"bytes,2,rep,name=sessions" json:"sessions,omitempty"`
}

func (*GetAllReply) GetSessions

func (m *GetAllReply) GetSessions() []*GetReply

func (*GetAllReply) Marshal

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

func (*GetAllReply) MarshalTo

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

func (*GetAllReply) ProtoMessage

func (*GetAllReply) ProtoMessage()

func (*GetAllReply) Reset

func (m *GetAllReply) Reset()

func (*GetAllReply) Size

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

func (*GetAllReply) String

func (m *GetAllReply) String() string

func (*GetAllReply) Unmarshal

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

type GetArg

type GetArg struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
}

func (*GetArg) Marshal

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

func (*GetArg) MarshalTo

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

func (*GetArg) ProtoMessage

func (*GetArg) ProtoMessage()

func (*GetArg) Reset

func (m *GetArg) Reset()

func (*GetArg) Size

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

func (*GetArg) String

func (m *GetArg) String() string

func (*GetArg) Unmarshal

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

type GetReply

type GetReply struct {
	Seqs    []int32 `protobuf:"varint,1,rep,name=seqs" json:"seqs,omitempty"`
	Servers []int32 `protobuf:"varint,2,rep,name=servers" json:"servers,omitempty"`
}

func (*GetReply) Marshal

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

func (*GetReply) MarshalTo

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

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (m *GetReply) Reset()

func (*GetReply) Size

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

func (*GetReply) String

func (m *GetReply) String() string

func (*GetReply) Unmarshal

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

type MGetArg

type MGetArg struct {
	UserIds []int64 `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"`
}

func (*MGetArg) Marshal

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

func (*MGetArg) MarshalTo

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

func (*MGetArg) ProtoMessage

func (*MGetArg) ProtoMessage()

func (*MGetArg) Reset

func (m *MGetArg) Reset()

func (*MGetArg) Size

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

func (*MGetArg) String

func (m *MGetArg) String() string

func (*MGetArg) Unmarshal

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

type MGetReply

type MGetReply struct {
	UserIds  []int64     `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"`
	Sessions []*GetReply `protobuf:"bytes,2,rep,name=sessions" json:"sessions,omitempty"`
}

func (*MGetReply) GetSessions

func (m *MGetReply) GetSessions() []*GetReply

func (*MGetReply) Marshal

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

func (*MGetReply) MarshalTo

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

func (*MGetReply) ProtoMessage

func (*MGetReply) ProtoMessage()

func (*MGetReply) Reset

func (m *MGetReply) Reset()

func (*MGetReply) Size

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

func (*MGetReply) String

func (m *MGetReply) String() string

func (*MGetReply) Unmarshal

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

type NoArg

type NoArg struct {
}

func (*NoArg) Marshal

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

func (*NoArg) MarshalTo

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

func (*NoArg) ProtoMessage

func (*NoArg) ProtoMessage()

func (*NoArg) Reset

func (m *NoArg) Reset()

func (*NoArg) Size

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

func (*NoArg) String

func (m *NoArg) String() string

func (*NoArg) Unmarshal

func (m *NoArg) 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 RoomCountArg

type RoomCountArg struct {
	RoomId int32 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId,omitempty"`
}

func (*RoomCountArg) Marshal

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

func (*RoomCountArg) MarshalTo

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

func (*RoomCountArg) ProtoMessage

func (*RoomCountArg) ProtoMessage()

func (*RoomCountArg) Reset

func (m *RoomCountArg) Reset()

func (*RoomCountArg) Size

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

func (*RoomCountArg) String

func (m *RoomCountArg) String() string

func (*RoomCountArg) Unmarshal

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

type RoomCountReply

type RoomCountReply struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}

func (*RoomCountReply) Marshal

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

func (*RoomCountReply) MarshalTo

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

func (*RoomCountReply) ProtoMessage

func (*RoomCountReply) ProtoMessage()

func (*RoomCountReply) Reset

func (m *RoomCountReply) Reset()

func (*RoomCountReply) Size

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

func (*RoomCountReply) String

func (m *RoomCountReply) String() string

func (*RoomCountReply) Unmarshal

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

type UserCountArg

type UserCountArg struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
}

func (*UserCountArg) Marshal

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

func (*UserCountArg) MarshalTo

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

func (*UserCountArg) ProtoMessage

func (*UserCountArg) ProtoMessage()

func (*UserCountArg) Reset

func (m *UserCountArg) Reset()

func (*UserCountArg) Size

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

func (*UserCountArg) String

func (m *UserCountArg) String() string

func (*UserCountArg) Unmarshal

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

type UserCountReply

type UserCountReply struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}

func (*UserCountReply) Marshal

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

func (*UserCountReply) MarshalTo

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

func (*UserCountReply) ProtoMessage

func (*UserCountReply) ProtoMessage()

func (*UserCountReply) Reset

func (m *UserCountReply) Reset()

func (*UserCountReply) Size

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

func (*UserCountReply) String

func (m *UserCountReply) String() string

func (*UserCountReply) Unmarshal

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

Jump to

Keyboard shortcuts

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