world

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_dcs_world_v0_world_proto protoreflect.FileDescriptor
View Source
var WorldService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dcs.world.v0.WorldService",
	HandlerType: (*WorldServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAirbases",
			Handler:    _WorldService_GetAirbases_Handler,
		},
		{
			MethodName: "GetMarkPanels",
			Handler:    _WorldService_GetMarkPanels_Handler,
		},
		{
			MethodName: "GetTheatre",
			Handler:    _WorldService_GetTheatre_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dcs/world/v0/world.proto",
}

WorldService_ServiceDesc is the grpc.ServiceDesc for WorldService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWorldServiceServer

func RegisterWorldServiceServer(s grpc.ServiceRegistrar, srv WorldServiceServer)

Types

type GetAirbasesRequest

type GetAirbasesRequest struct {
	Coalition common.Coalition `protobuf:"varint,1,opt,name=coalition,proto3,enum=dcs.common.v0.Coalition" json:"coalition,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAirbasesRequest) Descriptor deprecated

func (*GetAirbasesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAirbasesRequest.ProtoReflect.Descriptor instead.

func (*GetAirbasesRequest) GetCoalition

func (x *GetAirbasesRequest) GetCoalition() common.Coalition

func (*GetAirbasesRequest) ProtoMessage

func (*GetAirbasesRequest) ProtoMessage()

func (*GetAirbasesRequest) ProtoReflect

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

func (*GetAirbasesRequest) Reset

func (x *GetAirbasesRequest) Reset()

func (*GetAirbasesRequest) String

func (x *GetAirbasesRequest) String() string

type GetAirbasesResponse

type GetAirbasesResponse struct {
	Airbases []*common.Airbase `protobuf:"bytes,1,rep,name=airbases,proto3" json:"airbases,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAirbasesResponse) Descriptor deprecated

func (*GetAirbasesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAirbasesResponse.ProtoReflect.Descriptor instead.

func (*GetAirbasesResponse) GetAirbases

func (x *GetAirbasesResponse) GetAirbases() []*common.Airbase

func (*GetAirbasesResponse) ProtoMessage

func (*GetAirbasesResponse) ProtoMessage()

func (*GetAirbasesResponse) ProtoReflect

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

func (*GetAirbasesResponse) Reset

func (x *GetAirbasesResponse) Reset()

func (*GetAirbasesResponse) String

func (x *GetAirbasesResponse) String() string

type GetMarkPanelsRequest

type GetMarkPanelsRequest struct {
	// contains filtered or unexported fields
}

func (*GetMarkPanelsRequest) Descriptor deprecated

func (*GetMarkPanelsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMarkPanelsRequest.ProtoReflect.Descriptor instead.

func (*GetMarkPanelsRequest) ProtoMessage

func (*GetMarkPanelsRequest) ProtoMessage()

func (*GetMarkPanelsRequest) ProtoReflect

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

func (*GetMarkPanelsRequest) Reset

func (x *GetMarkPanelsRequest) Reset()

func (*GetMarkPanelsRequest) String

func (x *GetMarkPanelsRequest) String() string

type GetMarkPanelsResponse

type GetMarkPanelsResponse struct {
	MarkPanels []*common.MarkPanel `protobuf:"bytes,1,rep,name=mark_panels,json=markPanels,proto3" json:"mark_panels,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMarkPanelsResponse) Descriptor deprecated

func (*GetMarkPanelsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMarkPanelsResponse.ProtoReflect.Descriptor instead.

func (*GetMarkPanelsResponse) GetMarkPanels

func (x *GetMarkPanelsResponse) GetMarkPanels() []*common.MarkPanel

func (*GetMarkPanelsResponse) ProtoMessage

func (*GetMarkPanelsResponse) ProtoMessage()

func (*GetMarkPanelsResponse) ProtoReflect

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

func (*GetMarkPanelsResponse) Reset

func (x *GetMarkPanelsResponse) Reset()

func (*GetMarkPanelsResponse) String

func (x *GetMarkPanelsResponse) String() string

type GetTheatreRequest

type GetTheatreRequest struct {
	// contains filtered or unexported fields
}

func (*GetTheatreRequest) Descriptor deprecated

func (*GetTheatreRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTheatreRequest.ProtoReflect.Descriptor instead.

func (*GetTheatreRequest) ProtoMessage

func (*GetTheatreRequest) ProtoMessage()

func (*GetTheatreRequest) ProtoReflect

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

func (*GetTheatreRequest) Reset

func (x *GetTheatreRequest) Reset()

func (*GetTheatreRequest) String

func (x *GetTheatreRequest) String() string

type GetTheatreResponse

type GetTheatreResponse struct {
	Theatre string `protobuf:"bytes,1,opt,name=theatre,proto3" json:"theatre,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTheatreResponse) Descriptor deprecated

func (*GetTheatreResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTheatreResponse.ProtoReflect.Descriptor instead.

func (*GetTheatreResponse) GetTheatre

func (x *GetTheatreResponse) GetTheatre() string

func (*GetTheatreResponse) ProtoMessage

func (*GetTheatreResponse) ProtoMessage()

func (*GetTheatreResponse) ProtoReflect

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

func (*GetTheatreResponse) Reset

func (x *GetTheatreResponse) Reset()

func (*GetTheatreResponse) String

func (x *GetTheatreResponse) String() string

type UnimplementedWorldServiceServer

type UnimplementedWorldServiceServer struct {
}

UnimplementedWorldServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWorldServiceServer) GetAirbases

func (UnimplementedWorldServiceServer) GetMarkPanels

func (UnimplementedWorldServiceServer) GetTheatre

type UnsafeWorldServiceServer

type UnsafeWorldServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWorldServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorldServiceServer will result in compilation errors.

type WorldServiceClient

type WorldServiceClient interface {
	// https://wiki.hoggitworld.com/view/DCS_func_getAirbases
	GetAirbases(ctx context.Context, in *GetAirbasesRequest, opts ...grpc.CallOption) (*GetAirbasesResponse, error)
	// https://wiki.hoggitworld.com/view/DCS_func_getMarkPanels
	GetMarkPanels(ctx context.Context, in *GetMarkPanelsRequest, opts ...grpc.CallOption) (*GetMarkPanelsResponse, error)
	// Returns the theatre (Map name) of the mission
	GetTheatre(ctx context.Context, in *GetTheatreRequest, opts ...grpc.CallOption) (*GetTheatreResponse, error)
}

WorldServiceClient is the client API for WorldService 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.

type WorldServiceServer

type WorldServiceServer interface {
	// https://wiki.hoggitworld.com/view/DCS_func_getAirbases
	GetAirbases(context.Context, *GetAirbasesRequest) (*GetAirbasesResponse, error)
	// https://wiki.hoggitworld.com/view/DCS_func_getMarkPanels
	GetMarkPanels(context.Context, *GetMarkPanelsRequest) (*GetMarkPanelsResponse, error)
	// Returns the theatre (Map name) of the mission
	GetTheatre(context.Context, *GetTheatreRequest) (*GetTheatreResponse, error)
	// contains filtered or unexported methods
}

WorldServiceServer is the server API for WorldService service. All implementations must embed UnimplementedWorldServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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