Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDarkGRpcServer(s grpc.ServiceRegistrar, srv DarkGRpcServer)
- type Base
- func (*Base) Descriptor() ([]byte, []int)deprecated
- func (x *Base) GetArchetypes() []string
- func (x *Base) GetBGCSBaseRunBy() string
- func (x *Base) GetFactionName() string
- func (x *Base) GetFile() string
- func (x *Base) GetInfocardID() int32
- func (x *Base) GetIsPob() bool
- func (x *Base) GetIsTransportUnreachable() bool
- func (x *Base) GetName() string
- func (x *Base) GetNickname() string
- func (x *Base) GetPos() *Pos
- func (x *Base) GetReachable() bool
- func (x *Base) GetRegion() string
- func (x *Base) GetSectorCoord() string
- func (x *Base) GetStridName() int32
- func (x *Base) GetSystem() string
- func (x *Base) GetSystemNickname() string
- func (*Base) ProtoMessage()
- func (x *Base) ProtoReflect() protoreflect.Message
- func (x *Base) Reset()
- func (x *Base) String() string
- type DarkGRpcClient
- type DarkGRpcServer
- type Empty
- type GetBasesReply
- type Pos
- type UnimplementedDarkGRpcServer
- type UnsafeDarkGRpcServer
Constants ¶
const (
DarkGRpc_GetBases_FullMethodName = "/darkgrpc.DarkGRpc/GetBases"
)
Variables ¶
var DarkGRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "darkgrpc.DarkGRpc", HandlerType: (*DarkGRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBases", Handler: _DarkGRpc_GetBases_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example.proto", }
DarkGRpc_ServiceDesc is the grpc.ServiceDesc for DarkGRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDarkGRpcServer ¶
func RegisterDarkGRpcServer(s grpc.ServiceRegistrar, srv DarkGRpcServer)
Types ¶
type Base ¶
type Base struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // Name string `json:"name"` // Infocard Name
Archetypes []string `protobuf:"bytes,2,rep,name=Archetypes,proto3" json:"Archetypes,omitempty"` // Archetypes []string `json:"archetypes"` // Base Archetypes
Nickname string `protobuf:"bytes,3,opt,name=Nickname,proto3" json:"Nickname,omitempty"` // Nickname cfg.BaseUniNick `json:"nickname"`
FactionName string `protobuf:"bytes,5,opt,name=FactionName,proto3" json:"FactionName,omitempty"` // FactionName string `json:"faction_nickname"`
System string `protobuf:"bytes,6,opt,name=System,proto3" json:"System,omitempty"` // System string `json:"system_name"`
SystemNickname string `protobuf:"bytes,7,opt,name=SystemNickname,proto3" json:"SystemNickname,omitempty"` // SystemNickname string `json:"system_nickname"`
Region string `protobuf:"bytes,9,opt,name=Region,proto3" json:"Region,omitempty"` // Region string `json:"region_name"`
StridName int32 `protobuf:"varint,10,opt,name=StridName,proto3" json:"StridName,omitempty"` // StridName int `json:"strid_name"`
InfocardID int32 `protobuf:"varint,11,opt,name=InfocardID,proto3" json:"InfocardID,omitempty"` // InfocardID int `json:"infocard_id"`
// InfocardKey InfocardKey
File string `protobuf:"bytes,12,opt,name=File,proto3" json:"File,omitempty"` // File utils_types.FilePath `json:"file"`
BGCSBaseRunBy string `protobuf:"bytes,13,opt,name=BGCS_base_run_by,json=BGCSBaseRunBy,proto3" json:"BGCS_base_run_by,omitempty"` // BGCS_base_run_by string
// MarketGoodsPerNick map[CommodityKey]*MarketGood `json:"-" swaggerignore:"true"`
Pos *Pos `protobuf:"bytes,14,opt,name=Pos,proto3" json:"Pos,omitempty"` // Pos cfg.Vector `json:"pos"`
SectorCoord string `protobuf:"bytes,15,opt,name=SectorCoord,proto3" json:"SectorCoord,omitempty"` // SectorCoord string `json:"sector_coord"`
IsTransportUnreachable bool `protobuf:"varint,16,opt,name=IsTransportUnreachable,proto3" json:"IsTransportUnreachable,omitempty"` // IsTransportUnreachable bool `json:"is_transport_unreachable"` // Check if base is NOT reachable from manhattan by Transport through Graph method (at Discovery base has to have Transport dockable spheres)
Reachable bool `protobuf:"varint,18,opt,name=Reachable,proto3" json:"Reachable,omitempty"` // Reachable bool `json:"is_reachhable"` // is base IS Rechable by frighter from Manhattan
IsPob bool `protobuf:"varint,19,opt,name=IsPob,proto3" json:"IsPob,omitempty"` // IsPob bool
// contains filtered or unexported fields
}
The response message containing the greetings
func (*Base) Descriptor
deprecated
func (*Base) GetArchetypes ¶
func (*Base) GetBGCSBaseRunBy ¶
func (*Base) GetFactionName ¶
func (*Base) GetInfocardID ¶
func (*Base) GetIsTransportUnreachable ¶
func (*Base) GetNickname ¶
func (*Base) GetReachable ¶
func (*Base) GetSectorCoord ¶
func (*Base) GetStridName ¶
func (*Base) GetSystemNickname ¶
func (*Base) ProtoMessage ¶
func (*Base) ProtoMessage()
func (*Base) ProtoReflect ¶
func (x *Base) ProtoReflect() protoreflect.Message
type DarkGRpcClient ¶
type DarkGRpcClient interface {
// Sends a greeting
GetBases(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetBasesReply, error)
}
DarkGRpcClient is the client API for DarkGRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
The greeter service definition.
func NewDarkGRpcClient ¶
func NewDarkGRpcClient(cc grpc.ClientConnInterface) DarkGRpcClient
type DarkGRpcServer ¶
type DarkGRpcServer interface {
// Sends a greeting
GetBases(context.Context, *Empty) (*GetBasesReply, error)
// contains filtered or unexported methods
}
DarkGRpcServer is the server API for DarkGRpc service. All implementations must embed UnimplementedDarkGRpcServer for forward compatibility.
The greeter service definition.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
The request message containing the user's name.
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetBasesReply ¶
type GetBasesReply struct {
Bases []*Base `protobuf:"bytes,1,rep,name=bases,proto3" json:"bases,omitempty"`
// contains filtered or unexported fields
}
func (*GetBasesReply) Descriptor
deprecated
func (*GetBasesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBasesReply.ProtoReflect.Descriptor instead.
func (*GetBasesReply) GetBases ¶
func (x *GetBasesReply) GetBases() []*Base
func (*GetBasesReply) ProtoMessage ¶
func (*GetBasesReply) ProtoMessage()
func (*GetBasesReply) ProtoReflect ¶
func (x *GetBasesReply) ProtoReflect() protoreflect.Message
func (*GetBasesReply) Reset ¶
func (x *GetBasesReply) Reset()
func (*GetBasesReply) String ¶
func (x *GetBasesReply) String() string
type Pos ¶
type Pos struct {
X float64 `protobuf:"fixed64,1,opt,name=X,proto3" json:"X,omitempty"`
Y float64 `protobuf:"fixed64,2,opt,name=Y,proto3" json:"Y,omitempty"`
Z float64 `protobuf:"fixed64,3,opt,name=Z,proto3" json:"Z,omitempty"`
// contains filtered or unexported fields
}
func (*Pos) Descriptor
deprecated
func (*Pos) ProtoMessage ¶
func (*Pos) ProtoMessage()
func (*Pos) ProtoReflect ¶
func (x *Pos) ProtoReflect() protoreflect.Message
type UnimplementedDarkGRpcServer ¶
type UnimplementedDarkGRpcServer struct{}
UnimplementedDarkGRpcServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDarkGRpcServer) GetBases ¶
func (UnimplementedDarkGRpcServer) GetBases(context.Context, *Empty) (*GetBasesReply, error)
type UnsafeDarkGRpcServer ¶
type UnsafeDarkGRpcServer interface {
// contains filtered or unexported methods
}
UnsafeDarkGRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DarkGRpcServer will result in compilation errors.