v1

package
v0.0.0-...-e57938a Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SatelliteService_GetSatellitePositions_FullMethodName = "/satellite.v1.SatelliteService/GetSatellitePositions"
	SatelliteService_GetSatelliteDetail_FullMethodName    = "/satellite.v1.SatelliteService/GetSatelliteDetail"
)

Variables

View Source
var File_proto_satellite_v1_satellite_proto protoreflect.FileDescriptor
View Source
var SatelliteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "satellite.v1.SatelliteService",
	HandlerType: (*SatelliteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSatellitePositions",
			Handler:    _SatelliteService_GetSatellitePositions_Handler,
		},
		{
			MethodName: "GetSatelliteDetail",
			Handler:    _SatelliteService_GetSatelliteDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/satellite/v1/satellite.proto",
}

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

Functions

func RegisterSatelliteServiceHandler

func RegisterSatelliteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSatelliteServiceHandler registers the http handlers for service SatelliteService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSatelliteServiceHandlerClient

func RegisterSatelliteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SatelliteServiceClient) error

RegisterSatelliteServiceHandlerClient registers the http handlers for service SatelliteService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SatelliteServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SatelliteServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SatelliteServiceClient" to call the correct interceptors.

func RegisterSatelliteServiceHandlerFromEndpoint

func RegisterSatelliteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSatelliteServiceHandlerFromEndpoint is same as RegisterSatelliteServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSatelliteServiceHandlerServer

func RegisterSatelliteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SatelliteServiceServer) error

RegisterSatelliteServiceHandlerServer registers the http handlers for service SatelliteService to "mux". UnaryRPC :call SatelliteServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSatelliteServiceHandlerFromEndpoint instead.

func RegisterSatelliteServiceServer

func RegisterSatelliteServiceServer(s grpc.ServiceRegistrar, srv SatelliteServiceServer)

Types

type GetSatellitePositionsRequest

type GetSatellitePositionsRequest struct {
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSatellitePositionsRequest) Descriptor deprecated

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

Deprecated: Use GetSatellitePositionsRequest.ProtoReflect.Descriptor instead.

func (*GetSatellitePositionsRequest) GetTime

func (*GetSatellitePositionsRequest) ProtoMessage

func (*GetSatellitePositionsRequest) ProtoMessage()

func (*GetSatellitePositionsRequest) ProtoReflect

func (*GetSatellitePositionsRequest) Reset

func (x *GetSatellitePositionsRequest) Reset()

func (*GetSatellitePositionsRequest) String

type GetSatellitePositionsResponse

type GetSatellitePositionsResponse struct {
	Satellites []*Satellite `protobuf:"bytes,1,rep,name=satellites,proto3" json:"satellites,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSatellitePositionsResponse) Descriptor deprecated

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

Deprecated: Use GetSatellitePositionsResponse.ProtoReflect.Descriptor instead.

func (*GetSatellitePositionsResponse) GetSatellites

func (x *GetSatellitePositionsResponse) GetSatellites() []*Satellite

func (*GetSatellitePositionsResponse) ProtoMessage

func (*GetSatellitePositionsResponse) ProtoMessage()

func (*GetSatellitePositionsResponse) ProtoReflect

func (*GetSatellitePositionsResponse) Reset

func (x *GetSatellitePositionsResponse) Reset()

func (*GetSatellitePositionsResponse) String

type Satellite

type Satellite struct {
	Id       string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Lat      float64 `protobuf:"fixed64,2,opt,name=lat,proto3" json:"lat,omitempty"`
	Lon      float64 `protobuf:"fixed64,3,opt,name=lon,proto3" json:"lon,omitempty"`
	Altitude float64 `protobuf:"fixed64,4,opt,name=altitude,proto3" json:"altitude,omitempty"`
	Velocity float64 `protobuf:"fixed64,5,opt,name=velocity,proto3" json:"velocity,omitempty"`
	Name     string  `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Satellite) Descriptor deprecated

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

Deprecated: Use Satellite.ProtoReflect.Descriptor instead.

func (*Satellite) GetAltitude

func (x *Satellite) GetAltitude() float64

func (*Satellite) GetId

func (x *Satellite) GetId() string

func (*Satellite) GetLat

func (x *Satellite) GetLat() float64

func (*Satellite) GetLon

func (x *Satellite) GetLon() float64

func (*Satellite) GetName

func (x *Satellite) GetName() string

func (*Satellite) GetVelocity

func (x *Satellite) GetVelocity() float64

func (*Satellite) ProtoMessage

func (*Satellite) ProtoMessage()

func (*Satellite) ProtoReflect

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

func (*Satellite) Reset

func (x *Satellite) Reset()

func (*Satellite) String

func (x *Satellite) String() string

type SatelliteDetail

type SatelliteDetail struct {
	CcsdsOmmVers       string   `protobuf:"bytes,1,opt,name=ccsds_omm_vers,json=ccsdsOmmVers,proto3" json:"ccsds_omm_vers,omitempty"`
	Comment            string   `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	CreationDate       string   `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
	Originator         string   `protobuf:"bytes,4,opt,name=originator,proto3" json:"originator,omitempty"`
	ObjectName         string   `protobuf:"bytes,5,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
	ObjectId           string   `protobuf:"bytes,6,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	CenterName         string   `protobuf:"bytes,7,opt,name=center_name,json=centerName,proto3" json:"center_name,omitempty"`
	RefFrame           string   `protobuf:"bytes,8,opt,name=ref_frame,json=refFrame,proto3" json:"ref_frame,omitempty"`
	TimeSystem         string   `protobuf:"bytes,9,opt,name=time_system,json=timeSystem,proto3" json:"time_system,omitempty"`
	MeanElementTheory  string   `protobuf:"bytes,10,opt,name=mean_element_theory,json=meanElementTheory,proto3" json:"mean_element_theory,omitempty"`
	Epoch              string   `protobuf:"bytes,11,opt,name=epoch,proto3" json:"epoch,omitempty"`
	MeanMotion         string   `protobuf:"bytes,12,opt,name=mean_motion,json=meanMotion,proto3" json:"mean_motion,omitempty"`
	Eccentricity       string   `protobuf:"bytes,13,opt,name=eccentricity,proto3" json:"eccentricity,omitempty"`
	Inclination        string   `protobuf:"bytes,14,opt,name=inclination,proto3" json:"inclination,omitempty"`
	RaOfAscNode        string   `protobuf:"bytes,15,opt,name=ra_of_asc_node,json=raOfAscNode,proto3" json:"ra_of_asc_node,omitempty"`
	ArgOfPericenter    string   `protobuf:"bytes,16,opt,name=arg_of_pericenter,json=argOfPericenter,proto3" json:"arg_of_pericenter,omitempty"`
	MeanAnomaly        string   `protobuf:"bytes,17,opt,name=mean_anomaly,json=meanAnomaly,proto3" json:"mean_anomaly,omitempty"`
	EphemerisType      string   `protobuf:"bytes,18,opt,name=ephemeris_type,json=ephemerisType,proto3" json:"ephemeris_type,omitempty"`
	ClassificationType string   `protobuf:"bytes,19,opt,name=classification_type,json=classificationType,proto3" json:"classification_type,omitempty"`
	NoradCatId         string   `protobuf:"bytes,20,opt,name=norad_cat_id,json=noradCatId,proto3" json:"norad_cat_id,omitempty"`
	ElementSetNo       string   `protobuf:"bytes,21,opt,name=element_set_no,json=elementSetNo,proto3" json:"element_set_no,omitempty"`
	RevAtEpoch         string   `protobuf:"bytes,22,opt,name=rev_at_epoch,json=revAtEpoch,proto3" json:"rev_at_epoch,omitempty"`
	Bstar              string   `protobuf:"bytes,23,opt,name=bstar,proto3" json:"bstar,omitempty"`
	MeanMotionDot      string   `protobuf:"bytes,24,opt,name=mean_motion_dot,json=meanMotionDot,proto3" json:"mean_motion_dot,omitempty"`
	MeanMotionDdot     string   `protobuf:"bytes,25,opt,name=mean_motion_ddot,json=meanMotionDdot,proto3" json:"mean_motion_ddot,omitempty"`
	SemimajorAxis      string   `protobuf:"bytes,26,opt,name=semimajor_axis,json=semimajorAxis,proto3" json:"semimajor_axis,omitempty"`
	Period             string   `protobuf:"bytes,27,opt,name=period,proto3" json:"period,omitempty"`
	Apoapsis           string   `protobuf:"bytes,28,opt,name=apoapsis,proto3" json:"apoapsis,omitempty"`
	Periapsis          string   `protobuf:"bytes,29,opt,name=periapsis,proto3" json:"periapsis,omitempty"`
	ObjectType         string   `protobuf:"bytes,30,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	RcsSize            string   `protobuf:"bytes,31,opt,name=rcs_size,json=rcsSize,proto3" json:"rcs_size,omitempty"`
	CountryCode        string   `protobuf:"bytes,32,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	LaunchDate         string   `protobuf:"bytes,33,opt,name=launch_date,json=launchDate,proto3" json:"launch_date,omitempty"`
	Site               string   `protobuf:"bytes,34,opt,name=site,proto3" json:"site,omitempty"`
	DecayDate          string   `protobuf:"bytes,35,opt,name=decay_date,json=decayDate,proto3" json:"decay_date,omitempty"`
	File               string   `protobuf:"bytes,36,opt,name=file,proto3" json:"file,omitempty"`
	GpId               string   `protobuf:"bytes,37,opt,name=gp_id,json=gpId,proto3" json:"gp_id,omitempty"`
	TleLine0           string   `protobuf:"bytes,38,opt,name=tle_line0,json=tleLine0,proto3" json:"tle_line0,omitempty"`
	TleLine1           string   `protobuf:"bytes,39,opt,name=tle_line1,json=tleLine1,proto3" json:"tle_line1,omitempty"`
	TleLine2           string   `protobuf:"bytes,40,opt,name=tle_line2,json=tleLine2,proto3" json:"tle_line2,omitempty"`
	Groups             []string `protobuf:"bytes,41,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*SatelliteDetail) Descriptor deprecated

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

Deprecated: Use SatelliteDetail.ProtoReflect.Descriptor instead.

func (*SatelliteDetail) GetApoapsis

func (x *SatelliteDetail) GetApoapsis() string

func (*SatelliteDetail) GetArgOfPericenter

func (x *SatelliteDetail) GetArgOfPericenter() string

func (*SatelliteDetail) GetBstar

func (x *SatelliteDetail) GetBstar() string

func (*SatelliteDetail) GetCcsdsOmmVers

func (x *SatelliteDetail) GetCcsdsOmmVers() string

func (*SatelliteDetail) GetCenterName

func (x *SatelliteDetail) GetCenterName() string

func (*SatelliteDetail) GetClassificationType

func (x *SatelliteDetail) GetClassificationType() string

func (*SatelliteDetail) GetComment

func (x *SatelliteDetail) GetComment() string

func (*SatelliteDetail) GetCountryCode

func (x *SatelliteDetail) GetCountryCode() string

func (*SatelliteDetail) GetCreationDate

func (x *SatelliteDetail) GetCreationDate() string

func (*SatelliteDetail) GetDecayDate

func (x *SatelliteDetail) GetDecayDate() string

func (*SatelliteDetail) GetEccentricity

func (x *SatelliteDetail) GetEccentricity() string

func (*SatelliteDetail) GetElementSetNo

func (x *SatelliteDetail) GetElementSetNo() string

func (*SatelliteDetail) GetEphemerisType

func (x *SatelliteDetail) GetEphemerisType() string

func (*SatelliteDetail) GetEpoch

func (x *SatelliteDetail) GetEpoch() string

func (*SatelliteDetail) GetFile

func (x *SatelliteDetail) GetFile() string

func (*SatelliteDetail) GetGpId

func (x *SatelliteDetail) GetGpId() string

func (*SatelliteDetail) GetGroups

func (x *SatelliteDetail) GetGroups() []string

func (*SatelliteDetail) GetInclination

func (x *SatelliteDetail) GetInclination() string

func (*SatelliteDetail) GetLaunchDate

func (x *SatelliteDetail) GetLaunchDate() string

func (*SatelliteDetail) GetMeanAnomaly

func (x *SatelliteDetail) GetMeanAnomaly() string

func (*SatelliteDetail) GetMeanElementTheory

func (x *SatelliteDetail) GetMeanElementTheory() string

func (*SatelliteDetail) GetMeanMotion

func (x *SatelliteDetail) GetMeanMotion() string

func (*SatelliteDetail) GetMeanMotionDdot

func (x *SatelliteDetail) GetMeanMotionDdot() string

func (*SatelliteDetail) GetMeanMotionDot

func (x *SatelliteDetail) GetMeanMotionDot() string

func (*SatelliteDetail) GetNoradCatId

func (x *SatelliteDetail) GetNoradCatId() string

func (*SatelliteDetail) GetObjectId

func (x *SatelliteDetail) GetObjectId() string

func (*SatelliteDetail) GetObjectName

func (x *SatelliteDetail) GetObjectName() string

func (*SatelliteDetail) GetObjectType

func (x *SatelliteDetail) GetObjectType() string

func (*SatelliteDetail) GetOriginator

func (x *SatelliteDetail) GetOriginator() string

func (*SatelliteDetail) GetPeriapsis

func (x *SatelliteDetail) GetPeriapsis() string

func (*SatelliteDetail) GetPeriod

func (x *SatelliteDetail) GetPeriod() string

func (*SatelliteDetail) GetRaOfAscNode

func (x *SatelliteDetail) GetRaOfAscNode() string

func (*SatelliteDetail) GetRcsSize

func (x *SatelliteDetail) GetRcsSize() string

func (*SatelliteDetail) GetRefFrame

func (x *SatelliteDetail) GetRefFrame() string

func (*SatelliteDetail) GetRevAtEpoch

func (x *SatelliteDetail) GetRevAtEpoch() string

func (*SatelliteDetail) GetSemimajorAxis

func (x *SatelliteDetail) GetSemimajorAxis() string

func (*SatelliteDetail) GetSite

func (x *SatelliteDetail) GetSite() string

func (*SatelliteDetail) GetTimeSystem

func (x *SatelliteDetail) GetTimeSystem() string

func (*SatelliteDetail) GetTleLine0

func (x *SatelliteDetail) GetTleLine0() string

func (*SatelliteDetail) GetTleLine1

func (x *SatelliteDetail) GetTleLine1() string

func (*SatelliteDetail) GetTleLine2

func (x *SatelliteDetail) GetTleLine2() string

func (*SatelliteDetail) ProtoMessage

func (*SatelliteDetail) ProtoMessage()

func (*SatelliteDetail) ProtoReflect

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

func (*SatelliteDetail) Reset

func (x *SatelliteDetail) Reset()

func (*SatelliteDetail) String

func (x *SatelliteDetail) String() string

type SatelliteServiceClient

type SatelliteServiceClient interface {
	GetSatellitePositions(ctx context.Context, in *GetSatellitePositionsRequest, opts ...grpc.CallOption) (*GetSatellitePositionsResponse, error)
	GetSatelliteDetail(ctx context.Context, in *Satellite, opts ...grpc.CallOption) (*SatelliteDetail, error)
}

SatelliteServiceClient is the client API for SatelliteService 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 SatelliteServiceServer

type SatelliteServiceServer interface {
	GetSatellitePositions(context.Context, *GetSatellitePositionsRequest) (*GetSatellitePositionsResponse, error)
	GetSatelliteDetail(context.Context, *Satellite) (*SatelliteDetail, error)
	// contains filtered or unexported methods
}

SatelliteServiceServer is the server API for SatelliteService service. All implementations must embed UnimplementedSatelliteServiceServer for forward compatibility

type UnimplementedSatelliteServiceServer

type UnimplementedSatelliteServiceServer struct {
}

UnimplementedSatelliteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSatelliteServiceServer) GetSatelliteDetail

type UnsafeSatelliteServiceServer

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

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

Jump to

Keyboard shortcuts

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