Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSolutionIngesterServer(s grpc.ServiceRegistrar, srv SolutionIngesterServer)
- type ApplySystemAndRadioResourceAllocationRequest
- func (*ApplySystemAndRadioResourceAllocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplySystemAndRadioResourceAllocationRequest) GetInterval() *interval.Interval
- func (x *ApplySystemAndRadioResourceAllocationRequest) GetPaths() []*Path
- func (x *ApplySystemAndRadioResourceAllocationRequest) GetSystemAndRadioResources() []*SystemAndRadioResource
- func (*ApplySystemAndRadioResourceAllocationRequest) ProtoMessage()
- func (x *ApplySystemAndRadioResourceAllocationRequest) ProtoReflect() protoreflect.Message
- func (x *ApplySystemAndRadioResourceAllocationRequest) Reset()
- func (x *ApplySystemAndRadioResourceAllocationRequest) String() string
- type ApplySystemAndRadioResourceAllocationResponse
- func (*ApplySystemAndRadioResourceAllocationResponse) Descriptor() ([]byte, []int)deprecated
- func (*ApplySystemAndRadioResourceAllocationResponse) ProtoMessage()
- func (x *ApplySystemAndRadioResourceAllocationResponse) ProtoReflect() protoreflect.Message
- func (x *ApplySystemAndRadioResourceAllocationResponse) Reset()
- func (x *ApplySystemAndRadioResourceAllocationResponse) String() string
- type Path
- func (*Path) Descriptor() ([]byte, []int)deprecated
- func (x *Path) GetDependentServiceRequests() []*ServiceRequestAndIntervals
- func (x *Path) GetInterval() *interval.Interval
- func (x *Path) GetPath() *resources.PathIntent
- func (*Path) ProtoMessage()
- func (x *Path) ProtoReflect() protoreflect.Message
- func (x *Path) Reset()
- func (x *Path) String() string
- type ServiceRequestAndIntervals
- func (*ServiceRequestAndIntervals) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceRequestAndIntervals) GetIntervals() []*interval.Interval
- func (x *ServiceRequestAndIntervals) GetServiceRequestId() string
- func (*ServiceRequestAndIntervals) ProtoMessage()
- func (x *ServiceRequestAndIntervals) ProtoReflect() protoreflect.Message
- func (x *ServiceRequestAndIntervals) Reset()
- func (x *ServiceRequestAndIntervals) String() string
- type SolutionIngesterClient
- type SolutionIngesterServer
- type SystemAndRadioResource
- func (*SystemAndRadioResource) Descriptor() ([]byte, []int)deprecated
- func (x *SystemAndRadioResource) GetDependentServiceRequests() []*ServiceRequestAndIntervals
- func (x *SystemAndRadioResource) GetInterval() *interval.Interval
- func (x *SystemAndRadioResource) GetResource() *resources.ModemIntent
- func (*SystemAndRadioResource) ProtoMessage()
- func (x *SystemAndRadioResource) ProtoReflect() protoreflect.Message
- func (x *SystemAndRadioResource) Reset()
- func (x *SystemAndRadioResource) String() string
- type UnimplementedSolutionIngesterServer
- type UnsafeSolutionIngesterServer
Constants ¶
const (
SolutionIngester_ApplySystemAndRadioResourceAllocation_FullMethodName = "/aalyria.spacetime.api.solver.v1alpha.SolutionIngester/ApplySystemAndRadioResourceAllocation"
)
Variables ¶
var File_api_solver_v1alpha_solver_proto protoreflect.FileDescriptor
var SolutionIngester_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aalyria.spacetime.api.solver.v1alpha.SolutionIngester", HandlerType: (*SolutionIngesterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ApplySystemAndRadioResourceAllocation", Handler: _SolutionIngester_ApplySystemAndRadioResourceAllocation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/solver/v1alpha/solver.proto", }
SolutionIngester_ServiceDesc is the grpc.ServiceDesc for SolutionIngester service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSolutionIngesterServer ¶
func RegisterSolutionIngesterServer(s grpc.ServiceRegistrar, srv SolutionIngesterServer)
Types ¶
type ApplySystemAndRadioResourceAllocationRequest ¶
type ApplySystemAndRadioResourceAllocationRequest struct {
// The total interval covered by the resource allocation plan in the request.
// Any previous resource allocations for this interval will be deleted.
// Required.
Interval *interval.Interval `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
// The allocation of system and radio resources.
SystemAndRadioResources []*SystemAndRadioResource `` /* 134-byte string literal not displayed */
// The network paths that correspond to the resource allocations.
Paths []*Path `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
// contains filtered or unexported fields
}
func (*ApplySystemAndRadioResourceAllocationRequest) Descriptor
deprecated
func (*ApplySystemAndRadioResourceAllocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplySystemAndRadioResourceAllocationRequest.ProtoReflect.Descriptor instead.
func (*ApplySystemAndRadioResourceAllocationRequest) GetInterval ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) GetInterval() *interval.Interval
func (*ApplySystemAndRadioResourceAllocationRequest) GetPaths ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) GetPaths() []*Path
func (*ApplySystemAndRadioResourceAllocationRequest) GetSystemAndRadioResources ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) GetSystemAndRadioResources() []*SystemAndRadioResource
func (*ApplySystemAndRadioResourceAllocationRequest) ProtoMessage ¶
func (*ApplySystemAndRadioResourceAllocationRequest) ProtoMessage()
func (*ApplySystemAndRadioResourceAllocationRequest) ProtoReflect ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) ProtoReflect() protoreflect.Message
func (*ApplySystemAndRadioResourceAllocationRequest) Reset ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) Reset()
func (*ApplySystemAndRadioResourceAllocationRequest) String ¶
func (x *ApplySystemAndRadioResourceAllocationRequest) String() string
type ApplySystemAndRadioResourceAllocationResponse ¶
type ApplySystemAndRadioResourceAllocationResponse struct {
// contains filtered or unexported fields
}
func (*ApplySystemAndRadioResourceAllocationResponse) Descriptor
deprecated
func (*ApplySystemAndRadioResourceAllocationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplySystemAndRadioResourceAllocationResponse.ProtoReflect.Descriptor instead.
func (*ApplySystemAndRadioResourceAllocationResponse) ProtoMessage ¶
func (*ApplySystemAndRadioResourceAllocationResponse) ProtoMessage()
func (*ApplySystemAndRadioResourceAllocationResponse) ProtoReflect ¶
func (x *ApplySystemAndRadioResourceAllocationResponse) ProtoReflect() protoreflect.Message
func (*ApplySystemAndRadioResourceAllocationResponse) Reset ¶
func (x *ApplySystemAndRadioResourceAllocationResponse) Reset()
func (*ApplySystemAndRadioResourceAllocationResponse) String ¶
func (x *ApplySystemAndRadioResourceAllocationResponse) String() string
type Path ¶
type Path struct {
// The interval over which this path exists.
// Required.
Interval *interval.Interval `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
// Defines the path.
// Required.
Path *resources.PathIntent `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// The requests for service that this path serves to fulfill over time.
// Required.
DependentServiceRequests []*ServiceRequestAndIntervals `` /* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
Models a list of paths that represent routing solutions to the network flows specified by SERVICE_REQUEST entities. When submitted to Spacetime, each Path is used to initialize an INTENT entity, and its ID is set to a UUID.
func (*Path) GetDependentServiceRequests ¶
func (x *Path) GetDependentServiceRequests() []*ServiceRequestAndIntervals
func (*Path) GetPath ¶
func (x *Path) GetPath() *resources.PathIntent
func (*Path) ProtoReflect ¶
func (x *Path) ProtoReflect() protoreflect.Message
type ServiceRequestAndIntervals ¶
type ServiceRequestAndIntervals struct {
// A SERVICE_REQUEST entity's ID.
// Required.
ServiceRequestId string `protobuf:"bytes,1,opt,name=service_request_id,json=serviceRequestId,proto3" json:"service_request_id,omitempty"`
// Required.
Intervals []*interval.Interval `protobuf:"bytes,2,rep,name=intervals,proto3" json:"intervals,omitempty"`
// contains filtered or unexported fields
}
Used to represent the requests for connectivity across the network that each resource allocation serves to fulfill over time. The requests for connectivity are represented as SERVICE_REQUEST entities in Spacetime's data model.
func (*ServiceRequestAndIntervals) Descriptor
deprecated
func (*ServiceRequestAndIntervals) Descriptor() ([]byte, []int)
Deprecated: Use ServiceRequestAndIntervals.ProtoReflect.Descriptor instead.
func (*ServiceRequestAndIntervals) GetIntervals ¶
func (x *ServiceRequestAndIntervals) GetIntervals() []*interval.Interval
func (*ServiceRequestAndIntervals) GetServiceRequestId ¶
func (x *ServiceRequestAndIntervals) GetServiceRequestId() string
func (*ServiceRequestAndIntervals) ProtoMessage ¶
func (*ServiceRequestAndIntervals) ProtoMessage()
func (*ServiceRequestAndIntervals) ProtoReflect ¶
func (x *ServiceRequestAndIntervals) ProtoReflect() protoreflect.Message
func (*ServiceRequestAndIntervals) Reset ¶
func (x *ServiceRequestAndIntervals) Reset()
func (*ServiceRequestAndIntervals) String ¶
func (x *ServiceRequestAndIntervals) String() string
type SolutionIngesterClient ¶
type SolutionIngesterClient interface {
// Issues a request to submit the allocation of system and radio resources
// over an interval.
ApplySystemAndRadioResourceAllocation(ctx context.Context, in *ApplySystemAndRadioResourceAllocationRequest, opts ...grpc.CallOption) (*ApplySystemAndRadioResourceAllocationResponse, error)
}
SolutionIngesterClient is the client API for SolutionIngester 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.
func NewSolutionIngesterClient ¶
func NewSolutionIngesterClient(cc grpc.ClientConnInterface) SolutionIngesterClient
type SolutionIngesterServer ¶
type SolutionIngesterServer interface {
// Issues a request to submit the allocation of system and radio resources
// over an interval.
ApplySystemAndRadioResourceAllocation(context.Context, *ApplySystemAndRadioResourceAllocationRequest) (*ApplySystemAndRadioResourceAllocationResponse, error)
}
SolutionIngesterServer is the server API for SolutionIngester service. All implementations should embed UnimplementedSolutionIngesterServer for forward compatibility.
type SystemAndRadioResource ¶
type SystemAndRadioResource struct {
// The interval over which this resource allocation exists.
// Required.
Interval *interval.Interval `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
// Defines the resource allocation.
// Required.
Resource *resources.ModemIntent `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
// The requests for service that this resource serves to fulfill over time.
// Required.
DependentServiceRequests []*ServiceRequestAndIntervals `` /* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
Models a list of system and radio resource allocations. When submitted to Spacetime, each SystemAndRadioResource is used to initialize an INTENT entity, and its ID is set to a UUID.
func (*SystemAndRadioResource) Descriptor
deprecated
func (*SystemAndRadioResource) Descriptor() ([]byte, []int)
Deprecated: Use SystemAndRadioResource.ProtoReflect.Descriptor instead.
func (*SystemAndRadioResource) GetDependentServiceRequests ¶
func (x *SystemAndRadioResource) GetDependentServiceRequests() []*ServiceRequestAndIntervals
func (*SystemAndRadioResource) GetInterval ¶
func (x *SystemAndRadioResource) GetInterval() *interval.Interval
func (*SystemAndRadioResource) GetResource ¶
func (x *SystemAndRadioResource) GetResource() *resources.ModemIntent
func (*SystemAndRadioResource) ProtoMessage ¶
func (*SystemAndRadioResource) ProtoMessage()
func (*SystemAndRadioResource) ProtoReflect ¶
func (x *SystemAndRadioResource) ProtoReflect() protoreflect.Message
func (*SystemAndRadioResource) Reset ¶
func (x *SystemAndRadioResource) Reset()
func (*SystemAndRadioResource) String ¶
func (x *SystemAndRadioResource) String() string
type UnimplementedSolutionIngesterServer ¶
type UnimplementedSolutionIngesterServer struct{}
UnimplementedSolutionIngesterServer should 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 (UnimplementedSolutionIngesterServer) ApplySystemAndRadioResourceAllocation ¶
func (UnimplementedSolutionIngesterServer) ApplySystemAndRadioResourceAllocation(context.Context, *ApplySystemAndRadioResourceAllocationRequest) (*ApplySystemAndRadioResourceAllocationResponse, error)
type UnsafeSolutionIngesterServer ¶
type UnsafeSolutionIngesterServer interface {
// contains filtered or unexported methods
}
UnsafeSolutionIngesterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SolutionIngesterServer will result in compilation errors.
Source Files
¶
- solver.pb.go
- solver_grpc.pb.go