pb

package
v2.6.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	QueryIndexRequestSortField_name = map[int32]string{
		0: "TEXTILE_DEALS_TOTAL_SUCCESSFUL",
		1: "TEXTILE_DEALS_LAST_SUCCESSFUL",
		2: "TEXTILE_RETRIEVALS_TOTAL_SUCCESSFUL",
		3: "TEXTILE_RETRIEVALS_LAST_SUCCESSFUL",
		4: "ASK_PRICE",
		5: "VERIFIED_ASK_PRICE",
		6: "ACTIVE_SECTORS",
	}
	QueryIndexRequestSortField_value = map[string]int32{
		"TEXTILE_DEALS_TOTAL_SUCCESSFUL":      0,
		"TEXTILE_DEALS_LAST_SUCCESSFUL":       1,
		"TEXTILE_RETRIEVALS_TOTAL_SUCCESSFUL": 2,
		"TEXTILE_RETRIEVALS_LAST_SUCCESSFUL":  3,
		"ASK_PRICE":                           4,
		"VERIFIED_ASK_PRICE":                  5,
		"ACTIVE_SECTORS":                      6,
	}
)

Enum value maps for QueryIndexRequestSortField.

View Source
var File_api_mindexd_pb_mindexd_proto protoreflect.FileDescriptor

Functions

func RegisterAPIServiceHandler

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

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

func RegisterAPIServiceHandlerClient

func RegisterAPIServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client APIServiceClient) error

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

func RegisterAPIServiceHandlerFromEndpoint

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

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

func RegisterAPIServiceHandlerServer

func RegisterAPIServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server APIServiceServer) error

RegisterAPIServiceHandlerServer registers the http handlers for service APIService to "mux". UnaryRPC :call APIServiceServer 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 RegisterAPIServiceHandlerFromEndpoint instead.

func RegisterAPIServiceServer

func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)

Types

type APIServiceClient

type APIServiceClient interface {
	QueryIndex(ctx context.Context, in *QueryIndexRequest, opts ...grpc.CallOption) (*QueryIndexResponse, error)
	GetMinerInfo(ctx context.Context, in *GetMinerInfoRequest, opts ...grpc.CallOption) (*GetMinerInfoResponse, error)
	CalculateDealPrice(ctx context.Context, in *CalculateDealPriceRequest, opts ...grpc.CallOption) (*CalculateDealPriceResponse, error)
}

APIServiceClient is the client API for APIService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAPIServiceClient

func NewAPIServiceClient(cc grpc.ClientConnInterface) APIServiceClient

type APIServiceServer

APIServiceServer is the server API for APIService service.

type CalculateDealPriceMiner

type CalculateDealPriceMiner struct {
	Miner             string `protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
	TotalCost         string `protobuf:"bytes,2,opt,name=total_cost,json=totalCost,proto3" json:"total_cost,omitempty"`
	VerifiedTotalCost string `protobuf:"bytes,3,opt,name=verified_total_cost,json=verifiedTotalCost,proto3" json:"verified_total_cost,omitempty"`
	Price             string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	VerifiedPrice     string `protobuf:"bytes,5,opt,name=verified_price,json=verifiedPrice,proto3" json:"verified_price,omitempty"`
	// contains filtered or unexported fields
}

func (*CalculateDealPriceMiner) Descriptor deprecated

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

Deprecated: Use CalculateDealPriceMiner.ProtoReflect.Descriptor instead.

func (*CalculateDealPriceMiner) GetMiner

func (x *CalculateDealPriceMiner) GetMiner() string

func (*CalculateDealPriceMiner) GetPrice

func (x *CalculateDealPriceMiner) GetPrice() string

func (*CalculateDealPriceMiner) GetTotalCost

func (x *CalculateDealPriceMiner) GetTotalCost() string

func (*CalculateDealPriceMiner) GetVerifiedPrice

func (x *CalculateDealPriceMiner) GetVerifiedPrice() string

func (*CalculateDealPriceMiner) GetVerifiedTotalCost

func (x *CalculateDealPriceMiner) GetVerifiedTotalCost() string

func (*CalculateDealPriceMiner) ProtoMessage

func (*CalculateDealPriceMiner) ProtoMessage()

func (*CalculateDealPriceMiner) ProtoReflect

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

func (*CalculateDealPriceMiner) Reset

func (x *CalculateDealPriceMiner) Reset()

func (*CalculateDealPriceMiner) String

func (x *CalculateDealPriceMiner) String() string

type CalculateDealPriceRequest

type CalculateDealPriceRequest struct {
	MinerAddresses []string `protobuf:"bytes,1,rep,name=miner_addresses,json=minerAddresses,proto3" json:"miner_addresses,omitempty"`
	DataSizeBytes  int64    `protobuf:"varint,2,opt,name=data_size_bytes,json=dataSizeBytes,proto3" json:"data_size_bytes,omitempty"`
	DurationDays   int64    `protobuf:"varint,3,opt,name=duration_days,json=durationDays,proto3" json:"duration_days,omitempty"`
	// contains filtered or unexported fields
}

rpc CalculateDealPrice

func (*CalculateDealPriceRequest) Descriptor deprecated

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

Deprecated: Use CalculateDealPriceRequest.ProtoReflect.Descriptor instead.

func (*CalculateDealPriceRequest) GetDataSizeBytes

func (x *CalculateDealPriceRequest) GetDataSizeBytes() int64

func (*CalculateDealPriceRequest) GetDurationDays

func (x *CalculateDealPriceRequest) GetDurationDays() int64

func (*CalculateDealPriceRequest) GetMinerAddresses

func (x *CalculateDealPriceRequest) GetMinerAddresses() []string

func (*CalculateDealPriceRequest) ProtoMessage

func (*CalculateDealPriceRequest) ProtoMessage()

func (*CalculateDealPriceRequest) ProtoReflect

func (*CalculateDealPriceRequest) Reset

func (x *CalculateDealPriceRequest) Reset()

func (*CalculateDealPriceRequest) String

func (x *CalculateDealPriceRequest) String() string

type CalculateDealPriceResponse

type CalculateDealPriceResponse struct {
	Results        []*CalculateDealPriceMiner `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	PaddedSize     int64                      `protobuf:"varint,2,opt,name=padded_size,json=paddedSize,proto3" json:"padded_size,omitempty"`
	DurationEpochs int64                      `protobuf:"varint,3,opt,name=duration_epochs,json=durationEpochs,proto3" json:"duration_epochs,omitempty"`
	// contains filtered or unexported fields
}

func (*CalculateDealPriceResponse) Descriptor deprecated

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

Deprecated: Use CalculateDealPriceResponse.ProtoReflect.Descriptor instead.

func (*CalculateDealPriceResponse) GetDurationEpochs

func (x *CalculateDealPriceResponse) GetDurationEpochs() int64

func (*CalculateDealPriceResponse) GetPaddedSize

func (x *CalculateDealPriceResponse) GetPaddedSize() int64

func (*CalculateDealPriceResponse) GetResults

func (*CalculateDealPriceResponse) ProtoMessage

func (*CalculateDealPriceResponse) ProtoMessage()

func (*CalculateDealPriceResponse) ProtoReflect

func (*CalculateDealPriceResponse) Reset

func (x *CalculateDealPriceResponse) Reset()

func (*CalculateDealPriceResponse) String

func (x *CalculateDealPriceResponse) String() string

type DealsSummary

type DealsSummary struct {
	Total       int64                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Last        *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
	Failures    int64                `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
	LastFailure *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"`
	// contains filtered or unexported fields
}

func (*DealsSummary) Descriptor deprecated

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

Deprecated: Use DealsSummary.ProtoReflect.Descriptor instead.

func (*DealsSummary) GetFailures

func (x *DealsSummary) GetFailures() int64

func (*DealsSummary) GetLast

func (x *DealsSummary) GetLast() *timestamp.Timestamp

func (*DealsSummary) GetLastFailure

func (x *DealsSummary) GetLastFailure() *timestamp.Timestamp

func (*DealsSummary) GetTotal

func (x *DealsSummary) GetTotal() int64

func (*DealsSummary) ProtoMessage

func (*DealsSummary) ProtoMessage()

func (*DealsSummary) ProtoReflect

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

func (*DealsSummary) Reset

func (x *DealsSummary) Reset()

func (*DealsSummary) String

func (x *DealsSummary) String() string

type FilecoinInfo

type FilecoinInfo struct {
	RelativePower    float64              `protobuf:"fixed64,1,opt,name=relative_power,json=relativePower,proto3" json:"relative_power,omitempty"`
	AskPrice         string               `protobuf:"bytes,2,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	AskVerifiedPrice string               `protobuf:"bytes,3,opt,name=ask_verified_price,json=askVerifiedPrice,proto3" json:"ask_verified_price,omitempty"`
	MinPieceSize     int64                `protobuf:"varint,4,opt,name=min_piece_size,json=minPieceSize,proto3" json:"min_piece_size,omitempty"`
	MaxPieceSize     int64                `protobuf:"varint,5,opt,name=max_piece_size,json=maxPieceSize,proto3" json:"max_piece_size,omitempty"`
	SectorSize       int64                `protobuf:"varint,6,opt,name=sector_size,json=sectorSize,proto3" json:"sector_size,omitempty"`
	ActiveSectors    int64                `protobuf:"varint,7,opt,name=active_sectors,json=activeSectors,proto3" json:"active_sectors,omitempty"`
	FaultySectors    int64                `protobuf:"varint,8,opt,name=faulty_sectors,json=faultySectors,proto3" json:"faulty_sectors,omitempty"`
	UpdatedAt        *timestamp.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*FilecoinInfo) Descriptor deprecated

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

Deprecated: Use FilecoinInfo.ProtoReflect.Descriptor instead.

func (*FilecoinInfo) GetActiveSectors

func (x *FilecoinInfo) GetActiveSectors() int64

func (*FilecoinInfo) GetAskPrice

func (x *FilecoinInfo) GetAskPrice() string

func (*FilecoinInfo) GetAskVerifiedPrice

func (x *FilecoinInfo) GetAskVerifiedPrice() string

func (*FilecoinInfo) GetFaultySectors

func (x *FilecoinInfo) GetFaultySectors() int64

func (*FilecoinInfo) GetMaxPieceSize

func (x *FilecoinInfo) GetMaxPieceSize() int64

func (*FilecoinInfo) GetMinPieceSize

func (x *FilecoinInfo) GetMinPieceSize() int64

func (*FilecoinInfo) GetRelativePower

func (x *FilecoinInfo) GetRelativePower() float64

func (*FilecoinInfo) GetSectorSize

func (x *FilecoinInfo) GetSectorSize() int64

func (*FilecoinInfo) GetUpdatedAt

func (x *FilecoinInfo) GetUpdatedAt() *timestamp.Timestamp

func (*FilecoinInfo) ProtoMessage

func (*FilecoinInfo) ProtoMessage()

func (*FilecoinInfo) ProtoReflect

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

func (*FilecoinInfo) Reset

func (x *FilecoinInfo) Reset()

func (*FilecoinInfo) String

func (x *FilecoinInfo) String() string

type GetMinerInfoRequest

type GetMinerInfoRequest struct {
	MinerAddress string `protobuf:"bytes,1,opt,name=miner_address,json=minerAddress,proto3" json:"miner_address,omitempty"`
	// contains filtered or unexported fields
}

rpc GetMinerInfo

func (*GetMinerInfoRequest) Descriptor deprecated

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

Deprecated: Use GetMinerInfoRequest.ProtoReflect.Descriptor instead.

func (*GetMinerInfoRequest) GetMinerAddress

func (x *GetMinerInfoRequest) GetMinerAddress() string

func (*GetMinerInfoRequest) ProtoMessage

func (*GetMinerInfoRequest) ProtoMessage()

func (*GetMinerInfoRequest) ProtoReflect

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

func (*GetMinerInfoRequest) Reset

func (x *GetMinerInfoRequest) Reset()

func (*GetMinerInfoRequest) String

func (x *GetMinerInfoRequest) String() string

type GetMinerInfoResponse

type GetMinerInfoResponse struct {
	Info *MinerIndexInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMinerInfoResponse) Descriptor deprecated

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

Deprecated: Use GetMinerInfoResponse.ProtoReflect.Descriptor instead.

func (*GetMinerInfoResponse) GetInfo

func (x *GetMinerInfoResponse) GetInfo() *MinerIndexInfo

func (*GetMinerInfoResponse) ProtoMessage

func (*GetMinerInfoResponse) ProtoMessage()

func (*GetMinerInfoResponse) ProtoReflect

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

func (*GetMinerInfoResponse) Reset

func (x *GetMinerInfoResponse) Reset()

func (*GetMinerInfoResponse) String

func (x *GetMinerInfoResponse) String() string

type GetMinersResponse

type GetMinersResponse struct {
	MinerAddress string `protobuf:"bytes,1,opt,name=miner_address,json=minerAddress,proto3" json:"miner_address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMinersResponse) Descriptor deprecated

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

Deprecated: Use GetMinersResponse.ProtoReflect.Descriptor instead.

func (*GetMinersResponse) GetMinerAddress

func (x *GetMinersResponse) GetMinerAddress() string

func (*GetMinersResponse) ProtoMessage

func (*GetMinersResponse) ProtoMessage()

func (*GetMinersResponse) ProtoReflect

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

func (*GetMinersResponse) Reset

func (x *GetMinersResponse) Reset()

func (*GetMinersResponse) String

func (x *GetMinersResponse) String() string

type MetadataInfo

type MetadataInfo struct {
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*MetadataInfo) Descriptor deprecated

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

Deprecated: Use MetadataInfo.ProtoReflect.Descriptor instead.

func (*MetadataInfo) GetLocation

func (x *MetadataInfo) GetLocation() string

func (*MetadataInfo) ProtoMessage

func (*MetadataInfo) ProtoMessage()

func (*MetadataInfo) ProtoReflect

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

func (*MetadataInfo) Reset

func (x *MetadataInfo) Reset()

func (*MetadataInfo) String

func (x *MetadataInfo) String() string

type MinerIndexInfo

type MinerIndexInfo struct {
	MinerAddr string               `protobuf:"bytes,1,opt,name=miner_addr,json=minerAddr,proto3" json:"miner_addr,omitempty"`
	Metadata  *MetadataInfo        `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Filecoin  *FilecoinInfo        `protobuf:"bytes,3,opt,name=filecoin,proto3" json:"filecoin,omitempty"`
	Textile   *TextileInfo         `protobuf:"bytes,4,opt,name=textile,proto3" json:"textile,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Domain

func (*MinerIndexInfo) Descriptor deprecated

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

Deprecated: Use MinerIndexInfo.ProtoReflect.Descriptor instead.

func (*MinerIndexInfo) GetFilecoin

func (x *MinerIndexInfo) GetFilecoin() *FilecoinInfo

func (*MinerIndexInfo) GetMetadata

func (x *MinerIndexInfo) GetMetadata() *MetadataInfo

func (*MinerIndexInfo) GetMinerAddr

func (x *MinerIndexInfo) GetMinerAddr() string

func (*MinerIndexInfo) GetTextile

func (x *MinerIndexInfo) GetTextile() *TextileInfo

func (*MinerIndexInfo) GetUpdatedAt

func (x *MinerIndexInfo) GetUpdatedAt() *timestamp.Timestamp

func (*MinerIndexInfo) ProtoMessage

func (*MinerIndexInfo) ProtoMessage()

func (*MinerIndexInfo) ProtoReflect

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

func (*MinerIndexInfo) Reset

func (x *MinerIndexInfo) Reset()

func (*MinerIndexInfo) String

func (x *MinerIndexInfo) String() string

type QueryIndexRequest

type QueryIndexRequest struct {
	Filters *QueryIndexRequestFilters `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters,omitempty"`
	Sort    *QueryIndexRequestSort    `protobuf:"bytes,2,opt,name=sort,proto3" json:"sort,omitempty"`
	Limit   int32                     `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  int64                     `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

rpc QueryIndexDashboard

func (*QueryIndexRequest) Descriptor deprecated

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

Deprecated: Use QueryIndexRequest.ProtoReflect.Descriptor instead.

func (*QueryIndexRequest) GetFilters

func (*QueryIndexRequest) GetLimit

func (x *QueryIndexRequest) GetLimit() int32

func (*QueryIndexRequest) GetOffset

func (x *QueryIndexRequest) GetOffset() int64

func (*QueryIndexRequest) GetSort

func (*QueryIndexRequest) ProtoMessage

func (*QueryIndexRequest) ProtoMessage()

func (*QueryIndexRequest) ProtoReflect

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

func (*QueryIndexRequest) Reset

func (x *QueryIndexRequest) Reset()

func (*QueryIndexRequest) String

func (x *QueryIndexRequest) String() string

type QueryIndexRequestFilters

type QueryIndexRequestFilters struct {
	MinerLocation string `protobuf:"bytes,1,opt,name=miner_location,json=minerLocation,proto3" json:"miner_location,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIndexRequestFilters) Descriptor deprecated

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

Deprecated: Use QueryIndexRequestFilters.ProtoReflect.Descriptor instead.

func (*QueryIndexRequestFilters) GetMinerLocation

func (x *QueryIndexRequestFilters) GetMinerLocation() string

func (*QueryIndexRequestFilters) ProtoMessage

func (*QueryIndexRequestFilters) ProtoMessage()

func (*QueryIndexRequestFilters) ProtoReflect

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

func (*QueryIndexRequestFilters) Reset

func (x *QueryIndexRequestFilters) Reset()

func (*QueryIndexRequestFilters) String

func (x *QueryIndexRequestFilters) String() string

type QueryIndexRequestSort

type QueryIndexRequestSort struct {
	Ascending     bool                       `protobuf:"varint,1,opt,name=ascending,proto3" json:"ascending,omitempty"`
	TextileRegion string                     `protobuf:"bytes,2,opt,name=textile_region,json=textileRegion,proto3" json:"textile_region,omitempty"`
	Field         QueryIndexRequestSortField `protobuf:"varint,3,opt,name=field,proto3,enum=api.mindexd.pb.QueryIndexRequestSortField" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIndexRequestSort) Descriptor deprecated

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

Deprecated: Use QueryIndexRequestSort.ProtoReflect.Descriptor instead.

func (*QueryIndexRequestSort) GetAscending

func (x *QueryIndexRequestSort) GetAscending() bool

func (*QueryIndexRequestSort) GetField

func (*QueryIndexRequestSort) GetTextileRegion

func (x *QueryIndexRequestSort) GetTextileRegion() string

func (*QueryIndexRequestSort) ProtoMessage

func (*QueryIndexRequestSort) ProtoMessage()

func (*QueryIndexRequestSort) ProtoReflect

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

func (*QueryIndexRequestSort) Reset

func (x *QueryIndexRequestSort) Reset()

func (*QueryIndexRequestSort) String

func (x *QueryIndexRequestSort) String() string

type QueryIndexRequestSortField

type QueryIndexRequestSortField int32
const (
	QueryIndexRequestSortField_TEXTILE_DEALS_TOTAL_SUCCESSFUL      QueryIndexRequestSortField = 0
	QueryIndexRequestSortField_TEXTILE_DEALS_LAST_SUCCESSFUL       QueryIndexRequestSortField = 1
	QueryIndexRequestSortField_TEXTILE_RETRIEVALS_TOTAL_SUCCESSFUL QueryIndexRequestSortField = 2
	QueryIndexRequestSortField_TEXTILE_RETRIEVALS_LAST_SUCCESSFUL  QueryIndexRequestSortField = 3
	QueryIndexRequestSortField_ASK_PRICE                           QueryIndexRequestSortField = 4
	QueryIndexRequestSortField_VERIFIED_ASK_PRICE                  QueryIndexRequestSortField = 5
	QueryIndexRequestSortField_ACTIVE_SECTORS                      QueryIndexRequestSortField = 6
)

func (QueryIndexRequestSortField) Descriptor

func (QueryIndexRequestSortField) Enum

func (QueryIndexRequestSortField) EnumDescriptor deprecated

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

Deprecated: Use QueryIndexRequestSortField.Descriptor instead.

func (QueryIndexRequestSortField) Number

func (QueryIndexRequestSortField) String

func (QueryIndexRequestSortField) Type

type QueryIndexResponse

type QueryIndexResponse struct {
	Miners []*QueryIndexResponseMiner `protobuf:"bytes,1,rep,name=miners,proto3" json:"miners,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIndexResponse) Descriptor deprecated

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

Deprecated: Use QueryIndexResponse.ProtoReflect.Descriptor instead.

func (*QueryIndexResponse) GetMiners

func (x *QueryIndexResponse) GetMiners() []*QueryIndexResponseMiner

func (*QueryIndexResponse) ProtoMessage

func (*QueryIndexResponse) ProtoMessage()

func (*QueryIndexResponse) ProtoReflect

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

func (*QueryIndexResponse) Reset

func (x *QueryIndexResponse) Reset()

func (*QueryIndexResponse) String

func (x *QueryIndexResponse) String() string

type QueryIndexResponseMiner

type QueryIndexResponseMiner struct {
	Miner *MinerIndexInfo `protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIndexResponseMiner) Descriptor deprecated

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

Deprecated: Use QueryIndexResponseMiner.ProtoReflect.Descriptor instead.

func (*QueryIndexResponseMiner) GetMiner

func (x *QueryIndexResponseMiner) GetMiner() *MinerIndexInfo

func (*QueryIndexResponseMiner) ProtoMessage

func (*QueryIndexResponseMiner) ProtoMessage()

func (*QueryIndexResponseMiner) ProtoReflect

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

func (*QueryIndexResponseMiner) Reset

func (x *QueryIndexResponseMiner) Reset()

func (*QueryIndexResponseMiner) String

func (x *QueryIndexResponseMiner) String() string

type RetrievalsSummary

type RetrievalsSummary struct {
	Total       int64                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Last        *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
	Failures    int64                `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
	LastFailure *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrievalsSummary) Descriptor deprecated

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

Deprecated: Use RetrievalsSummary.ProtoReflect.Descriptor instead.

func (*RetrievalsSummary) GetFailures

func (x *RetrievalsSummary) GetFailures() int64

func (*RetrievalsSummary) GetLast

func (x *RetrievalsSummary) GetLast() *timestamp.Timestamp

func (*RetrievalsSummary) GetLastFailure

func (x *RetrievalsSummary) GetLastFailure() *timestamp.Timestamp

func (*RetrievalsSummary) GetTotal

func (x *RetrievalsSummary) GetTotal() int64

func (*RetrievalsSummary) ProtoMessage

func (*RetrievalsSummary) ProtoMessage()

func (*RetrievalsSummary) ProtoReflect

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

func (*RetrievalsSummary) Reset

func (x *RetrievalsSummary) Reset()

func (*RetrievalsSummary) String

func (x *RetrievalsSummary) String() string

type SealedDurationMins

type SealedDurationMins struct {
	SealedAt        *timestamp.Timestamp `protobuf:"bytes,1,opt,name=sealed_at,json=sealedAt,proto3" json:"sealed_at,omitempty"`
	DurationSeconds int64                `protobuf:"varint,2,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*SealedDurationMins) Descriptor deprecated

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

Deprecated: Use SealedDurationMins.ProtoReflect.Descriptor instead.

func (*SealedDurationMins) GetDurationSeconds

func (x *SealedDurationMins) GetDurationSeconds() int64

func (*SealedDurationMins) GetSealedAt

func (x *SealedDurationMins) GetSealedAt() *timestamp.Timestamp

func (*SealedDurationMins) ProtoMessage

func (*SealedDurationMins) ProtoMessage()

func (*SealedDurationMins) ProtoReflect

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

func (*SealedDurationMins) Reset

func (x *SealedDurationMins) Reset()

func (*SealedDurationMins) String

func (x *SealedDurationMins) String() string

type TextileDealsInfo

type TextileDealsInfo struct {
	Total         int64                 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Last          *timestamp.Timestamp  `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
	Failures      int64                 `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
	LastFailure   *timestamp.Timestamp  `protobuf:"bytes,4,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"`
	TailTransfers []*TransferMiBPerSec  `protobuf:"bytes,5,rep,name=tail_transfers,json=tailTransfers,proto3" json:"tail_transfers,omitempty"`
	TailSealed    []*SealedDurationMins `protobuf:"bytes,6,rep,name=tail_sealed,json=tailSealed,proto3" json:"tail_sealed,omitempty"`
	// contains filtered or unexported fields
}

func (*TextileDealsInfo) Descriptor deprecated

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

Deprecated: Use TextileDealsInfo.ProtoReflect.Descriptor instead.

func (*TextileDealsInfo) GetFailures

func (x *TextileDealsInfo) GetFailures() int64

func (*TextileDealsInfo) GetLast

func (x *TextileDealsInfo) GetLast() *timestamp.Timestamp

func (*TextileDealsInfo) GetLastFailure

func (x *TextileDealsInfo) GetLastFailure() *timestamp.Timestamp

func (*TextileDealsInfo) GetTailSealed

func (x *TextileDealsInfo) GetTailSealed() []*SealedDurationMins

func (*TextileDealsInfo) GetTailTransfers

func (x *TextileDealsInfo) GetTailTransfers() []*TransferMiBPerSec

func (*TextileDealsInfo) GetTotal

func (x *TextileDealsInfo) GetTotal() int64

func (*TextileDealsInfo) ProtoMessage

func (*TextileDealsInfo) ProtoMessage()

func (*TextileDealsInfo) ProtoReflect

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

func (*TextileDealsInfo) Reset

func (x *TextileDealsInfo) Reset()

func (*TextileDealsInfo) String

func (x *TextileDealsInfo) String() string

type TextileInfo

type TextileInfo struct {
	Regions           map[string]*TextileRegionInfo `` /* 155-byte string literal not displayed */
	DealsSummary      *DealsSummary                 `protobuf:"bytes,2,opt,name=deals_summary,json=dealsSummary,proto3" json:"deals_summary,omitempty"`
	RetrievalsSummary *RetrievalsSummary            `protobuf:"bytes,3,opt,name=retrievals_summary,json=retrievalsSummary,proto3" json:"retrievals_summary,omitempty"`
	UpdatedAt         *timestamp.Timestamp          `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TextileInfo) Descriptor deprecated

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

Deprecated: Use TextileInfo.ProtoReflect.Descriptor instead.

func (*TextileInfo) GetDealsSummary

func (x *TextileInfo) GetDealsSummary() *DealsSummary

func (*TextileInfo) GetRegions

func (x *TextileInfo) GetRegions() map[string]*TextileRegionInfo

func (*TextileInfo) GetRetrievalsSummary

func (x *TextileInfo) GetRetrievalsSummary() *RetrievalsSummary

func (*TextileInfo) GetUpdatedAt

func (x *TextileInfo) GetUpdatedAt() *timestamp.Timestamp

func (*TextileInfo) ProtoMessage

func (*TextileInfo) ProtoMessage()

func (*TextileInfo) ProtoReflect

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

func (*TextileInfo) Reset

func (x *TextileInfo) Reset()

func (*TextileInfo) String

func (x *TextileInfo) String() string

type TextileRegionInfo

type TextileRegionInfo struct {
	Deals      *TextileDealsInfo      `protobuf:"bytes,1,opt,name=deals,proto3" json:"deals,omitempty"`
	Retrievals *TextileRetrievalsInfo `protobuf:"bytes,2,opt,name=retrievals,proto3" json:"retrievals,omitempty"`
	// contains filtered or unexported fields
}

func (*TextileRegionInfo) Descriptor deprecated

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

Deprecated: Use TextileRegionInfo.ProtoReflect.Descriptor instead.

func (*TextileRegionInfo) GetDeals

func (x *TextileRegionInfo) GetDeals() *TextileDealsInfo

func (*TextileRegionInfo) GetRetrievals

func (x *TextileRegionInfo) GetRetrievals() *TextileRetrievalsInfo

func (*TextileRegionInfo) ProtoMessage

func (*TextileRegionInfo) ProtoMessage()

func (*TextileRegionInfo) ProtoReflect

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

func (*TextileRegionInfo) Reset

func (x *TextileRegionInfo) Reset()

func (*TextileRegionInfo) String

func (x *TextileRegionInfo) String() string

type TextileRetrievalsInfo

type TextileRetrievalsInfo struct {
	Total         int64                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Last          *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
	Failures      int64                `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
	LastFailure   *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"`
	TailTransfers []*TransferMiBPerSec `protobuf:"bytes,5,rep,name=tail_transfers,json=tailTransfers,proto3" json:"tail_transfers,omitempty"`
	// contains filtered or unexported fields
}

func (*TextileRetrievalsInfo) Descriptor deprecated

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

Deprecated: Use TextileRetrievalsInfo.ProtoReflect.Descriptor instead.

func (*TextileRetrievalsInfo) GetFailures

func (x *TextileRetrievalsInfo) GetFailures() int64

func (*TextileRetrievalsInfo) GetLast

func (*TextileRetrievalsInfo) GetLastFailure

func (x *TextileRetrievalsInfo) GetLastFailure() *timestamp.Timestamp

func (*TextileRetrievalsInfo) GetTailTransfers

func (x *TextileRetrievalsInfo) GetTailTransfers() []*TransferMiBPerSec

func (*TextileRetrievalsInfo) GetTotal

func (x *TextileRetrievalsInfo) GetTotal() int64

func (*TextileRetrievalsInfo) ProtoMessage

func (*TextileRetrievalsInfo) ProtoMessage()

func (*TextileRetrievalsInfo) ProtoReflect

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

func (*TextileRetrievalsInfo) Reset

func (x *TextileRetrievalsInfo) Reset()

func (*TextileRetrievalsInfo) String

func (x *TextileRetrievalsInfo) String() string

type TransferMiBPerSec

type TransferMiBPerSec struct {
	TransferedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=transfered_at,json=transferedAt,proto3" json:"transfered_at,omitempty"`
	MibPerSec    float64              `protobuf:"fixed64,2,opt,name=mib_per_sec,json=mibPerSec,proto3" json:"mib_per_sec,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferMiBPerSec) Descriptor deprecated

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

Deprecated: Use TransferMiBPerSec.ProtoReflect.Descriptor instead.

func (*TransferMiBPerSec) GetMibPerSec

func (x *TransferMiBPerSec) GetMibPerSec() float64

func (*TransferMiBPerSec) GetTransferedAt

func (x *TransferMiBPerSec) GetTransferedAt() *timestamp.Timestamp

func (*TransferMiBPerSec) ProtoMessage

func (*TransferMiBPerSec) ProtoMessage()

func (*TransferMiBPerSec) ProtoReflect

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

func (*TransferMiBPerSec) Reset

func (x *TransferMiBPerSec) Reset()

func (*TransferMiBPerSec) String

func (x *TransferMiBPerSec) String() string

type UnimplementedAPIServiceServer

type UnimplementedAPIServiceServer struct {
}

UnimplementedAPIServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAPIServiceServer) CalculateDealPrice

func (*UnimplementedAPIServiceServer) GetMinerInfo

func (*UnimplementedAPIServiceServer) QueryIndex

Jump to

Keyboard shortcuts

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