Documentation
¶
Index ¶
- Variables
- type BidID
- func (id BidID) DeploymentID() dtypes.DeploymentID
- func (*BidID) Descriptor() ([]byte, []int)
- func (id BidID) Equals(other BidID) bool
- func (m *BidID) GetDSeq() uint64
- func (m *BidID) GetGSeq() uint32
- func (m *BidID) GetOSeq() uint32
- func (m *BidID) GetOwner() string
- func (m *BidID) GetProvider() string
- func (id BidID) GroupID() dtypes.GroupID
- func (id BidID) LeaseID() LeaseID
- func (m *BidID) Marshal() (dAtA []byte, err error)
- func (m *BidID) MarshalTo(dAtA []byte) (int, error)
- func (m *BidID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (id BidID) OrderID() OrderID
- func (*BidID) ProtoMessage()
- func (m *BidID) Reset()
- func (m *BidID) Size() (n int)
- func (id BidID) String() string
- func (m *BidID) Unmarshal(dAtA []byte) error
- func (id BidID) Validate() error
- func (m *BidID) XXX_DiscardUnknown()
- func (m *BidID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BidID) XXX_Merge(src proto.Message)
- func (m *BidID) XXX_Size() int
- func (m *BidID) XXX_Unmarshal(b []byte) error
- type EventBidClosed
- func (*EventBidClosed) Descriptor() ([]byte, []int)
- func (m *EventBidClosed) GetID() BidID
- func (m *EventBidClosed) Marshal() (dAtA []byte, err error)
- func (m *EventBidClosed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBidClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBidClosed) ProtoMessage()
- func (m *EventBidClosed) Reset()
- func (m *EventBidClosed) Size() (n int)
- func (m *EventBidClosed) String() string
- func (m *EventBidClosed) Unmarshal(dAtA []byte) error
- func (m *EventBidClosed) XXX_DiscardUnknown()
- func (m *EventBidClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBidClosed) XXX_Merge(src proto.Message)
- func (m *EventBidClosed) XXX_Size() int
- func (m *EventBidClosed) XXX_Unmarshal(b []byte) error
- type EventBidCreated
- func (*EventBidCreated) Descriptor() ([]byte, []int)
- func (m *EventBidCreated) GetID() BidID
- func (m *EventBidCreated) GetPrice() types.DecCoin
- func (m *EventBidCreated) Marshal() (dAtA []byte, err error)
- func (m *EventBidCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBidCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBidCreated) ProtoMessage()
- func (m *EventBidCreated) Reset()
- func (m *EventBidCreated) Size() (n int)
- func (m *EventBidCreated) String() string
- func (m *EventBidCreated) Unmarshal(dAtA []byte) error
- func (m *EventBidCreated) XXX_DiscardUnknown()
- func (m *EventBidCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBidCreated) XXX_Merge(src proto.Message)
- func (m *EventBidCreated) XXX_Size() int
- func (m *EventBidCreated) XXX_Unmarshal(b []byte) error
- type EventLeaseClosed
- func (*EventLeaseClosed) Descriptor() ([]byte, []int)
- func (m *EventLeaseClosed) GetID() LeaseID
- func (m *EventLeaseClosed) Marshal() (dAtA []byte, err error)
- func (m *EventLeaseClosed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventLeaseClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventLeaseClosed) ProtoMessage()
- func (m *EventLeaseClosed) Reset()
- func (m *EventLeaseClosed) Size() (n int)
- func (m *EventLeaseClosed) String() string
- func (m *EventLeaseClosed) Unmarshal(dAtA []byte) error
- func (m *EventLeaseClosed) XXX_DiscardUnknown()
- func (m *EventLeaseClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLeaseClosed) XXX_Merge(src proto.Message)
- func (m *EventLeaseClosed) XXX_Size() int
- func (m *EventLeaseClosed) XXX_Unmarshal(b []byte) error
- type EventLeaseCreated
- func (*EventLeaseCreated) Descriptor() ([]byte, []int)
- func (m *EventLeaseCreated) GetID() LeaseID
- func (m *EventLeaseCreated) GetPrice() types.DecCoin
- func (m *EventLeaseCreated) Marshal() (dAtA []byte, err error)
- func (m *EventLeaseCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventLeaseCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventLeaseCreated) ProtoMessage()
- func (m *EventLeaseCreated) Reset()
- func (m *EventLeaseCreated) Size() (n int)
- func (m *EventLeaseCreated) String() string
- func (m *EventLeaseCreated) Unmarshal(dAtA []byte) error
- func (m *EventLeaseCreated) XXX_DiscardUnknown()
- func (m *EventLeaseCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLeaseCreated) XXX_Merge(src proto.Message)
- func (m *EventLeaseCreated) XXX_Size() int
- func (m *EventLeaseCreated) XXX_Unmarshal(b []byte) error
- type EventOrderClosed
- func (*EventOrderClosed) Descriptor() ([]byte, []int)
- func (m *EventOrderClosed) GetID() OrderID
- func (m *EventOrderClosed) Marshal() (dAtA []byte, err error)
- func (m *EventOrderClosed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderClosed) ProtoMessage()
- func (m *EventOrderClosed) Reset()
- func (m *EventOrderClosed) Size() (n int)
- func (m *EventOrderClosed) String() string
- func (m *EventOrderClosed) Unmarshal(dAtA []byte) error
- func (m *EventOrderClosed) XXX_DiscardUnknown()
- func (m *EventOrderClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderClosed) XXX_Merge(src proto.Message)
- func (m *EventOrderClosed) XXX_Size() int
- func (m *EventOrderClosed) XXX_Unmarshal(b []byte) error
- type EventOrderCreated
- func (*EventOrderCreated) Descriptor() ([]byte, []int)
- func (m *EventOrderCreated) GetID() OrderID
- func (m *EventOrderCreated) Marshal() (dAtA []byte, err error)
- func (m *EventOrderCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderCreated) ProtoMessage()
- func (m *EventOrderCreated) Reset()
- func (m *EventOrderCreated) Size() (n int)
- func (m *EventOrderCreated) String() string
- func (m *EventOrderCreated) Unmarshal(dAtA []byte) error
- func (m *EventOrderCreated) XXX_DiscardUnknown()
- func (m *EventOrderCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderCreated) XXX_Merge(src proto.Message)
- func (m *EventOrderCreated) XXX_Size() int
- func (m *EventOrderCreated) XXX_Unmarshal(b []byte) error
- type Lease
- func (*Lease) Descriptor() ([]byte, []int)
- func (obj Lease) Filters(filters LeaseFilters, stateVal Lease_State) bool
- func (m *Lease) GetClosedOn() int64
- func (m *Lease) GetCreatedAt() int64
- func (m *Lease) GetID() LeaseID
- func (m *Lease) GetPrice() types.DecCoin
- func (m *Lease) GetState() Lease_State
- func (m *Lease) Marshal() (dAtA []byte, err error)
- func (m *Lease) MarshalTo(dAtA []byte) (int, error)
- func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Lease) ProtoMessage()
- func (m *Lease) Reset()
- func (m *Lease) Size() (n int)
- func (obj Lease) String() string
- func (m *Lease) Unmarshal(dAtA []byte) error
- func (m *Lease) XXX_DiscardUnknown()
- func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lease) XXX_Merge(src proto.Message)
- func (m *Lease) XXX_Size() int
- func (m *Lease) XXX_Unmarshal(b []byte) error
- type LeaseFilters
- func (filters *LeaseFilters) Accept(obj Lease, stateVal Lease_State) bool
- func (*LeaseFilters) Descriptor() ([]byte, []int)
- func (m *LeaseFilters) GetDSeq() uint64
- func (m *LeaseFilters) GetGSeq() uint32
- func (m *LeaseFilters) GetOSeq() uint32
- func (m *LeaseFilters) GetOwner() string
- func (m *LeaseFilters) GetProvider() string
- func (m *LeaseFilters) GetState() string
- func (m *LeaseFilters) Marshal() (dAtA []byte, err error)
- func (m *LeaseFilters) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseFilters) ProtoMessage()
- func (m *LeaseFilters) Reset()
- func (m *LeaseFilters) Size() (n int)
- func (m *LeaseFilters) String() string
- func (m *LeaseFilters) Unmarshal(dAtA []byte) error
- func (m *LeaseFilters) XXX_DiscardUnknown()
- func (m *LeaseFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseFilters) XXX_Merge(src proto.Message)
- func (m *LeaseFilters) XXX_Size() int
- func (m *LeaseFilters) XXX_Unmarshal(b []byte) error
- type LeaseID
- func (id LeaseID) BidID() BidID
- func (id LeaseID) DeploymentID() dtypes.DeploymentID
- func (*LeaseID) Descriptor() ([]byte, []int)
- func (id LeaseID) Equals(other LeaseID) bool
- func (m *LeaseID) GetDSeq() uint64
- func (m *LeaseID) GetGSeq() uint32
- func (m *LeaseID) GetOSeq() uint32
- func (m *LeaseID) GetOwner() string
- func (m *LeaseID) GetProvider() string
- func (id LeaseID) GroupID() dtypes.GroupID
- func (m *LeaseID) Marshal() (dAtA []byte, err error)
- func (m *LeaseID) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (id LeaseID) OrderID() OrderID
- func (*LeaseID) ProtoMessage()
- func (m *LeaseID) Reset()
- func (m *LeaseID) Size() (n int)
- func (id LeaseID) String() string
- func (m *LeaseID) Unmarshal(dAtA []byte) error
- func (id LeaseID) Validate() error
- func (m *LeaseID) XXX_DiscardUnknown()
- func (m *LeaseID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseID) XXX_Merge(src proto.Message)
- func (m *LeaseID) XXX_Size() int
- func (m *LeaseID) XXX_Unmarshal(b []byte) error
- type Lease_State
- type Leases
- type OrderID
- func (*OrderID) Descriptor() ([]byte, []int)
- func (id OrderID) Equals(other OrderID) bool
- func (m *OrderID) GetDSeq() uint64
- func (m *OrderID) GetGSeq() uint32
- func (m *OrderID) GetOSeq() uint32
- func (m *OrderID) GetOwner() string
- func (id OrderID) GroupID() dtypes.GroupID
- func (m *OrderID) Marshal() (dAtA []byte, err error)
- func (m *OrderID) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderID) ProtoMessage()
- func (m *OrderID) Reset()
- func (m *OrderID) Size() (n int)
- func (id OrderID) String() string
- func (m *OrderID) Unmarshal(dAtA []byte) error
- func (id OrderID) Validate() error
- func (m *OrderID) XXX_DiscardUnknown()
- func (m *OrderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderID) XXX_Merge(src proto.Message)
- func (m *OrderID) XXX_Size() int
- func (m *OrderID) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidLengthBid = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowBid = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupBid = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthFilters = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowFilters = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupFilters = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowLease = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupLease = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthOrder = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowOrder = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupOrder = fmt.Errorf("proto: unexpected end of group")
)
var Lease_State_name = map[int32]string{
0: "invalid",
1: "active",
2: "insufficient_funds",
3: "closed",
}
var Lease_State_value = map[string]int32{
"invalid": 0,
"active": 1,
"insufficient_funds": 2,
"closed": 3,
}
Functions ¶
This section is empty.
Types ¶
type BidID ¶
type BidID struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"`
OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
}
BidID stores owner and all other seq numbers A successful bid becomes a Lease(ID).
func MakeBidID ¶
func MakeBidID(id OrderID, provider sdk.AccAddress) BidID
MakeBidID returns BidID instance with provided order details and provider
func (BidID) DeploymentID ¶
func (id BidID) DeploymentID() dtypes.DeploymentID
DeploymentID method returns deployment details with specific bid details
func (*BidID) Descriptor ¶
func (*BidID) Descriptor() ([]byte, []int)
func (BidID) Equals ¶
func (id BidID) Equals(other BidID) bool
Equals method compares specific bid with provided bid
func (*BidID) GetDSeq ¶
func (m *BidID) GetDSeq() uint64
func (*BidID) GetGSeq ¶
func (m *BidID) GetGSeq() uint32
func (*BidID) GetOSeq ¶
func (m *BidID) GetOSeq() uint32
func (*BidID) GetOwner ¶
func (m *BidID) GetOwner() string
func (*BidID) GetProvider ¶
func (m *BidID) GetProvider() string
func (BidID) GroupID ¶
func (id BidID) GroupID() dtypes.GroupID
GroupID method returns GroupID details with specific bid details
func (BidID) LeaseID ¶
func (id BidID) LeaseID() LeaseID
LeaseID method returns lease details of bid
func (*BidID) Marshal ¶
func (m *BidID) Marshal() (dAtA []byte, err error)
func (*BidID) MarshalTo ¶
func (m *BidID) MarshalTo(dAtA []byte) (int, error)
func (*BidID) MarshalToSizedBuffer ¶
func (m *BidID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (BidID) OrderID ¶
func (id BidID) OrderID() OrderID
OrderID method returns OrderID details with specific bid details
func (*BidID) ProtoMessage ¶
func (*BidID) ProtoMessage()
func (*BidID) Reset ¶
func (m *BidID) Reset()
func (*BidID) Size ¶
func (m *BidID) Size() (n int)
func (*BidID) Unmarshal ¶
func (m *BidID) Unmarshal(dAtA []byte) error
func (BidID) Validate ¶
func (id BidID) Validate() error
Validate validates bid instance and returns nil
func (*BidID) XXX_DiscardUnknown ¶
func (m *BidID) XXX_DiscardUnknown()
func (*BidID) XXX_Marshal ¶
func (m *BidID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BidID) XXX_Merge ¶
func (m *BidID) XXX_Merge(src proto.Message)
func (*BidID) XXX_Size ¶
func (m *BidID) XXX_Size() int
func (*BidID) XXX_Unmarshal ¶
func (m *BidID) XXX_Unmarshal(b []byte) error
type EventBidClosed ¶
type EventBidClosed struct {
ID BidID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
EventBidClosed
func (*EventBidClosed) Descriptor ¶
func (*EventBidClosed) Descriptor() ([]byte, []int)
func (*EventBidClosed) GetID ¶
func (m *EventBidClosed) GetID() BidID
func (*EventBidClosed) Marshal ¶
func (m *EventBidClosed) Marshal() (dAtA []byte, err error)
func (*EventBidClosed) MarshalTo ¶
func (m *EventBidClosed) MarshalTo(dAtA []byte) (int, error)
func (*EventBidClosed) MarshalToSizedBuffer ¶
func (m *EventBidClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBidClosed) ProtoMessage ¶
func (*EventBidClosed) ProtoMessage()
func (*EventBidClosed) Reset ¶
func (m *EventBidClosed) Reset()
func (*EventBidClosed) Size ¶
func (m *EventBidClosed) Size() (n int)
func (*EventBidClosed) String ¶
func (m *EventBidClosed) String() string
func (*EventBidClosed) Unmarshal ¶
func (m *EventBidClosed) Unmarshal(dAtA []byte) error
func (*EventBidClosed) XXX_DiscardUnknown ¶
func (m *EventBidClosed) XXX_DiscardUnknown()
func (*EventBidClosed) XXX_Marshal ¶
func (m *EventBidClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBidClosed) XXX_Merge ¶
func (m *EventBidClosed) XXX_Merge(src proto.Message)
func (*EventBidClosed) XXX_Size ¶
func (m *EventBidClosed) XXX_Size() int
func (*EventBidClosed) XXX_Unmarshal ¶
func (m *EventBidClosed) XXX_Unmarshal(b []byte) error
type EventBidCreated ¶
type EventBidCreated struct {
ID BidID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
Price types.DecCoin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
}
EventBidCreated
func (*EventBidCreated) Descriptor ¶
func (*EventBidCreated) Descriptor() ([]byte, []int)
func (*EventBidCreated) GetID ¶
func (m *EventBidCreated) GetID() BidID
func (*EventBidCreated) GetPrice ¶
func (m *EventBidCreated) GetPrice() types.DecCoin
func (*EventBidCreated) Marshal ¶
func (m *EventBidCreated) Marshal() (dAtA []byte, err error)
func (*EventBidCreated) MarshalTo ¶
func (m *EventBidCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventBidCreated) MarshalToSizedBuffer ¶
func (m *EventBidCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBidCreated) ProtoMessage ¶
func (*EventBidCreated) ProtoMessage()
func (*EventBidCreated) Reset ¶
func (m *EventBidCreated) Reset()
func (*EventBidCreated) Size ¶
func (m *EventBidCreated) Size() (n int)
func (*EventBidCreated) String ¶
func (m *EventBidCreated) String() string
func (*EventBidCreated) Unmarshal ¶
func (m *EventBidCreated) Unmarshal(dAtA []byte) error
func (*EventBidCreated) XXX_DiscardUnknown ¶
func (m *EventBidCreated) XXX_DiscardUnknown()
func (*EventBidCreated) XXX_Marshal ¶
func (m *EventBidCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBidCreated) XXX_Merge ¶
func (m *EventBidCreated) XXX_Merge(src proto.Message)
func (*EventBidCreated) XXX_Size ¶
func (m *EventBidCreated) XXX_Size() int
func (*EventBidCreated) XXX_Unmarshal ¶
func (m *EventBidCreated) XXX_Unmarshal(b []byte) error
type EventLeaseClosed ¶
type EventLeaseClosed struct {
ID LeaseID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
EventLeaseClosed
func (*EventLeaseClosed) Descriptor ¶
func (*EventLeaseClosed) Descriptor() ([]byte, []int)
func (*EventLeaseClosed) GetID ¶
func (m *EventLeaseClosed) GetID() LeaseID
func (*EventLeaseClosed) Marshal ¶
func (m *EventLeaseClosed) Marshal() (dAtA []byte, err error)
func (*EventLeaseClosed) MarshalTo ¶
func (m *EventLeaseClosed) MarshalTo(dAtA []byte) (int, error)
func (*EventLeaseClosed) MarshalToSizedBuffer ¶
func (m *EventLeaseClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventLeaseClosed) ProtoMessage ¶
func (*EventLeaseClosed) ProtoMessage()
func (*EventLeaseClosed) Reset ¶
func (m *EventLeaseClosed) Reset()
func (*EventLeaseClosed) Size ¶
func (m *EventLeaseClosed) Size() (n int)
func (*EventLeaseClosed) String ¶
func (m *EventLeaseClosed) String() string
func (*EventLeaseClosed) Unmarshal ¶
func (m *EventLeaseClosed) Unmarshal(dAtA []byte) error
func (*EventLeaseClosed) XXX_DiscardUnknown ¶
func (m *EventLeaseClosed) XXX_DiscardUnknown()
func (*EventLeaseClosed) XXX_Marshal ¶
func (m *EventLeaseClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventLeaseClosed) XXX_Merge ¶
func (m *EventLeaseClosed) XXX_Merge(src proto.Message)
func (*EventLeaseClosed) XXX_Size ¶
func (m *EventLeaseClosed) XXX_Size() int
func (*EventLeaseClosed) XXX_Unmarshal ¶
func (m *EventLeaseClosed) XXX_Unmarshal(b []byte) error
type EventLeaseCreated ¶
type EventLeaseCreated struct {
ID LeaseID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
Price types.DecCoin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
}
EventLeaseCreated
func (*EventLeaseCreated) Descriptor ¶
func (*EventLeaseCreated) Descriptor() ([]byte, []int)
func (*EventLeaseCreated) GetID ¶
func (m *EventLeaseCreated) GetID() LeaseID
func (*EventLeaseCreated) GetPrice ¶
func (m *EventLeaseCreated) GetPrice() types.DecCoin
func (*EventLeaseCreated) Marshal ¶
func (m *EventLeaseCreated) Marshal() (dAtA []byte, err error)
func (*EventLeaseCreated) MarshalTo ¶
func (m *EventLeaseCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventLeaseCreated) MarshalToSizedBuffer ¶
func (m *EventLeaseCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventLeaseCreated) ProtoMessage ¶
func (*EventLeaseCreated) ProtoMessage()
func (*EventLeaseCreated) Reset ¶
func (m *EventLeaseCreated) Reset()
func (*EventLeaseCreated) Size ¶
func (m *EventLeaseCreated) Size() (n int)
func (*EventLeaseCreated) String ¶
func (m *EventLeaseCreated) String() string
func (*EventLeaseCreated) Unmarshal ¶
func (m *EventLeaseCreated) Unmarshal(dAtA []byte) error
func (*EventLeaseCreated) XXX_DiscardUnknown ¶
func (m *EventLeaseCreated) XXX_DiscardUnknown()
func (*EventLeaseCreated) XXX_Marshal ¶
func (m *EventLeaseCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventLeaseCreated) XXX_Merge ¶
func (m *EventLeaseCreated) XXX_Merge(src proto.Message)
func (*EventLeaseCreated) XXX_Size ¶
func (m *EventLeaseCreated) XXX_Size() int
func (*EventLeaseCreated) XXX_Unmarshal ¶
func (m *EventLeaseCreated) XXX_Unmarshal(b []byte) error
type EventOrderClosed ¶
type EventOrderClosed struct {
ID OrderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
EventOrderClosed
func (*EventOrderClosed) Descriptor ¶
func (*EventOrderClosed) Descriptor() ([]byte, []int)
func (*EventOrderClosed) GetID ¶
func (m *EventOrderClosed) GetID() OrderID
func (*EventOrderClosed) Marshal ¶
func (m *EventOrderClosed) Marshal() (dAtA []byte, err error)
func (*EventOrderClosed) MarshalTo ¶
func (m *EventOrderClosed) MarshalTo(dAtA []byte) (int, error)
func (*EventOrderClosed) MarshalToSizedBuffer ¶
func (m *EventOrderClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderClosed) ProtoMessage ¶
func (*EventOrderClosed) ProtoMessage()
func (*EventOrderClosed) Reset ¶
func (m *EventOrderClosed) Reset()
func (*EventOrderClosed) Size ¶
func (m *EventOrderClosed) Size() (n int)
func (*EventOrderClosed) String ¶
func (m *EventOrderClosed) String() string
func (*EventOrderClosed) Unmarshal ¶
func (m *EventOrderClosed) Unmarshal(dAtA []byte) error
func (*EventOrderClosed) XXX_DiscardUnknown ¶
func (m *EventOrderClosed) XXX_DiscardUnknown()
func (*EventOrderClosed) XXX_Marshal ¶
func (m *EventOrderClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderClosed) XXX_Merge ¶
func (m *EventOrderClosed) XXX_Merge(src proto.Message)
func (*EventOrderClosed) XXX_Size ¶
func (m *EventOrderClosed) XXX_Size() int
func (*EventOrderClosed) XXX_Unmarshal ¶
func (m *EventOrderClosed) XXX_Unmarshal(b []byte) error
type EventOrderCreated ¶
type EventOrderCreated struct {
ID OrderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
EventOrderCreated
func (*EventOrderCreated) Descriptor ¶
func (*EventOrderCreated) Descriptor() ([]byte, []int)
func (*EventOrderCreated) GetID ¶
func (m *EventOrderCreated) GetID() OrderID
func (*EventOrderCreated) Marshal ¶
func (m *EventOrderCreated) Marshal() (dAtA []byte, err error)
func (*EventOrderCreated) MarshalTo ¶
func (m *EventOrderCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventOrderCreated) MarshalToSizedBuffer ¶
func (m *EventOrderCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderCreated) ProtoMessage ¶
func (*EventOrderCreated) ProtoMessage()
func (*EventOrderCreated) Reset ¶
func (m *EventOrderCreated) Reset()
func (*EventOrderCreated) Size ¶
func (m *EventOrderCreated) Size() (n int)
func (*EventOrderCreated) String ¶
func (m *EventOrderCreated) String() string
func (*EventOrderCreated) Unmarshal ¶
func (m *EventOrderCreated) Unmarshal(dAtA []byte) error
func (*EventOrderCreated) XXX_DiscardUnknown ¶
func (m *EventOrderCreated) XXX_DiscardUnknown()
func (*EventOrderCreated) XXX_Marshal ¶
func (m *EventOrderCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderCreated) XXX_Merge ¶
func (m *EventOrderCreated) XXX_Merge(src proto.Message)
func (*EventOrderCreated) XXX_Size ¶
func (m *EventOrderCreated) XXX_Size() int
func (*EventOrderCreated) XXX_Unmarshal ¶
func (m *EventOrderCreated) XXX_Unmarshal(b []byte) error
type Lease ¶
type Lease struct {
ID LeaseID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
State Lease_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1.Lease_State" json:"state" yaml:"state"`
Price types.DecCoin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at" yaml:"created_at"`
ClosedOn int64 `protobuf:"varint,5,opt,name=closed_on,json=closedOn,proto3" json:"closed_on" yaml:"closed_on"`
}
Lease stores LeaseID, state of lease and price
func (*Lease) Descriptor ¶
func (*Lease) Descriptor() ([]byte, []int)
func (Lease) Filters ¶
func (obj Lease) Filters(filters LeaseFilters, stateVal Lease_State) bool
Filters returns whether lease filters valid or not
func (*Lease) GetClosedOn ¶
func (m *Lease) GetClosedOn() int64
func (*Lease) GetCreatedAt ¶
func (m *Lease) GetCreatedAt() int64
func (*Lease) GetID ¶
func (m *Lease) GetID() LeaseID
func (*Lease) GetPrice ¶
func (m *Lease) GetPrice() types.DecCoin
func (*Lease) GetState ¶
func (m *Lease) GetState() Lease_State
func (*Lease) Marshal ¶
func (m *Lease) Marshal() (dAtA []byte, err error)
func (*Lease) MarshalTo ¶
func (m *Lease) MarshalTo(dAtA []byte) (int, error)
func (*Lease) MarshalToSizedBuffer ¶
func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Lease) ProtoMessage ¶
func (*Lease) ProtoMessage()
func (*Lease) Reset ¶
func (m *Lease) Reset()
func (*Lease) Size ¶
func (m *Lease) Size() (n int)
func (Lease) String ¶
func (obj Lease) String() string
String implements the Stringer interface for a Lease object.
func (*Lease) Unmarshal ¶
func (m *Lease) Unmarshal(dAtA []byte) error
func (*Lease) XXX_DiscardUnknown ¶
func (m *Lease) XXX_DiscardUnknown()
func (*Lease) XXX_Marshal ¶
func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Lease) XXX_Merge ¶
func (m *Lease) XXX_Merge(src proto.Message)
func (*Lease) XXX_Size ¶
func (m *Lease) XXX_Size() int
func (*Lease) XXX_Unmarshal ¶
func (m *Lease) XXX_Unmarshal(b []byte) error
type LeaseFilters ¶
type LeaseFilters struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"`
OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state" yaml:"state"`
}
LeaseFilters defines flags for lease list filter
func (*LeaseFilters) Accept ¶
func (filters *LeaseFilters) Accept(obj Lease, stateVal Lease_State) bool
Accept returns whether lease filters valid or not
func (*LeaseFilters) Descriptor ¶
func (*LeaseFilters) Descriptor() ([]byte, []int)
func (*LeaseFilters) GetDSeq ¶
func (m *LeaseFilters) GetDSeq() uint64
func (*LeaseFilters) GetGSeq ¶
func (m *LeaseFilters) GetGSeq() uint32
func (*LeaseFilters) GetOSeq ¶
func (m *LeaseFilters) GetOSeq() uint32
func (*LeaseFilters) GetOwner ¶
func (m *LeaseFilters) GetOwner() string
func (*LeaseFilters) GetProvider ¶
func (m *LeaseFilters) GetProvider() string
func (*LeaseFilters) GetState ¶
func (m *LeaseFilters) GetState() string
func (*LeaseFilters) Marshal ¶
func (m *LeaseFilters) Marshal() (dAtA []byte, err error)
func (*LeaseFilters) MarshalTo ¶
func (m *LeaseFilters) MarshalTo(dAtA []byte) (int, error)
func (*LeaseFilters) MarshalToSizedBuffer ¶
func (m *LeaseFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseFilters) ProtoMessage ¶
func (*LeaseFilters) ProtoMessage()
func (*LeaseFilters) Reset ¶
func (m *LeaseFilters) Reset()
func (*LeaseFilters) Size ¶
func (m *LeaseFilters) Size() (n int)
func (*LeaseFilters) String ¶
func (m *LeaseFilters) String() string
func (*LeaseFilters) Unmarshal ¶
func (m *LeaseFilters) Unmarshal(dAtA []byte) error
func (*LeaseFilters) XXX_DiscardUnknown ¶
func (m *LeaseFilters) XXX_DiscardUnknown()
func (*LeaseFilters) XXX_Marshal ¶
func (m *LeaseFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseFilters) XXX_Merge ¶
func (m *LeaseFilters) XXX_Merge(src proto.Message)
func (*LeaseFilters) XXX_Size ¶
func (m *LeaseFilters) XXX_Size() int
func (*LeaseFilters) XXX_Unmarshal ¶
func (m *LeaseFilters) XXX_Unmarshal(b []byte) error
type LeaseID ¶
type LeaseID struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"`
OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
}
LeaseID stores bid details of lease
func MakeLeaseID ¶
func MakeLeaseID(id BidID) LeaseID
MakeLeaseID returns LeaseID instance with provided bid details
func (LeaseID) BidID ¶
func (id LeaseID) BidID() BidID
BidID method returns BidID details with specific LeaseID
func (LeaseID) DeploymentID ¶
func (id LeaseID) DeploymentID() dtypes.DeploymentID
DeploymentID method returns deployment details with specific lease details
func (*LeaseID) Descriptor ¶
func (*LeaseID) Descriptor() ([]byte, []int)
func (LeaseID) Equals ¶
func (id LeaseID) Equals(other LeaseID) bool
Equals method compares specific lease with provided lease
func (*LeaseID) GetDSeq ¶
func (m *LeaseID) GetDSeq() uint64
func (*LeaseID) GetGSeq ¶
func (m *LeaseID) GetGSeq() uint32
func (*LeaseID) GetOSeq ¶
func (m *LeaseID) GetOSeq() uint32
func (*LeaseID) GetOwner ¶
func (m *LeaseID) GetOwner() string
func (*LeaseID) GetProvider ¶
func (m *LeaseID) GetProvider() string
func (LeaseID) GroupID ¶
func (id LeaseID) GroupID() dtypes.GroupID
GroupID method returns GroupID details with specific lease details
func (*LeaseID) Marshal ¶
func (m *LeaseID) Marshal() (dAtA []byte, err error)
func (*LeaseID) MarshalTo ¶
func (m *LeaseID) MarshalTo(dAtA []byte) (int, error)
func (*LeaseID) MarshalToSizedBuffer ¶
func (m *LeaseID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (LeaseID) OrderID ¶
func (id LeaseID) OrderID() OrderID
OrderID method returns OrderID details with specific lease details
func (*LeaseID) ProtoMessage ¶
func (*LeaseID) ProtoMessage()
func (*LeaseID) Reset ¶
func (m *LeaseID) Reset()
func (*LeaseID) Size ¶
func (m *LeaseID) Size() (n int)
func (LeaseID) String ¶
func (id LeaseID) String() string
String method provides human-readable representation of LeaseID.
func (*LeaseID) Unmarshal ¶
func (m *LeaseID) Unmarshal(dAtA []byte) error
func (LeaseID) Validate ¶
func (id LeaseID) Validate() error
Validate calls the BidID's validator and returns any error.
func (*LeaseID) XXX_DiscardUnknown ¶
func (m *LeaseID) XXX_DiscardUnknown()
func (*LeaseID) XXX_Marshal ¶
func (m *LeaseID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseID) XXX_Merge ¶
func (m *LeaseID) XXX_Merge(src proto.Message)
func (*LeaseID) XXX_Size ¶
func (m *LeaseID) XXX_Size() int
func (*LeaseID) XXX_Unmarshal ¶
func (m *LeaseID) XXX_Unmarshal(b []byte) error
type Lease_State ¶
type Lease_State int32
State is an enum which refers to state of lease
const (
// Prefix should start with 0 in enum. So declaring dummy state
LeaseStateInvalid Lease_State = 0
// LeaseActive denotes state for lease active
LeaseActive Lease_State = 1
// LeaseInsufficientFunds denotes state for lease insufficient_funds
LeaseInsufficientFunds Lease_State = 2
// LeaseClosed denotes state for lease closed
LeaseClosed Lease_State = 3
)
func (Lease_State) EnumDescriptor ¶
func (Lease_State) EnumDescriptor() ([]byte, []int)
func (Lease_State) String ¶
func (x Lease_State) String() string
type Leases ¶
type Leases []Lease
Leases is a collection of Lease
func (Leases) String ¶
func (l Leases) String() string
String implements the Stringer interface for a Leases object.
type OrderID ¶
type OrderID struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"`
OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
}
OrderID stores owner and all other seq numbers
func MakeOrderID ¶
func MakeOrderID(id dtypes.GroupID, oseq uint32) OrderID
MakeOrderID returns OrderID instance with provided groupID details and oseq
func (*OrderID) Descriptor ¶
func (*OrderID) Descriptor() ([]byte, []int)
func (OrderID) Equals ¶
func (id OrderID) Equals(other OrderID) bool
Equals method compares specific order with provided order
func (*OrderID) GetDSeq ¶
func (m *OrderID) GetDSeq() uint64
func (*OrderID) GetGSeq ¶
func (m *OrderID) GetGSeq() uint32
func (*OrderID) GetOSeq ¶
func (m *OrderID) GetOSeq() uint32
func (*OrderID) GetOwner ¶
func (m *OrderID) GetOwner() string
func (OrderID) GroupID ¶
func (id OrderID) GroupID() dtypes.GroupID
GroupID method returns groupID details for specific order
func (*OrderID) Marshal ¶
func (m *OrderID) Marshal() (dAtA []byte, err error)
func (*OrderID) MarshalTo ¶
func (m *OrderID) MarshalTo(dAtA []byte) (int, error)
func (*OrderID) MarshalToSizedBuffer ¶
func (m *OrderID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderID) ProtoMessage ¶
func (*OrderID) ProtoMessage()
func (*OrderID) Reset ¶
func (m *OrderID) Reset()
func (*OrderID) Size ¶
func (m *OrderID) Size() (n int)
func (OrderID) String ¶
func (id OrderID) String() string
String provides stringer interface to save reflected formatting.
func (*OrderID) Unmarshal ¶
func (m *OrderID) Unmarshal(dAtA []byte) error
func (OrderID) Validate ¶
func (id OrderID) Validate() error
Validate method for OrderID and returns nil
func (*OrderID) XXX_DiscardUnknown ¶
func (m *OrderID) XXX_DiscardUnknown()
func (*OrderID) XXX_Marshal ¶
func (m *OrderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderID) XXX_Merge ¶
func (m *OrderID) XXX_Merge(src proto.Message)
func (*OrderID) XXX_Size ¶
func (m *OrderID) XXX_Size() int
func (*OrderID) XXX_Unmarshal ¶
func (m *OrderID) XXX_Unmarshal(b []byte) error