pb

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	BallisticService_Solve_FullMethodName             = "/pb.BallisticService/Solve"
	BallisticService_CreateRifle_FullMethodName       = "/pb.BallisticService/CreateRifle"
	BallisticService_ListRifles_FullMethodName        = "/pb.BallisticService/ListRifles"
	BallisticService_CreateLoad_FullMethodName        = "/pb.BallisticService/CreateLoad"
	BallisticService_ListLoads_FullMethodName         = "/pb.BallisticService/ListLoads"
	BallisticService_CreateEnvironment_FullMethodName = "/pb.BallisticService/CreateEnvironment"
	BallisticService_ListEnvironments_FullMethodName  = "/pb.BallisticService/ListEnvironments"
	BallisticService_CreateScenario_FullMethodName    = "/pb.BallisticService/CreateScenario"
	BallisticService_ListScenarios_FullMethodName     = "/pb.BallisticService/ListScenarios"
)

Variables

View Source
var (
	DragFunction_name = map[int32]string{
		0: "DRAG_FUNCTION_UNSPECIFIED",
		1: "DRAG_FUNCTION_G1",
		7: "DRAG_FUNCTION_G7",
	}
	DragFunction_value = map[string]int32{
		"DRAG_FUNCTION_UNSPECIFIED": 0,
		"DRAG_FUNCTION_G1":          1,
		"DRAG_FUNCTION_G7":          7,
	}
)

Enum value maps for DragFunction.

View Source
var BallisticService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.BallisticService",
	HandlerType: (*BallisticServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Solve",
			Handler:    _BallisticService_Solve_Handler,
		},
		{
			MethodName: "CreateRifle",
			Handler:    _BallisticService_CreateRifle_Handler,
		},
		{
			MethodName: "ListRifles",
			Handler:    _BallisticService_ListRifles_Handler,
		},
		{
			MethodName: "CreateLoad",
			Handler:    _BallisticService_CreateLoad_Handler,
		},
		{
			MethodName: "ListLoads",
			Handler:    _BallisticService_ListLoads_Handler,
		},
		{
			MethodName: "CreateEnvironment",
			Handler:    _BallisticService_CreateEnvironment_Handler,
		},
		{
			MethodName: "ListEnvironments",
			Handler:    _BallisticService_ListEnvironments_Handler,
		},
		{
			MethodName: "CreateScenario",
			Handler:    _BallisticService_CreateScenario_Handler,
		},
		{
			MethodName: "ListScenarios",
			Handler:    _BallisticService_ListScenarios_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/service.proto",
}

BallisticService_ServiceDesc is the grpc.ServiceDesc for BallisticService 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_pb_environment_proto protoreflect.FileDescriptor
View Source
var File_pb_load_proto protoreflect.FileDescriptor
View Source
var File_pb_rifle_proto protoreflect.FileDescriptor
View Source
var File_pb_scenario_proto protoreflect.FileDescriptor
View Source
var File_pb_service_proto protoreflect.FileDescriptor
View Source
var File_pb_solve_proto protoreflect.FileDescriptor

Functions

func RegisterBallisticServiceHandler

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

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

func RegisterBallisticServiceHandlerClient

func RegisterBallisticServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BallisticServiceClient) error

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

func RegisterBallisticServiceHandlerFromEndpoint

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

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

func RegisterBallisticServiceHandlerServer

func RegisterBallisticServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BallisticServiceServer) error

RegisterBallisticServiceHandlerServer registers the http handlers for service BallisticService to "mux". UnaryRPC :call BallisticServiceServer 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 RegisterBallisticServiceHandlerFromEndpoint instead.

func RegisterBallisticServiceServer

func RegisterBallisticServiceServer(s grpc.ServiceRegistrar, srv BallisticServiceServer)

Types

type BallisticCoefficient

type BallisticCoefficient struct {
	Value    float64      `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	Function DragFunction `protobuf:"varint,2,opt,name=function,proto3,enum=pb.DragFunction" json:"function,omitempty"`
	// contains filtered or unexported fields
}

func (*BallisticCoefficient) Descriptor deprecated

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

Deprecated: Use BallisticCoefficient.ProtoReflect.Descriptor instead.

func (*BallisticCoefficient) GetFunction

func (x *BallisticCoefficient) GetFunction() DragFunction

func (*BallisticCoefficient) GetValue

func (x *BallisticCoefficient) GetValue() float64

func (*BallisticCoefficient) ProtoMessage

func (*BallisticCoefficient) ProtoMessage()

func (*BallisticCoefficient) ProtoReflect

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

func (*BallisticCoefficient) Reset

func (x *BallisticCoefficient) Reset()

func (*BallisticCoefficient) String

func (x *BallisticCoefficient) String() string

type BallisticServiceClient

type BallisticServiceClient interface {
	Solve(ctx context.Context, in *SolveRequest, opts ...grpc.CallOption) (*SolveResponse, error)
	// Rifle Methods
	CreateRifle(ctx context.Context, in *CreateRifleRequest, opts ...grpc.CallOption) (*CreateRifleResponse, error)
	ListRifles(ctx context.Context, in *ListRiflesRequest, opts ...grpc.CallOption) (*ListRiflesResponse, error)
	// Load Methods
	CreateLoad(ctx context.Context, in *CreateLoadRequest, opts ...grpc.CallOption) (*CreateLoadResponse, error)
	ListLoads(ctx context.Context, in *ListLoadsRequest, opts ...grpc.CallOption) (*ListLoadsResponse, error)
	// Environment Methods
	CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*CreateEnvironmentResponse, error)
	ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error)
	// Scenario Methods
	CreateScenario(ctx context.Context, in *CreateScenarioRequest, opts ...grpc.CallOption) (*CreateScenarioResponse, error)
	ListScenarios(ctx context.Context, in *ListScenariosRequest, opts ...grpc.CallOption) (*ListScenariosResponse, error)
}

BallisticServiceClient is the client API for BallisticService 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 BallisticServiceServer

type BallisticServiceServer interface {
	Solve(context.Context, *SolveRequest) (*SolveResponse, error)
	// Rifle Methods
	CreateRifle(context.Context, *CreateRifleRequest) (*CreateRifleResponse, error)
	ListRifles(context.Context, *ListRiflesRequest) (*ListRiflesResponse, error)
	// Load Methods
	CreateLoad(context.Context, *CreateLoadRequest) (*CreateLoadResponse, error)
	ListLoads(context.Context, *ListLoadsRequest) (*ListLoadsResponse, error)
	// Environment Methods
	CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*CreateEnvironmentResponse, error)
	ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)
	// Scenario Methods
	CreateScenario(context.Context, *CreateScenarioRequest) (*CreateScenarioResponse, error)
	ListScenarios(context.Context, *ListScenariosRequest) (*ListScenariosResponse, error)
	// contains filtered or unexported methods
}

BallisticServiceServer is the server API for BallisticService service. All implementations must embed UnimplementedBallisticServiceServer for forward compatibility

type Bullet

type Bullet struct {
	Caliber float64               `protobuf:"fixed64,1,opt,name=caliber,proto3" json:"caliber,omitempty"`
	Weight  float64               `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"`
	Bc      *BallisticCoefficient `protobuf:"bytes,3,opt,name=bc,proto3" json:"bc,omitempty"`
	Length  float64               `protobuf:"fixed64,4,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

func (*Bullet) Descriptor deprecated

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

Deprecated: Use Bullet.ProtoReflect.Descriptor instead.

func (*Bullet) GetBc

func (x *Bullet) GetBc() *BallisticCoefficient

func (*Bullet) GetCaliber

func (x *Bullet) GetCaliber() float64

func (*Bullet) GetLength

func (x *Bullet) GetLength() float64

func (*Bullet) GetWeight

func (x *Bullet) GetWeight() float64

func (*Bullet) ProtoMessage

func (*Bullet) ProtoMessage()

func (*Bullet) ProtoReflect

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

func (*Bullet) Reset

func (x *Bullet) Reset()

func (*Bullet) String

func (x *Bullet) String() string

type CreateEnvironmentRequest

type CreateEnvironmentRequest struct {
	Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEnvironmentRequest) Descriptor deprecated

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

Deprecated: Use CreateEnvironmentRequest.ProtoReflect.Descriptor instead.

func (*CreateEnvironmentRequest) GetEnvironment

func (x *CreateEnvironmentRequest) GetEnvironment() *Environment

func (*CreateEnvironmentRequest) ProtoMessage

func (*CreateEnvironmentRequest) ProtoMessage()

func (*CreateEnvironmentRequest) ProtoReflect

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

func (*CreateEnvironmentRequest) Reset

func (x *CreateEnvironmentRequest) Reset()

func (*CreateEnvironmentRequest) String

func (x *CreateEnvironmentRequest) String() string

type CreateEnvironmentResponse

type CreateEnvironmentResponse struct {
	Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEnvironmentResponse) Descriptor deprecated

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

Deprecated: Use CreateEnvironmentResponse.ProtoReflect.Descriptor instead.

func (*CreateEnvironmentResponse) GetEnvironment

func (x *CreateEnvironmentResponse) GetEnvironment() *Environment

func (*CreateEnvironmentResponse) ProtoMessage

func (*CreateEnvironmentResponse) ProtoMessage()

func (*CreateEnvironmentResponse) ProtoReflect

func (*CreateEnvironmentResponse) Reset

func (x *CreateEnvironmentResponse) Reset()

func (*CreateEnvironmentResponse) String

func (x *CreateEnvironmentResponse) String() string

type CreateLoadRequest

type CreateLoadRequest struct {
	Load *Load `protobuf:"bytes,1,opt,name=load,proto3" json:"load,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLoadRequest) Descriptor deprecated

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

Deprecated: Use CreateLoadRequest.ProtoReflect.Descriptor instead.

func (*CreateLoadRequest) GetLoad

func (x *CreateLoadRequest) GetLoad() *Load

func (*CreateLoadRequest) ProtoMessage

func (*CreateLoadRequest) ProtoMessage()

func (*CreateLoadRequest) ProtoReflect

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

func (*CreateLoadRequest) Reset

func (x *CreateLoadRequest) Reset()

func (*CreateLoadRequest) String

func (x *CreateLoadRequest) String() string

type CreateLoadResponse

type CreateLoadResponse struct {
	Load *Load `protobuf:"bytes,1,opt,name=load,proto3" json:"load,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLoadResponse) Descriptor deprecated

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

Deprecated: Use CreateLoadResponse.ProtoReflect.Descriptor instead.

func (*CreateLoadResponse) GetLoad

func (x *CreateLoadResponse) GetLoad() *Load

func (*CreateLoadResponse) ProtoMessage

func (*CreateLoadResponse) ProtoMessage()

func (*CreateLoadResponse) ProtoReflect

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

func (*CreateLoadResponse) Reset

func (x *CreateLoadResponse) Reset()

func (*CreateLoadResponse) String

func (x *CreateLoadResponse) String() string

type CreateRifleRequest

type CreateRifleRequest struct {
	Rifle *Rifle `protobuf:"bytes,1,opt,name=rifle,proto3" json:"rifle,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRifleRequest) Descriptor deprecated

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

Deprecated: Use CreateRifleRequest.ProtoReflect.Descriptor instead.

func (*CreateRifleRequest) GetRifle

func (x *CreateRifleRequest) GetRifle() *Rifle

func (*CreateRifleRequest) ProtoMessage

func (*CreateRifleRequest) ProtoMessage()

func (*CreateRifleRequest) ProtoReflect

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

func (*CreateRifleRequest) Reset

func (x *CreateRifleRequest) Reset()

func (*CreateRifleRequest) String

func (x *CreateRifleRequest) String() string

type CreateRifleResponse

type CreateRifleResponse struct {
	Rifle *Rifle `protobuf:"bytes,1,opt,name=rifle,proto3" json:"rifle,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRifleResponse) Descriptor deprecated

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

Deprecated: Use CreateRifleResponse.ProtoReflect.Descriptor instead.

func (*CreateRifleResponse) GetRifle

func (x *CreateRifleResponse) GetRifle() *Rifle

func (*CreateRifleResponse) ProtoMessage

func (*CreateRifleResponse) ProtoMessage()

func (*CreateRifleResponse) ProtoReflect

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

func (*CreateRifleResponse) Reset

func (x *CreateRifleResponse) Reset()

func (*CreateRifleResponse) String

func (x *CreateRifleResponse) String() string

type CreateScenarioRequest

type CreateScenarioRequest struct {
	Scenario *Scenario `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateScenarioRequest) Descriptor deprecated

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

Deprecated: Use CreateScenarioRequest.ProtoReflect.Descriptor instead.

func (*CreateScenarioRequest) GetScenario

func (x *CreateScenarioRequest) GetScenario() *Scenario

func (*CreateScenarioRequest) ProtoMessage

func (*CreateScenarioRequest) ProtoMessage()

func (*CreateScenarioRequest) ProtoReflect

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

func (*CreateScenarioRequest) Reset

func (x *CreateScenarioRequest) Reset()

func (*CreateScenarioRequest) String

func (x *CreateScenarioRequest) String() string

type CreateScenarioResponse

type CreateScenarioResponse struct {
	Scenario *Scenario `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateScenarioResponse) Descriptor deprecated

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

Deprecated: Use CreateScenarioResponse.ProtoReflect.Descriptor instead.

func (*CreateScenarioResponse) GetScenario

func (x *CreateScenarioResponse) GetScenario() *Scenario

func (*CreateScenarioResponse) ProtoMessage

func (*CreateScenarioResponse) ProtoMessage()

func (*CreateScenarioResponse) ProtoReflect

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

func (*CreateScenarioResponse) Reset

func (x *CreateScenarioResponse) Reset()

func (*CreateScenarioResponse) String

func (x *CreateScenarioResponse) String() string

type DragFunction

type DragFunction int32
const (
	DragFunction_DRAG_FUNCTION_UNSPECIFIED DragFunction = 0
	DragFunction_DRAG_FUNCTION_G1          DragFunction = 1
	DragFunction_DRAG_FUNCTION_G7          DragFunction = 7
)

func (DragFunction) Descriptor

func (DragFunction) Enum

func (x DragFunction) Enum() *DragFunction

func (DragFunction) EnumDescriptor deprecated

func (DragFunction) EnumDescriptor() ([]byte, []int)

Deprecated: Use DragFunction.Descriptor instead.

func (DragFunction) Number

func (DragFunction) String

func (x DragFunction) String() string

func (DragFunction) Type

type Environment

type Environment struct {
	EnvironmentId      int64   `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	Temperature        float64 `protobuf:"fixed64,2,opt,name=temperature,proto3" json:"temperature,omitempty"`
	Altitude           int64   `protobuf:"varint,3,opt,name=altitude,proto3" json:"altitude,omitempty"`
	Pressure           float64 `protobuf:"fixed64,4,opt,name=pressure,proto3" json:"pressure,omitempty"`
	Humidity           float64 `protobuf:"fixed64,5,opt,name=humidity,proto3" json:"humidity,omitempty"`
	WindAngle          float64 `protobuf:"fixed64,6,opt,name=wind_angle,json=windAngle,proto3" json:"wind_angle,omitempty"`
	WindSpeed          float64 `protobuf:"fixed64,7,opt,name=wind_speed,json=windSpeed,proto3" json:"wind_speed,omitempty"`
	PressureIsAbsolute bool    `protobuf:"varint,8,opt,name=pressure_is_absolute,json=pressureIsAbsolute,proto3" json:"pressure_is_absolute,omitempty"`
	Latitude           float64 `protobuf:"fixed64,9,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Azimuth            float64 `protobuf:"fixed64,10,opt,name=azimuth,proto3" json:"azimuth,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetAltitude

func (x *Environment) GetAltitude() int64

func (*Environment) GetAzimuth

func (x *Environment) GetAzimuth() float64

func (*Environment) GetEnvironmentId

func (x *Environment) GetEnvironmentId() int64

func (*Environment) GetHumidity

func (x *Environment) GetHumidity() float64

func (*Environment) GetLatitude

func (x *Environment) GetLatitude() float64

func (*Environment) GetPressure

func (x *Environment) GetPressure() float64

func (*Environment) GetPressureIsAbsolute

func (x *Environment) GetPressureIsAbsolute() bool

func (*Environment) GetTemperature

func (x *Environment) GetTemperature() float64

func (*Environment) GetWindAngle

func (x *Environment) GetWindAngle() float64

func (*Environment) GetWindSpeed

func (x *Environment) GetWindSpeed() float64

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type ListEnvironmentsRequest

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

func (*ListEnvironmentsRequest) Descriptor deprecated

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

Deprecated: Use ListEnvironmentsRequest.ProtoReflect.Descriptor instead.

func (*ListEnvironmentsRequest) ProtoMessage

func (*ListEnvironmentsRequest) ProtoMessage()

func (*ListEnvironmentsRequest) ProtoReflect

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

func (*ListEnvironmentsRequest) Reset

func (x *ListEnvironmentsRequest) Reset()

func (*ListEnvironmentsRequest) String

func (x *ListEnvironmentsRequest) String() string

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {
	Environments []*Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEnvironmentsResponse) Descriptor deprecated

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

Deprecated: Use ListEnvironmentsResponse.ProtoReflect.Descriptor instead.

func (*ListEnvironmentsResponse) GetEnvironments

func (x *ListEnvironmentsResponse) GetEnvironments() []*Environment

func (*ListEnvironmentsResponse) ProtoMessage

func (*ListEnvironmentsResponse) ProtoMessage()

func (*ListEnvironmentsResponse) ProtoReflect

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

func (*ListEnvironmentsResponse) Reset

func (x *ListEnvironmentsResponse) Reset()

func (*ListEnvironmentsResponse) String

func (x *ListEnvironmentsResponse) String() string

type ListLoadsRequest

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

func (*ListLoadsRequest) Descriptor deprecated

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

Deprecated: Use ListLoadsRequest.ProtoReflect.Descriptor instead.

func (*ListLoadsRequest) ProtoMessage

func (*ListLoadsRequest) ProtoMessage()

func (*ListLoadsRequest) ProtoReflect

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

func (*ListLoadsRequest) Reset

func (x *ListLoadsRequest) Reset()

func (*ListLoadsRequest) String

func (x *ListLoadsRequest) String() string

type ListLoadsResponse

type ListLoadsResponse struct {
	Loads []*Load `protobuf:"bytes,1,rep,name=loads,proto3" json:"loads,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLoadsResponse) Descriptor deprecated

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

Deprecated: Use ListLoadsResponse.ProtoReflect.Descriptor instead.

func (*ListLoadsResponse) GetLoads

func (x *ListLoadsResponse) GetLoads() []*Load

func (*ListLoadsResponse) ProtoMessage

func (*ListLoadsResponse) ProtoMessage()

func (*ListLoadsResponse) ProtoReflect

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

func (*ListLoadsResponse) Reset

func (x *ListLoadsResponse) Reset()

func (*ListLoadsResponse) String

func (x *ListLoadsResponse) String() string

type ListRiflesRequest

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

func (*ListRiflesRequest) Descriptor deprecated

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

Deprecated: Use ListRiflesRequest.ProtoReflect.Descriptor instead.

func (*ListRiflesRequest) ProtoMessage

func (*ListRiflesRequest) ProtoMessage()

func (*ListRiflesRequest) ProtoReflect

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

func (*ListRiflesRequest) Reset

func (x *ListRiflesRequest) Reset()

func (*ListRiflesRequest) String

func (x *ListRiflesRequest) String() string

type ListRiflesResponse

type ListRiflesResponse struct {
	Rifles []*Rifle `protobuf:"bytes,1,rep,name=rifles,proto3" json:"rifles,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRiflesResponse) Descriptor deprecated

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

Deprecated: Use ListRiflesResponse.ProtoReflect.Descriptor instead.

func (*ListRiflesResponse) GetRifles

func (x *ListRiflesResponse) GetRifles() []*Rifle

func (*ListRiflesResponse) ProtoMessage

func (*ListRiflesResponse) ProtoMessage()

func (*ListRiflesResponse) ProtoReflect

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

func (*ListRiflesResponse) Reset

func (x *ListRiflesResponse) Reset()

func (*ListRiflesResponse) String

func (x *ListRiflesResponse) String() string

type ListScenariosRequest

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

func (*ListScenariosRequest) Descriptor deprecated

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

Deprecated: Use ListScenariosRequest.ProtoReflect.Descriptor instead.

func (*ListScenariosRequest) ProtoMessage

func (*ListScenariosRequest) ProtoMessage()

func (*ListScenariosRequest) ProtoReflect

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

func (*ListScenariosRequest) Reset

func (x *ListScenariosRequest) Reset()

func (*ListScenariosRequest) String

func (x *ListScenariosRequest) String() string

type ListScenariosResponse

type ListScenariosResponse struct {
	Scenarios []*Scenario `protobuf:"bytes,1,rep,name=scenarios,proto3" json:"scenarios,omitempty"`
	// contains filtered or unexported fields
}

func (*ListScenariosResponse) Descriptor deprecated

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

Deprecated: Use ListScenariosResponse.ProtoReflect.Descriptor instead.

func (*ListScenariosResponse) GetScenarios

func (x *ListScenariosResponse) GetScenarios() []*Scenario

func (*ListScenariosResponse) ProtoMessage

func (*ListScenariosResponse) ProtoMessage()

func (*ListScenariosResponse) ProtoReflect

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

func (*ListScenariosResponse) Reset

func (x *ListScenariosResponse) Reset()

func (*ListScenariosResponse) String

func (x *ListScenariosResponse) String() string

type Load

type Load struct {
	LoadId         int64   `protobuf:"varint,1,opt,name=load_id,json=loadId,proto3" json:"load_id,omitempty"`
	Bullet         *Bullet `protobuf:"bytes,2,opt,name=bullet,proto3" json:"bullet,omitempty"`
	MuzzleVelocity float64 `protobuf:"fixed64,3,opt,name=muzzle_velocity,json=muzzleVelocity,proto3" json:"muzzle_velocity,omitempty"`
	Powder         string  `protobuf:"bytes,4,opt,name=powder,proto3" json:"powder,omitempty"`                                   // optional
	PowderCharge   float64 `protobuf:"fixed64,5,opt,name=powder_charge,json=powderCharge,proto3" json:"powder_charge,omitempty"` // optional
	// contains filtered or unexported fields
}

func (*Load) Descriptor deprecated

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

Deprecated: Use Load.ProtoReflect.Descriptor instead.

func (*Load) GetBullet

func (x *Load) GetBullet() *Bullet

func (*Load) GetLoadId

func (x *Load) GetLoadId() int64

func (*Load) GetMuzzleVelocity

func (x *Load) GetMuzzleVelocity() float64

func (*Load) GetPowder

func (x *Load) GetPowder() string

func (*Load) GetPowderCharge

func (x *Load) GetPowderCharge() float64

func (*Load) ProtoMessage

func (*Load) ProtoMessage()

func (*Load) ProtoReflect

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

func (*Load) Reset

func (x *Load) Reset()

func (*Load) String

func (x *Load) String() string

type Rifle

type Rifle struct {
	RifleId            int64   `protobuf:"varint,1,opt,name=rifle_id,json=rifleId,proto3" json:"rifle_id,omitempty"`
	Name               string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	SightHeight        float64 `protobuf:"fixed64,3,opt,name=sight_height,json=sightHeight,proto3" json:"sight_height,omitempty"`
	BarrelTwist        float64 `protobuf:"fixed64,4,opt,name=barrel_twist,json=barrelTwist,proto3" json:"barrel_twist,omitempty"`
	TwistDirectionLeft bool    `protobuf:"varint,5,opt,name=twist_direction_left,json=twistDirectionLeft,proto3" json:"twist_direction_left,omitempty"`
	ZeroRange          float64 `protobuf:"fixed64,6,opt,name=zero_range,json=zeroRange,proto3" json:"zero_range,omitempty"`
	// contains filtered or unexported fields
}

func (*Rifle) Descriptor deprecated

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

Deprecated: Use Rifle.ProtoReflect.Descriptor instead.

func (*Rifle) GetBarrelTwist

func (x *Rifle) GetBarrelTwist() float64

func (*Rifle) GetName

func (x *Rifle) GetName() string

func (*Rifle) GetRifleId

func (x *Rifle) GetRifleId() int64

func (*Rifle) GetSightHeight

func (x *Rifle) GetSightHeight() float64

func (*Rifle) GetTwistDirectionLeft

func (x *Rifle) GetTwistDirectionLeft() bool

func (*Rifle) GetZeroRange

func (x *Rifle) GetZeroRange() float64

func (*Rifle) ProtoMessage

func (*Rifle) ProtoMessage()

func (*Rifle) ProtoReflect

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

func (*Rifle) Reset

func (x *Rifle) Reset()

func (*Rifle) String

func (x *Rifle) String() string

type Scenario

type Scenario struct {
	ScenarioId    int64  `protobuf:"varint,1,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	EnvironmentId int64  `protobuf:"varint,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	RifleId       int64  `protobuf:"varint,4,opt,name=rifle_id,json=rifleId,proto3" json:"rifle_id,omitempty"`
	LoadId        int64  `protobuf:"varint,5,opt,name=load_id,json=loadId,proto3" json:"load_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Scenario) Descriptor deprecated

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

Deprecated: Use Scenario.ProtoReflect.Descriptor instead.

func (*Scenario) GetEnvironmentId

func (x *Scenario) GetEnvironmentId() int64

func (*Scenario) GetLoadId

func (x *Scenario) GetLoadId() int64

func (*Scenario) GetName

func (x *Scenario) GetName() string

func (*Scenario) GetRifleId

func (x *Scenario) GetRifleId() int64

func (*Scenario) GetScenarioId

func (x *Scenario) GetScenarioId() int64

func (*Scenario) ProtoMessage

func (*Scenario) ProtoMessage()

func (*Scenario) ProtoReflect

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

func (*Scenario) Reset

func (x *Scenario) Reset()

func (*Scenario) String

func (x *Scenario) String() string

type Solution

type Solution struct {
	Range      int64   `protobuf:"varint,1,opt,name=range,proto3" json:"range,omitempty"`                              // Range in yards
	RawRange   float64 `protobuf:"fixed64,2,opt,name=raw_range,json=rawRange,proto3" json:"raw_range,omitempty"`       // Range in yards (for calculations)
	Drop       float64 `protobuf:"fixed64,3,opt,name=drop,proto3" json:"drop,omitempty"`                               // Bullet drop in inches
	DropMoa    float64 `protobuf:"fixed64,4,opt,name=drop_moa,json=dropMoa,proto3" json:"drop_moa,omitempty"`          // Bullet drop in MOA
	Time       float64 `protobuf:"fixed64,5,opt,name=time,proto3" json:"time,omitempty"`                               // Time of flight in seconds
	Windage    float64 `protobuf:"fixed64,6,opt,name=windage,proto3" json:"windage,omitempty"`                         // Windage compensation in inches
	WindageMoa float64 `protobuf:"fixed64,7,opt,name=windage_moa,json=windageMoa,proto3" json:"windage_moa,omitempty"` // Windage compensation in MOA
	Energy     float64 `protobuf:"fixed64,8,opt,name=energy,proto3" json:"energy,omitempty"`                           // Energy in ft*lbs
	Velocity   float64 `protobuf:"fixed64,9,opt,name=velocity,proto3" json:"velocity,omitempty"`                       // Velocity in fps
	VelocityX  float64 `protobuf:"fixed64,10,opt,name=velocity_x,json=velocityX,proto3" json:"velocity_x,omitempty"`   // Velocity X-component
	VelocityY  float64 `protobuf:"fixed64,11,opt,name=velocity_y,json=velocityY,proto3" json:"velocity_y,omitempty"`   // Velocity Y-component
	// contains filtered or unexported fields
}

func (*Solution) Descriptor deprecated

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

Deprecated: Use Solution.ProtoReflect.Descriptor instead.

func (*Solution) GetDrop

func (x *Solution) GetDrop() float64

func (*Solution) GetDropMoa

func (x *Solution) GetDropMoa() float64

func (*Solution) GetEnergy

func (x *Solution) GetEnergy() float64

func (*Solution) GetRange

func (x *Solution) GetRange() int64

func (*Solution) GetRawRange

func (x *Solution) GetRawRange() float64

func (*Solution) GetTime

func (x *Solution) GetTime() float64

func (*Solution) GetVelocity

func (x *Solution) GetVelocity() float64

func (*Solution) GetVelocityX

func (x *Solution) GetVelocityX() float64

func (*Solution) GetVelocityY

func (x *Solution) GetVelocityY() float64

func (*Solution) GetWindage

func (x *Solution) GetWindage() float64

func (*Solution) GetWindageMoa

func (x *Solution) GetWindageMoa() float64

func (*Solution) ProtoMessage

func (*Solution) ProtoMessage()

func (*Solution) ProtoReflect

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

func (*Solution) Reset

func (x *Solution) Reset()

func (*Solution) String

func (x *Solution) String() string

type SolveRequest

type SolveRequest struct {
	ScenarioId       int64 `protobuf:"varint,1,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"`
	IncludeSpinDrift bool  `protobuf:"varint,2,opt,name=include_spin_drift,json=includeSpinDrift,proto3" json:"include_spin_drift,omitempty"`
	IncludeCoriolis  bool  `protobuf:"varint,3,opt,name=include_coriolis,json=includeCoriolis,proto3" json:"include_coriolis,omitempty"`
	// contains filtered or unexported fields
}

func (*SolveRequest) Descriptor deprecated

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

Deprecated: Use SolveRequest.ProtoReflect.Descriptor instead.

func (*SolveRequest) GetIncludeCoriolis

func (x *SolveRequest) GetIncludeCoriolis() bool

func (*SolveRequest) GetIncludeSpinDrift

func (x *SolveRequest) GetIncludeSpinDrift() bool

func (*SolveRequest) GetScenarioId

func (x *SolveRequest) GetScenarioId() int64

func (*SolveRequest) ProtoMessage

func (*SolveRequest) ProtoMessage()

func (*SolveRequest) ProtoReflect

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

func (*SolveRequest) Reset

func (x *SolveRequest) Reset()

func (*SolveRequest) String

func (x *SolveRequest) String() string

type SolveResponse

type SolveResponse struct {
	Solutions []*Solution `protobuf:"bytes,1,rep,name=solutions,proto3" json:"solutions,omitempty"`
	// contains filtered or unexported fields
}

func (*SolveResponse) Descriptor deprecated

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

Deprecated: Use SolveResponse.ProtoReflect.Descriptor instead.

func (*SolveResponse) GetSolutions

func (x *SolveResponse) GetSolutions() []*Solution

func (*SolveResponse) ProtoMessage

func (*SolveResponse) ProtoMessage()

func (*SolveResponse) ProtoReflect

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

func (*SolveResponse) Reset

func (x *SolveResponse) Reset()

func (*SolveResponse) String

func (x *SolveResponse) String() string

type UnimplementedBallisticServiceServer

type UnimplementedBallisticServiceServer struct {
}

UnimplementedBallisticServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBallisticServiceServer) CreateEnvironment

func (UnimplementedBallisticServiceServer) CreateLoad

func (UnimplementedBallisticServiceServer) CreateRifle

func (UnimplementedBallisticServiceServer) CreateScenario

func (UnimplementedBallisticServiceServer) ListEnvironments

func (UnimplementedBallisticServiceServer) ListLoads

func (UnimplementedBallisticServiceServer) ListRifles

func (UnimplementedBallisticServiceServer) ListScenarios

func (UnimplementedBallisticServiceServer) Solve

type UnsafeBallisticServiceServer

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

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

Jump to

Keyboard shortcuts

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