Documentation ¶
Index ¶
- Variables
- func RegisterBandwithAllocationServiceServer(s grpc.ServiceRegistrar, srv BandwithAllocationServiceServer)
- type BandwidthHint
- type BandwithAllocationServiceClient
- type BandwithAllocationServiceServer
- type ExpirationHint
- type ReserveRequest
- func (*ReserveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReserveRequest) GetBandwidth() uint64
- func (x *ReserveRequest) GetDstHost() []byte
- func (x *ReserveRequest) GetDstIsdAs() uint64
- func (x *ReserveRequest) GetExpirationTime() int64
- func (x *ReserveRequest) GetId() uint32
- func (x *ReserveRequest) GetPath() []byte
- func (x *ReserveRequest) GetSrcHost() []byte
- func (*ReserveRequest) ProtoMessage()
- func (x *ReserveRequest) ProtoReflect() protoreflect.Message
- func (x *ReserveRequest) Reset()
- func (x *ReserveRequest) String() string
- type ReserveResponse
- type UnimplementedBandwithAllocationServiceServer
- type UnsafeBandwithAllocationServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_bw_allocation_v1_bw_allocation_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBandwithAllocationServiceServer ¶
func RegisterBandwithAllocationServiceServer(s grpc.ServiceRegistrar, srv BandwithAllocationServiceServer)
Types ¶
type BandwidthHint ¶
type BandwidthHint struct { // The maxium bandwidth that the services is able to allocate at this point // in time. MaxBandwidth uint64 `protobuf:"varint,1,opt,name=max_bandwidth,json=maxBandwidth,proto3" json:"max_bandwidth,omitempty"` // contains filtered or unexported fields }
func (*BandwidthHint) Descriptor
deprecated
func (*BandwidthHint) Descriptor() ([]byte, []int)
Deprecated: Use BandwidthHint.ProtoReflect.Descriptor instead.
func (*BandwidthHint) GetMaxBandwidth ¶
func (x *BandwidthHint) GetMaxBandwidth() uint64
func (*BandwidthHint) ProtoMessage ¶
func (*BandwidthHint) ProtoMessage()
func (*BandwidthHint) ProtoReflect ¶
func (x *BandwidthHint) ProtoReflect() protoreflect.Message
func (*BandwidthHint) Reset ¶
func (x *BandwidthHint) Reset()
func (*BandwidthHint) String ¶
func (x *BandwidthHint) String() string
type BandwithAllocationServiceClient ¶
type BandwithAllocationServiceClient interface { // Reserve returns a bandwidth reservation for the given request. Reserve(ctx context.Context, in *ReserveRequest, opts ...grpc.CallOption) (*ReserveResponse, error) }
BandwithAllocationServiceClient is the client API for BandwithAllocationService 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 NewBandwithAllocationServiceClient ¶
func NewBandwithAllocationServiceClient(cc grpc.ClientConnInterface) BandwithAllocationServiceClient
type BandwithAllocationServiceServer ¶
type BandwithAllocationServiceServer interface { // Reserve returns a bandwidth reservation for the given request. Reserve(context.Context, *ReserveRequest) (*ReserveResponse, error) }
BandwithAllocationServiceServer is the server API for BandwithAllocationService service. All implementations should embed UnimplementedBandwithAllocationServiceServer for forward compatibility
type ExpirationHint ¶
type ExpirationHint struct { // The maxmimum acceptable expiration time. MaxExpirationTime int64 `protobuf:"varint,1,opt,name=max_expiration_time,json=maxExpirationTime,proto3" json:"max_expiration_time,omitempty"` // contains filtered or unexported fields }
func (*ExpirationHint) Descriptor
deprecated
func (*ExpirationHint) Descriptor() ([]byte, []int)
Deprecated: Use ExpirationHint.ProtoReflect.Descriptor instead.
func (*ExpirationHint) GetMaxExpirationTime ¶
func (x *ExpirationHint) GetMaxExpirationTime() int64
func (*ExpirationHint) ProtoMessage ¶
func (*ExpirationHint) ProtoMessage()
func (*ExpirationHint) ProtoReflect ¶
func (x *ExpirationHint) ProtoReflect() protoreflect.Message
func (*ExpirationHint) Reset ¶
func (x *ExpirationHint) Reset()
func (*ExpirationHint) String ¶
func (x *ExpirationHint) String() string
type ReserveRequest ¶
type ReserveRequest struct { // The destination ISD-AS. DstIsdAs uint64 `protobuf:"varint,1,opt,name=dst_isd_as,json=dstIsdAs,proto3" json:"dst_isd_as,omitempty"` // The source host of the requested bandwidth reservation. SrcHost []byte `protobuf:"bytes,2,opt,name=src_host,json=srcHost,proto3" json:"src_host,omitempty"` // The destination host of the requested bandwidth reservation. DstHost []byte `protobuf:"bytes,3,opt,name=dst_host,json=dstHost,proto3" json:"dst_host,omitempty"` // The reservation ID of the requested bandwidth reservation. Id uint32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // The expiration time of the reservation. The timestamp is encoded as // number of seconds elapsed since January 1, 1970 UTC. ExpirationTime int64 `protobuf:"varint,5,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // The bandwidth of the reservation in bps. Bandwidth uint64 `protobuf:"varint,6,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"` // The raw SCION path that is used with the bandwidth reservation. Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*ReserveRequest) Descriptor
deprecated
func (*ReserveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReserveRequest.ProtoReflect.Descriptor instead.
func (*ReserveRequest) GetBandwidth ¶
func (x *ReserveRequest) GetBandwidth() uint64
func (*ReserveRequest) GetDstHost ¶
func (x *ReserveRequest) GetDstHost() []byte
func (*ReserveRequest) GetDstIsdAs ¶
func (x *ReserveRequest) GetDstIsdAs() uint64
func (*ReserveRequest) GetExpirationTime ¶
func (x *ReserveRequest) GetExpirationTime() int64
func (*ReserveRequest) GetId ¶
func (x *ReserveRequest) GetId() uint32
func (*ReserveRequest) GetPath ¶
func (x *ReserveRequest) GetPath() []byte
func (*ReserveRequest) GetSrcHost ¶
func (x *ReserveRequest) GetSrcHost() []byte
func (*ReserveRequest) ProtoMessage ¶
func (*ReserveRequest) ProtoMessage()
func (*ReserveRequest) ProtoReflect ¶
func (x *ReserveRequest) ProtoReflect() protoreflect.Message
func (*ReserveRequest) Reset ¶
func (x *ReserveRequest) Reset()
func (*ReserveRequest) String ¶
func (x *ReserveRequest) String() string
type ReserveResponse ¶
type ReserveResponse struct { // The message authentication code that authenticates the reservation. Mac []byte `protobuf:"bytes,3,opt,name=mac,proto3" json:"mac,omitempty"` // contains filtered or unexported fields }
func (*ReserveResponse) Descriptor
deprecated
func (*ReserveResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReserveResponse.ProtoReflect.Descriptor instead.
func (*ReserveResponse) GetMac ¶
func (x *ReserveResponse) GetMac() []byte
func (*ReserveResponse) ProtoMessage ¶
func (*ReserveResponse) ProtoMessage()
func (*ReserveResponse) ProtoReflect ¶
func (x *ReserveResponse) ProtoReflect() protoreflect.Message
func (*ReserveResponse) Reset ¶
func (x *ReserveResponse) Reset()
func (*ReserveResponse) String ¶
func (x *ReserveResponse) String() string
type UnimplementedBandwithAllocationServiceServer ¶
type UnimplementedBandwithAllocationServiceServer struct { }
UnimplementedBandwithAllocationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBandwithAllocationServiceServer) Reserve ¶
func (UnimplementedBandwithAllocationServiceServer) Reserve(context.Context, *ReserveRequest) (*ReserveResponse, error)
type UnsafeBandwithAllocationServiceServer ¶
type UnsafeBandwithAllocationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBandwithAllocationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BandwithAllocationServiceServer will result in compilation errors.
Directories ¶
Path | Synopsis |
---|---|
Package mock_v1 is a generated GoMock package.
|
Package mock_v1 is a generated GoMock package. |