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") )
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) Equals ¶
Equals method compares specific bid with provided bid
func (BidID) GroupID ¶
GroupID method returns GroupID details with specific bid details
func (BidID) LeaseID ¶
LeaseID method returns lease details of bid
func (BidID) OrderID ¶
OrderID method returns OrderID details with specific bid details
func (BidID) Validate ¶
Validate validates bid instance and returns nil
func (*BidID) XXX_Marshal ¶
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) Filters ¶
func (obj Lease) Filters(filters LeaseFilters, stateVal Lease_State) bool
Filters returns whether lease filters valid or not
func (*Lease) GetState ¶
func (m *Lease) GetState() Lease_State
func (Lease) String ¶
String implements the Stringer interface for a Lease object.
func (*Lease) XXX_Marshal ¶
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 ¶
MakeLeaseID returns LeaseID instance with provided bid details
func (LeaseID) 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) Equals ¶
Equals method compares specific lease with provided lease
func (LeaseID) GroupID ¶
GroupID method returns GroupID details with specific lease details
func (*LeaseID) MarshalToSizedBuffer ¶
func (LeaseID) OrderID ¶
OrderID method returns OrderID details with specific lease details
func (LeaseID) String ¶
String method provides human-readable representation of LeaseID.
func (LeaseID) Validate ¶
Validate calls the BidID's validator and returns any error.
func (*LeaseID) XXX_Marshal ¶
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 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 ¶
MakeOrderID returns OrderID instance with provided groupID details and oseq
func (OrderID) Equals ¶
Equals method compares specific order with provided order
func (OrderID) GroupID ¶
GroupID method returns groupID details for specific order
func (*OrderID) MarshalToSizedBuffer ¶
func (OrderID) String ¶
String provides stringer interface to save reflected formatting.
func (OrderID) Validate ¶
Validate method for OrderID and returns nil