proto

package
v0.0.0-...-4b5a841 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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
PutArg
PutReply
DelArg
DelReply
DelServerArg
GetArg
GetReply
GetAllReply
MGetArg
MGetReply
UserCountArg
UserCountReply
CountReply
RoomCountArg
RoomCountReply
AllRoomCountReply
AllServerCountReply

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 AllServerCountReply

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

func (*AllServerCountReply) GetCounter

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

func (*AllServerCountReply) Marshal

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

func (*AllServerCountReply) MarshalTo

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

func (*AllServerCountReply) ProtoMessage

func (*AllServerCountReply) ProtoMessage()

func (*AllServerCountReply) Reset

func (m *AllServerCountReply) Reset()

func (*AllServerCountReply) Size

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

func (*AllServerCountReply) String

func (m *AllServerCountReply) String() string

func (*AllServerCountReply) Unmarshal

func (m *AllServerCountReply) 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 DelArg

type DelArg 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 (*DelArg) Marshal

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

func (*DelArg) MarshalTo

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

func (*DelArg) ProtoMessage

func (*DelArg) ProtoMessage()

func (*DelArg) Reset

func (m *DelArg) Reset()

func (*DelArg) Size

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

func (*DelArg) String

func (m *DelArg) String() string

func (*DelArg) Unmarshal

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

type DelReply

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

func (*DelReply) Marshal

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

func (*DelReply) MarshalTo

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

func (*DelReply) ProtoMessage

func (*DelReply) ProtoMessage()

func (*DelReply) Reset

func (m *DelReply) Reset()

func (*DelReply) Size

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

func (*DelReply) String

func (m *DelReply) String() string

func (*DelReply) Unmarshal

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

type DelServerArg

type DelServerArg struct {
	Server int32 `protobuf:"varint,1,opt,name=server,proto3" json:"server,omitempty"`
}

func (*DelServerArg) Marshal

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

func (*DelServerArg) MarshalTo

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

func (*DelServerArg) ProtoMessage

func (*DelServerArg) ProtoMessage()

func (*DelServerArg) Reset

func (m *DelServerArg) Reset()

func (*DelServerArg) Size

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

func (*DelServerArg) String

func (m *DelServerArg) String() string

func (*DelServerArg) Unmarshal

func (m *DelServerArg) 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 PutArg

type PutArg 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 (*PutArg) Marshal

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

func (*PutArg) MarshalTo

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

func (*PutArg) ProtoMessage

func (*PutArg) ProtoMessage()

func (*PutArg) Reset

func (m *PutArg) Reset()

func (*PutArg) Size

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

func (*PutArg) String

func (m *PutArg) String() string

func (*PutArg) Unmarshal

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

type PutReply

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

func (*PutReply) Marshal

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

func (*PutReply) MarshalTo

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

func (*PutReply) ProtoMessage

func (*PutReply) ProtoMessage()

func (*PutReply) Reset

func (m *PutReply) Reset()

func (*PutReply) Size

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

func (*PutReply) String

func (m *PutReply) String() string

func (*PutReply) Unmarshal

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