darkgrpc

package
v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DarkGRpc_GetBases_FullMethodName = "/darkgrpc.DarkGRpc/GetBases"
)

Variables

View Source
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)

View Source
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"`
	NicknameHash       int64    `protobuf:"varint,4,opt,name=NicknameHash,proto3" json:"NicknameHash,omitempty"`             //   NicknameHash       flhash.HashCode `json:"nickname_hash" format:"int64"` // Flhash of 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"`
	SystemNicknameHash int64    `protobuf:"varint,8,opt,name=SystemNicknameHash,proto3" json:"SystemNicknameHash,omitempty"` //   SystemNicknameHash flhash.HashCode `json:"system_nickname_hash" format:"int64"`
	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) Descriptor() ([]byte, []int)

Deprecated: Use Base.ProtoReflect.Descriptor instead.

func (*Base) GetArchetypes

func (x *Base) GetArchetypes() []string

func (*Base) GetBGCSBaseRunBy

func (x *Base) GetBGCSBaseRunBy() string

func (*Base) GetFactionName

func (x *Base) GetFactionName() string

func (*Base) GetFile

func (x *Base) GetFile() string

func (*Base) GetInfocardID

func (x *Base) GetInfocardID() int32

func (*Base) GetIsPob

func (x *Base) GetIsPob() bool

func (*Base) GetIsTransportUnreachable

func (x *Base) GetIsTransportUnreachable() bool

func (*Base) GetName

func (x *Base) GetName() string

func (*Base) GetNickname

func (x *Base) GetNickname() string

func (*Base) GetNicknameHash

func (x *Base) GetNicknameHash() int64

func (*Base) GetPos

func (x *Base) GetPos() *Pos

func (*Base) GetReachable

func (x *Base) GetReachable() bool

func (*Base) GetRegion

func (x *Base) GetRegion() string

func (*Base) GetSectorCoord

func (x *Base) GetSectorCoord() string

func (*Base) GetStridName

func (x *Base) GetStridName() int32

func (*Base) GetSystem

func (x *Base) GetSystem() string

func (*Base) GetSystemNickname

func (x *Base) GetSystemNickname() string

func (*Base) GetSystemNicknameHash

func (x *Base) GetSystemNicknameHash() int64

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

func (x *Base) ProtoReflect() protoreflect.Message

func (*Base) Reset

func (x *Base) Reset()

func (*Base) String

func (x *Base) String() string

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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

Deprecated: Use Pos.ProtoReflect.Descriptor instead.

func (*Pos) GetX

func (x *Pos) GetX() float64

func (*Pos) GetY

func (x *Pos) GetY() float64

func (*Pos) GetZ

func (x *Pos) GetZ() float64

func (*Pos) ProtoMessage

func (*Pos) ProtoMessage()

func (*Pos) ProtoReflect

func (x *Pos) ProtoReflect() protoreflect.Message

func (*Pos) Reset

func (x *Pos) Reset()

func (*Pos) String

func (x *Pos) String() string

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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