Documentation
¶
Index ¶
- func RegisterWorldServer(s *grpc.Server, srv WorldServer)
- type CharacterData
- func (*CharacterData) Descriptor() ([]byte, []int)
- func (m *CharacterData) GetData() [][]byte
- func (*CharacterData) ProtoMessage()
- func (m *CharacterData) Reset()
- func (m *CharacterData) String() string
- func (m *CharacterData) XXX_DiscardUnknown()
- func (m *CharacterData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CharacterData) XXX_Merge(src proto.Message)
- func (m *CharacterData) XXX_Size() int
- func (m *CharacterData) XXX_Unmarshal(b []byte) error
- type CharacterQuery
- func (*CharacterQuery) Descriptor() ([]byte, []int)
- func (m *CharacterQuery) GetName() string
- func (*CharacterQuery) ProtoMessage()
- func (m *CharacterQuery) Reset()
- func (m *CharacterQuery) String() string
- func (m *CharacterQuery) XXX_DiscardUnknown()
- func (m *CharacterQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CharacterQuery) XXX_Merge(src proto.Message)
- func (m *CharacterQuery) XXX_Size() int
- func (m *CharacterQuery) XXX_Unmarshal(b []byte) error
- type DatabaseInfo
- func (*DatabaseInfo) Descriptor() ([]byte, []int)
- func (*DatabaseInfo) ProtoMessage()
- func (m *DatabaseInfo) Reset()
- func (m *DatabaseInfo) String() string
- func (m *DatabaseInfo) XXX_DiscardUnknown()
- func (m *DatabaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatabaseInfo) XXX_Merge(src proto.Message)
- func (m *DatabaseInfo) XXX_Size() int
- func (m *DatabaseInfo) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type UnimplementedWorldServer
- func (*UnimplementedWorldServer) Character(ctx context.Context, req *CharacterQuery) (*CharacterData, error)
- func (*UnimplementedWorldServer) Database(ctx context.Context, req *Empty) (*DatabaseInfo, error)
- func (*UnimplementedWorldServer) GetWorldData(ctx context.Context, req *WorldQuery) (*WorldData, error)
- type WorldClient
- type WorldData
- func (*WorldData) Descriptor() ([]byte, []int)
- func (m *WorldData) GetIP() string
- func (m *WorldData) GetPort() int32
- func (m *WorldData) GetWorldName() string
- func (m *WorldData) GetWorldNumber() int32
- func (m *WorldData) GetWorldStatus() int32
- func (*WorldData) ProtoMessage()
- func (m *WorldData) Reset()
- func (m *WorldData) String() string
- func (m *WorldData) XXX_DiscardUnknown()
- func (m *WorldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WorldData) XXX_Merge(src proto.Message)
- func (m *WorldData) XXX_Size() int
- func (m *WorldData) XXX_Unmarshal(b []byte) error
- type WorldQuery
- func (*WorldQuery) Descriptor() ([]byte, []int)
- func (m *WorldQuery) GetID() int32
- func (m *WorldQuery) GetName() string
- func (*WorldQuery) ProtoMessage()
- func (m *WorldQuery) Reset()
- func (m *WorldQuery) String() string
- func (m *WorldQuery) XXX_DiscardUnknown()
- func (m *WorldQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WorldQuery) XXX_Merge(src proto.Message)
- func (m *WorldQuery) XXX_Size() int
- func (m *WorldQuery) XXX_Unmarshal(b []byte) error
- type WorldServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWorldServer ¶
func RegisterWorldServer(s *grpc.Server, srv WorldServer)
Types ¶
type CharacterData ¶
type CharacterData struct {
Data [][]byte `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CharacterData) Descriptor ¶
func (*CharacterData) Descriptor() ([]byte, []int)
func (*CharacterData) GetData ¶
func (m *CharacterData) GetData() [][]byte
func (*CharacterData) ProtoMessage ¶
func (*CharacterData) ProtoMessage()
func (*CharacterData) Reset ¶
func (m *CharacterData) Reset()
func (*CharacterData) String ¶
func (m *CharacterData) String() string
func (*CharacterData) XXX_DiscardUnknown ¶
func (m *CharacterData) XXX_DiscardUnknown()
func (*CharacterData) XXX_Marshal ¶
func (m *CharacterData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CharacterData) XXX_Merge ¶
func (m *CharacterData) XXX_Merge(src proto.Message)
func (*CharacterData) XXX_Size ¶
func (m *CharacterData) XXX_Size() int
func (*CharacterData) XXX_Unmarshal ¶
func (m *CharacterData) XXX_Unmarshal(b []byte) error
type CharacterQuery ¶
type CharacterQuery struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CharacterQuery) Descriptor ¶
func (*CharacterQuery) Descriptor() ([]byte, []int)
func (*CharacterQuery) GetName ¶
func (m *CharacterQuery) GetName() string
func (*CharacterQuery) ProtoMessage ¶
func (*CharacterQuery) ProtoMessage()
func (*CharacterQuery) Reset ¶
func (m *CharacterQuery) Reset()
func (*CharacterQuery) String ¶
func (m *CharacterQuery) String() string
func (*CharacterQuery) XXX_DiscardUnknown ¶
func (m *CharacterQuery) XXX_DiscardUnknown()
func (*CharacterQuery) XXX_Marshal ¶
func (m *CharacterQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CharacterQuery) XXX_Merge ¶
func (m *CharacterQuery) XXX_Merge(src proto.Message)
func (*CharacterQuery) XXX_Size ¶
func (m *CharacterQuery) XXX_Size() int
func (*CharacterQuery) XXX_Unmarshal ¶
func (m *CharacterQuery) XXX_Unmarshal(b []byte) error
type DatabaseInfo ¶
type DatabaseInfo struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DatabaseInfo) Descriptor ¶
func (*DatabaseInfo) Descriptor() ([]byte, []int)
func (*DatabaseInfo) ProtoMessage ¶
func (*DatabaseInfo) ProtoMessage()
func (*DatabaseInfo) Reset ¶
func (m *DatabaseInfo) Reset()
func (*DatabaseInfo) String ¶
func (m *DatabaseInfo) String() string
func (*DatabaseInfo) XXX_DiscardUnknown ¶
func (m *DatabaseInfo) XXX_DiscardUnknown()
func (*DatabaseInfo) XXX_Marshal ¶
func (m *DatabaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatabaseInfo) XXX_Merge ¶
func (m *DatabaseInfo) XXX_Merge(src proto.Message)
func (*DatabaseInfo) XXX_Size ¶
func (m *DatabaseInfo) XXX_Size() int
func (*DatabaseInfo) XXX_Unmarshal ¶
func (m *DatabaseInfo) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type UnimplementedWorldServer ¶
type UnimplementedWorldServer struct {
}
UnimplementedWorldServer can be embedded to have forward compatible implementations.
func (*UnimplementedWorldServer) Character ¶
func (*UnimplementedWorldServer) Character(ctx context.Context, req *CharacterQuery) (*CharacterData, error)
func (*UnimplementedWorldServer) Database ¶
func (*UnimplementedWorldServer) Database(ctx context.Context, req *Empty) (*DatabaseInfo, error)
func (*UnimplementedWorldServer) GetWorldData ¶
func (*UnimplementedWorldServer) GetWorldData(ctx context.Context, req *WorldQuery) (*WorldData, error)
type WorldClient ¶
type WorldClient interface {
GetWorldData(ctx context.Context, in *WorldQuery, opts ...grpc.CallOption) (*WorldData, error)
Character(ctx context.Context, in *CharacterQuery, opts ...grpc.CallOption) (*CharacterData, error)
Database(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DatabaseInfo, error)
}
WorldClient is the client API for World service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWorldClient ¶
func NewWorldClient(cc grpc.ClientConnInterface) WorldClient
type WorldData ¶
type WorldData struct {
WorldNumber int32 `protobuf:"varint,1,opt,name=WorldNumber,proto3" json:"WorldNumber,omitempty"`
WorldName string `protobuf:"bytes,2,opt,name=WorldName,proto3" json:"WorldName,omitempty"`
WorldStatus int32 `protobuf:"varint,3,opt,name=WorldStatus,proto3" json:"WorldStatus,omitempty"`
IP string `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"`
Port int32 `protobuf:"varint,5,opt,name=Port,proto3" json:"Port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WorldData) Descriptor ¶
func (*WorldData) GetWorldName ¶
func (*WorldData) GetWorldNumber ¶
func (*WorldData) GetWorldStatus ¶
func (*WorldData) ProtoMessage ¶
func (*WorldData) ProtoMessage()
func (*WorldData) XXX_DiscardUnknown ¶
func (m *WorldData) XXX_DiscardUnknown()
func (*WorldData) XXX_Marshal ¶
func (*WorldData) XXX_Unmarshal ¶
type WorldQuery ¶
type WorldQuery struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
ID int32 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WorldQuery) Descriptor ¶
func (*WorldQuery) Descriptor() ([]byte, []int)
func (*WorldQuery) GetID ¶
func (m *WorldQuery) GetID() int32
func (*WorldQuery) GetName ¶
func (m *WorldQuery) GetName() string
func (*WorldQuery) ProtoMessage ¶
func (*WorldQuery) ProtoMessage()
func (*WorldQuery) Reset ¶
func (m *WorldQuery) Reset()
func (*WorldQuery) String ¶
func (m *WorldQuery) String() string
func (*WorldQuery) XXX_DiscardUnknown ¶
func (m *WorldQuery) XXX_DiscardUnknown()
func (*WorldQuery) XXX_Marshal ¶
func (m *WorldQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WorldQuery) XXX_Merge ¶
func (m *WorldQuery) XXX_Merge(src proto.Message)
func (*WorldQuery) XXX_Size ¶
func (m *WorldQuery) XXX_Size() int
func (*WorldQuery) XXX_Unmarshal ¶
func (m *WorldQuery) XXX_Unmarshal(b []byte) error
type WorldServer ¶
type WorldServer interface {
GetWorldData(context.Context, *WorldQuery) (*WorldData, error)
Character(context.Context, *CharacterQuery) (*CharacterData, error)
Database(context.Context, *Empty) (*DatabaseInfo, error)
}
WorldServer is the server API for World service.
Click to show internal directories.
Click to hide internal directories.