world

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type UnimplementedWorldServer

type UnimplementedWorldServer struct {
}

UnimplementedWorldServer can be embedded to have forward compatible implementations.

func (*UnimplementedWorldServer) Character

func (*UnimplementedWorldServer) Database

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) Descriptor() ([]byte, []int)

func (*WorldData) GetIP

func (m *WorldData) GetIP() string

func (*WorldData) GetPort

func (m *WorldData) GetPort() int32

func (*WorldData) GetWorldName

func (m *WorldData) GetWorldName() string

func (*WorldData) GetWorldNumber

func (m *WorldData) GetWorldNumber() int32

func (*WorldData) GetWorldStatus

func (m *WorldData) GetWorldStatus() int32

func (*WorldData) ProtoMessage

func (*WorldData) ProtoMessage()

func (*WorldData) Reset

func (m *WorldData) Reset()

func (*WorldData) String

func (m *WorldData) String() string

func (*WorldData) XXX_DiscardUnknown

func (m *WorldData) XXX_DiscardUnknown()

func (*WorldData) XXX_Marshal

func (m *WorldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WorldData) XXX_Merge

func (m *WorldData) XXX_Merge(src proto.Message)

func (*WorldData) XXX_Size

func (m *WorldData) XXX_Size() int

func (*WorldData) XXX_Unmarshal

func (m *WorldData) XXX_Unmarshal(b []byte) error

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.

Jump to

Keyboard shortcuts

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