Documentation ¶
Overview ¶
Package api is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v7.1.1.
It is generated from these files:
pando.proto
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type Action
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)deprecated
- func (x *Asset) GetChain() *Asset
- func (x *Asset) GetChainId() string
- func (x *Asset) GetId() string
- func (x *Asset) GetLogo() string
- func (x *Asset) GetName() string
- func (x *Asset) GetPrice() string
- func (x *Asset) GetSymbol() string
- func (*Asset) ProtoMessage()
- func (x *Asset) ProtoReflect() protoreflect.Message
- func (x *Asset) Reset()
- func (x *Asset) String() string
- type Collateral
- func (*Collateral) Descriptor() ([]byte, []int)deprecated
- func (x *Collateral) GetArt() string
- func (x *Collateral) GetBeg() string
- func (x *Collateral) GetBox() string
- func (x *Collateral) GetChop() string
- func (x *Collateral) GetCreatedAt() *timestamppb.Timestamp
- func (x *Collateral) GetDai() string
- func (x *Collateral) GetDebt() string
- func (x *Collateral) GetDunk() string
- func (x *Collateral) GetDust() string
- func (x *Collateral) GetDuty() string
- func (x *Collateral) GetGem() string
- func (x *Collateral) GetId() string
- func (x *Collateral) GetInk() string
- func (x *Collateral) GetLine() string
- func (x *Collateral) GetLitter() string
- func (x *Collateral) GetLive() bool
- func (x *Collateral) GetMat() string
- func (x *Collateral) GetName() string
- func (x *Collateral) GetNumberOfVaults() int64
- func (x *Collateral) GetPrice() string
- func (x *Collateral) GetRate() string
- func (x *Collateral) GetRho() *timestamppb.Timestamp
- func (x *Collateral) GetSupply() string
- func (x *Collateral) GetTau() int32
- func (x *Collateral) GetTtl() int32
- func (*Collateral) ProtoMessage()
- func (x *Collateral) ProtoReflect() protoreflect.Message
- func (x *Collateral) Reset()
- func (x *Collateral) String() string
- type Flip
- func (*Flip) Descriptor() ([]byte, []int)deprecated
- func (x *Flip) GetAction() Action
- func (x *Flip) GetArt() string
- func (x *Flip) GetBid() string
- func (x *Flip) GetCollateralId() string
- func (x *Flip) GetCreatedAt() *timestamppb.Timestamp
- func (x *Flip) GetEnd() *timestamppb.Timestamp
- func (x *Flip) GetGuy() string
- func (x *Flip) GetId() string
- func (x *Flip) GetLot() string
- func (x *Flip) GetTab() string
- func (x *Flip) GetTic() *timestamppb.Timestamp
- func (x *Flip) GetVaultId() string
- func (*Flip) ProtoMessage()
- func (x *Flip) ProtoReflect() protoreflect.Message
- func (x *Flip) Reset()
- func (x *Flip) String() string
- type Flip_Event
- func (*Flip_Event) Descriptor() ([]byte, []int)deprecated
- func (x *Flip_Event) GetAction() Action
- func (x *Flip_Event) GetBid() string
- func (x *Flip_Event) GetCreatedAt() *timestamppb.Timestamp
- func (x *Flip_Event) GetFlipId() string
- func (x *Flip_Event) GetLot() string
- func (*Flip_Event) ProtoMessage()
- func (x *Flip_Event) ProtoReflect() protoreflect.Message
- func (x *Flip_Event) Reset()
- func (x *Flip_Event) String() string
- type HTTPClient
- type Oracle
- func (*Oracle) Descriptor() ([]byte, []int)deprecated
- func (x *Oracle) GetAssetId() string
- func (x *Oracle) GetCurrent() string
- func (x *Oracle) GetGovernors() []string
- func (x *Oracle) GetHop() int32
- func (x *Oracle) GetNext() string
- func (x *Oracle) GetPeekAt() *timestamppb.Timestamp
- func (x *Oracle) GetThreshold() int32
- func (*Oracle) ProtoMessage()
- func (x *Oracle) ProtoReflect() protoreflect.Message
- func (x *Oracle) Reset()
- func (x *Oracle) String() string
- type Pagination
- type Pando
- type Req
- type Req_FindAsset
- type Req_FindCollateral
- type Req_FindFlip
- type Req_FindOracle
- type Req_FindTransaction
- func (*Req_FindTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *Req_FindTransaction) GetId() string
- func (*Req_FindTransaction) ProtoMessage()
- func (x *Req_FindTransaction) ProtoReflect() protoreflect.Message
- func (x *Req_FindTransaction) Reset()
- func (x *Req_FindTransaction) String() string
- type Req_FindVault
- type Req_ListAssets
- type Req_ListCollaterals
- type Req_ListFlipEvents
- type Req_ListFlips
- func (*Req_ListFlips) Descriptor() ([]byte, []int)deprecated
- func (x *Req_ListFlips) GetCursor() string
- func (x *Req_ListFlips) GetLimit() int64
- func (*Req_ListFlips) ProtoMessage()
- func (x *Req_ListFlips) ProtoReflect() protoreflect.Message
- func (x *Req_ListFlips) Reset()
- func (x *Req_ListFlips) String() string
- type Req_ListMyVaults
- func (*Req_ListMyVaults) Descriptor() ([]byte, []int)deprecated
- func (x *Req_ListMyVaults) GetCursor() string
- func (x *Req_ListMyVaults) GetLimit() int64
- func (*Req_ListMyVaults) ProtoMessage()
- func (x *Req_ListMyVaults) ProtoReflect() protoreflect.Message
- func (x *Req_ListMyVaults) Reset()
- func (x *Req_ListMyVaults) String() string
- type Req_ListOracles
- type Req_ListTransactions
- func (*Req_ListTransactions) Descriptor() ([]byte, []int)deprecated
- func (x *Req_ListTransactions) GetCursor() string
- func (x *Req_ListTransactions) GetLimit() int64
- func (*Req_ListTransactions) ProtoMessage()
- func (x *Req_ListTransactions) ProtoReflect() protoreflect.Message
- func (x *Req_ListTransactions) Reset()
- func (x *Req_ListTransactions) String() string
- type Req_ListVaultEvents
- func (*Req_ListVaultEvents) Descriptor() ([]byte, []int)deprecated
- func (x *Req_ListVaultEvents) GetId() string
- func (*Req_ListVaultEvents) ProtoMessage()
- func (x *Req_ListVaultEvents) ProtoReflect() protoreflect.Message
- func (x *Req_ListVaultEvents) Reset()
- func (x *Req_ListVaultEvents) String() string
- type Req_ListVaults
- func (*Req_ListVaults) Descriptor() ([]byte, []int)deprecated
- func (x *Req_ListVaults) GetCollateralId() string
- func (x *Req_ListVaults) GetCursor() string
- func (x *Req_ListVaults) GetLimit() int64
- func (x *Req_ListVaults) GetUserId() string
- func (*Req_ListVaults) ProtoMessage()
- func (x *Req_ListVaults) ProtoReflect() protoreflect.Message
- func (x *Req_ListVaults) Reset()
- func (x *Req_ListVaults) String() string
- type Resp
- type Resp_ListAssets
- type Resp_ListCollaterals
- func (*Resp_ListCollaterals) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListCollaterals) GetCollaterals() []*Collateral
- func (*Resp_ListCollaterals) ProtoMessage()
- func (x *Resp_ListCollaterals) ProtoReflect() protoreflect.Message
- func (x *Resp_ListCollaterals) Reset()
- func (x *Resp_ListCollaterals) String() string
- type Resp_ListFlipEvents
- func (*Resp_ListFlipEvents) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListFlipEvents) GetEvents() []*Flip_Event
- func (*Resp_ListFlipEvents) ProtoMessage()
- func (x *Resp_ListFlipEvents) ProtoReflect() protoreflect.Message
- func (x *Resp_ListFlipEvents) Reset()
- func (x *Resp_ListFlipEvents) String() string
- type Resp_ListFlips
- func (*Resp_ListFlips) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListFlips) GetFlips() []*Flip
- func (x *Resp_ListFlips) GetPagination() *Pagination
- func (*Resp_ListFlips) ProtoMessage()
- func (x *Resp_ListFlips) ProtoReflect() protoreflect.Message
- func (x *Resp_ListFlips) Reset()
- func (x *Resp_ListFlips) String() string
- type Resp_ListOracles
- type Resp_ListTransactions
- func (*Resp_ListTransactions) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListTransactions) GetPagination() *Pagination
- func (x *Resp_ListTransactions) GetTransactions() []*Transaction
- func (*Resp_ListTransactions) ProtoMessage()
- func (x *Resp_ListTransactions) ProtoReflect() protoreflect.Message
- func (x *Resp_ListTransactions) Reset()
- func (x *Resp_ListTransactions) String() string
- type Resp_ListVaultEvents
- func (*Resp_ListVaultEvents) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListVaultEvents) GetEvents() []*Vault_Event
- func (*Resp_ListVaultEvents) ProtoMessage()
- func (x *Resp_ListVaultEvents) ProtoReflect() protoreflect.Message
- func (x *Resp_ListVaultEvents) Reset()
- func (x *Resp_ListVaultEvents) String() string
- type Resp_ListVaults
- func (*Resp_ListVaults) Descriptor() ([]byte, []int)deprecated
- func (x *Resp_ListVaults) GetPagination() *Pagination
- func (x *Resp_ListVaults) GetVaults() []*Vault
- func (*Resp_ListVaults) ProtoMessage()
- func (x *Resp_ListVaults) ProtoReflect() protoreflect.Message
- func (x *Resp_ListVaults) Reset()
- func (x *Resp_ListVaults) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAction() Action
- func (x *Transaction) GetAmount() string
- func (x *Transaction) GetAssetId() string
- func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
- func (x *Transaction) GetId() string
- func (x *Transaction) GetMsg() string
- func (x *Transaction) GetParameters() string
- func (x *Transaction) GetStatus() Transaction_Status
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type Transaction_Status
- func (Transaction_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Transaction_Status) Enum() *Transaction_Status
- func (Transaction_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Transaction_Status) Number() protoreflect.EnumNumber
- func (x Transaction_Status) String() string
- func (Transaction_Status) Type() protoreflect.EnumType
- type TwirpServer
- type Vault
- func (*Vault) Descriptor() ([]byte, []int)deprecated
- func (x *Vault) GetArt() string
- func (x *Vault) GetCollateralId() string
- func (x *Vault) GetCreatedAt() *timestamppb.Timestamp
- func (x *Vault) GetId() string
- func (x *Vault) GetIdentityId() int64
- func (x *Vault) GetInk() string
- func (*Vault) ProtoMessage()
- func (x *Vault) ProtoReflect() protoreflect.Message
- func (x *Vault) Reset()
- func (x *Vault) String() string
- type Vault_Event
- func (*Vault_Event) Descriptor() ([]byte, []int)deprecated
- func (x *Vault_Event) GetAction() Action
- func (x *Vault_Event) GetCreatedAt() *timestamppb.Timestamp
- func (x *Vault_Event) GetDart() string
- func (x *Vault_Event) GetDebt() string
- func (x *Vault_Event) GetDink() string
- func (x *Vault_Event) GetVaultId() string
- func (*Vault_Event) ProtoMessage()
- func (x *Vault_Event) ProtoReflect() protoreflect.Message
- func (x *Vault_Event) Reset()
- func (x *Vault_Event) String() string
Constants ¶
const PandoPathPrefix = "/twirp/fox.pando.service.Pando/"
PandoPathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
Variables ¶
var ( Action_name = map[int32]string{ 0: "_", 1: "SysWithdraw", 11: "ProposalMake", 12: "ProposalShout", 13: "ProposalVote", 21: "CatCreate", 22: "CatSupply", 23: "CatEdit", 24: "CatFold", 31: "VatOpen", 32: "VatDeposit", 33: "VatWithdraw", 34: "VatPayback", 35: "VatGenerate", 41: "FlipKick", 42: "FlipBid", 43: "FlipDeal", 51: "OracleCreate", 52: "OracleEdit", 53: "OraclePoke", 54: "OracleRely", 55: "OracleDeny", } Action_value = map[string]int32{ "_": 0, "SysWithdraw": 1, "ProposalMake": 11, "ProposalShout": 12, "ProposalVote": 13, "CatCreate": 21, "CatSupply": 22, "CatEdit": 23, "CatFold": 24, "VatOpen": 31, "VatDeposit": 32, "VatWithdraw": 33, "VatPayback": 34, "VatGenerate": 35, "FlipKick": 41, "FlipBid": 42, "FlipDeal": 43, "OracleCreate": 51, "OracleEdit": 52, "OraclePoke": 53, "OracleRely": 54, "OracleDeny": 55, } )
Enum value maps for Action.
var ( Transaction_Status_name = map[int32]string{ 0: "Pending", 1: "Abort", 2: "OK", } Transaction_Status_value = map[string]int32{ "Pending": 0, "Abort": 1, "OK": 2, } )
Enum value maps for Transaction_Status.
var File_pando_proto protoreflect.FileDescriptor
Functions ¶
func WriteError ¶
func WriteError(resp http.ResponseWriter, err error)
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)
Types ¶
type Action ¶
type Action int32
const ( Action__ Action = 0 // sys Action_SysWithdraw Action = 1 // proposal Action_ProposalMake Action = 11 Action_ProposalShout Action = 12 Action_ProposalVote Action = 13 // Collateral Action_CatCreate Action = 21 Action_CatSupply Action = 22 Action_CatEdit Action = 23 Action_CatFold Action = 24 // Vaults Action_VatOpen Action = 31 Action_VatDeposit Action = 32 Action_VatWithdraw Action = 33 Action_VatPayback Action = 34 Action_VatGenerate Action = 35 // Flips Action_FlipKick Action = 41 Action_FlipBid Action = 42 Action_FlipDeal Action = 43 // Oracles Action_OracleCreate Action = 51 Action_OracleEdit Action = 52 Action_OraclePoke Action = 53 Action_OracleRely Action = 54 Action_OracleDeny Action = 55 )
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
type Asset ¶
type Asset struct { // mixin asset id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` ChainId string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Chain *Asset `protobuf:"bytes,6,opt,name=chain,proto3" json:"chain,omitempty"` Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Asset) Descriptor
deprecated
func (*Asset) GetChainId ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type Collateral ¶
type Collateral struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Gem string `protobuf:"bytes,4,opt,name=gem,proto3" json:"gem,omitempty"` Dai string `protobuf:"bytes,5,opt,name=dai,proto3" json:"dai,omitempty"` Ink string `protobuf:"bytes,6,opt,name=ink,proto3" json:"ink,omitempty"` Art string `protobuf:"bytes,7,opt,name=art,proto3" json:"art,omitempty"` Rate string `protobuf:"bytes,8,opt,name=rate,proto3" json:"rate,omitempty"` // @inject_tag: swaggertype:"string" format:"date" Rho *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=rho,proto3" json:"rho,omitempty" swaggertype:"string" format:"date"` Debt string `protobuf:"bytes,10,opt,name=debt,proto3" json:"debt,omitempty"` Line string `protobuf:"bytes,11,opt,name=line,proto3" json:"line,omitempty"` Dust string `protobuf:"bytes,12,opt,name=dust,proto3" json:"dust,omitempty"` Price string `protobuf:"bytes,13,opt,name=price,proto3" json:"price,omitempty"` Mat string `protobuf:"bytes,14,opt,name=mat,proto3" json:"mat,omitempty"` Duty string `protobuf:"bytes,15,opt,name=duty,proto3" json:"duty,omitempty"` Chop string `protobuf:"bytes,16,opt,name=chop,proto3" json:"chop,omitempty"` Dunk string `protobuf:"bytes,17,opt,name=dunk,proto3" json:"dunk,omitempty"` Beg string `protobuf:"bytes,18,opt,name=beg,proto3" json:"beg,omitempty"` Ttl int32 `protobuf:"varint,19,opt,name=ttl,proto3" json:"ttl,omitempty"` Tau int32 `protobuf:"varint,20,opt,name=tau,proto3" json:"tau,omitempty"` Live bool `protobuf:"varint,21,opt,name=live,proto3" json:"live,omitempty"` NumberOfVaults int64 `protobuf:"varint,22,opt,name=number_of_vaults,json=numberOfVaults,proto3" json:"number_of_vaults,omitempty"` Box string `protobuf:"bytes,23,opt,name=box,proto3" json:"box,omitempty"` Litter string `protobuf:"bytes,24,opt,name=litter,proto3" json:"litter,omitempty"` Supply string `protobuf:"bytes,25,opt,name=supply,proto3" json:"supply,omitempty"` // contains filtered or unexported fields }
func (*Collateral) Descriptor
deprecated
func (*Collateral) Descriptor() ([]byte, []int)
Deprecated: Use Collateral.ProtoReflect.Descriptor instead.
func (*Collateral) GetArt ¶
func (x *Collateral) GetArt() string
func (*Collateral) GetBeg ¶
func (x *Collateral) GetBeg() string
func (*Collateral) GetBox ¶
func (x *Collateral) GetBox() string
func (*Collateral) GetChop ¶
func (x *Collateral) GetChop() string
func (*Collateral) GetCreatedAt ¶
func (x *Collateral) GetCreatedAt() *timestamppb.Timestamp
func (*Collateral) GetDai ¶
func (x *Collateral) GetDai() string
func (*Collateral) GetDebt ¶
func (x *Collateral) GetDebt() string
func (*Collateral) GetDunk ¶
func (x *Collateral) GetDunk() string
func (*Collateral) GetDust ¶
func (x *Collateral) GetDust() string
func (*Collateral) GetDuty ¶
func (x *Collateral) GetDuty() string
func (*Collateral) GetGem ¶
func (x *Collateral) GetGem() string
func (*Collateral) GetId ¶
func (x *Collateral) GetId() string
func (*Collateral) GetInk ¶
func (x *Collateral) GetInk() string
func (*Collateral) GetLine ¶
func (x *Collateral) GetLine() string
func (*Collateral) GetLitter ¶
func (x *Collateral) GetLitter() string
func (*Collateral) GetLive ¶
func (x *Collateral) GetLive() bool
func (*Collateral) GetMat ¶
func (x *Collateral) GetMat() string
func (*Collateral) GetName ¶
func (x *Collateral) GetName() string
func (*Collateral) GetNumberOfVaults ¶
func (x *Collateral) GetNumberOfVaults() int64
func (*Collateral) GetPrice ¶
func (x *Collateral) GetPrice() string
func (*Collateral) GetRate ¶
func (x *Collateral) GetRate() string
func (*Collateral) GetRho ¶
func (x *Collateral) GetRho() *timestamppb.Timestamp
func (*Collateral) GetSupply ¶ added in v1.2.9
func (x *Collateral) GetSupply() string
func (*Collateral) GetTau ¶
func (x *Collateral) GetTau() int32
func (*Collateral) GetTtl ¶
func (x *Collateral) GetTtl() int32
func (*Collateral) ProtoMessage ¶
func (*Collateral) ProtoMessage()
func (*Collateral) ProtoReflect ¶
func (x *Collateral) ProtoReflect() protoreflect.Message
func (*Collateral) Reset ¶
func (x *Collateral) Reset()
func (*Collateral) String ¶
func (x *Collateral) String() string
type Flip ¶
type Flip struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` // @inject_tag: swaggertype:"string" format:"date" Tic *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=tic,proto3" json:"tic,omitempty" swaggertype:"string" format:"date"` // @inject_tag: swaggertype:"string" format:"date" End *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty" swaggertype:"string" format:"date"` Bid string `protobuf:"bytes,5,opt,name=bid,proto3" json:"bid,omitempty"` Lot string `protobuf:"bytes,6,opt,name=lot,proto3" json:"lot,omitempty"` Tab string `protobuf:"bytes,7,opt,name=tab,proto3" json:"tab,omitempty"` Art string `protobuf:"bytes,8,opt,name=art,proto3" json:"art,omitempty"` CollateralId string `protobuf:"bytes,9,opt,name=collateral_id,json=collateralId,proto3" json:"collateral_id,omitempty"` VaultId string `protobuf:"bytes,10,opt,name=vault_id,json=vaultId,proto3" json:"vault_id,omitempty"` Guy string `protobuf:"bytes,11,opt,name=Guy,proto3" json:"Guy,omitempty"` Action Action `protobuf:"varint,12,opt,name=action,proto3,enum=fox.pando.service.Action" json:"action,omitempty"` // contains filtered or unexported fields }
func (*Flip) Descriptor
deprecated
func (*Flip) GetCollateralId ¶
func (*Flip) GetCreatedAt ¶
func (x *Flip) GetCreatedAt() *timestamppb.Timestamp
func (*Flip) GetEnd ¶
func (x *Flip) GetEnd() *timestamppb.Timestamp
func (*Flip) GetTic ¶
func (x *Flip) GetTic() *timestamppb.Timestamp
func (*Flip) GetVaultId ¶
func (*Flip) ProtoMessage ¶
func (*Flip) ProtoMessage()
func (*Flip) ProtoReflect ¶
func (x *Flip) ProtoReflect() protoreflect.Message
type Flip_Event ¶
type Flip_Event struct { FlipId string `protobuf:"bytes,1,opt,name=flip_id,json=flipId,proto3" json:"flip_id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` Action Action `protobuf:"varint,3,opt,name=action,proto3,enum=fox.pando.service.Action" json:"action,omitempty"` Bid string `protobuf:"bytes,4,opt,name=bid,proto3" json:"bid,omitempty"` Lot string `protobuf:"bytes,5,opt,name=lot,proto3" json:"lot,omitempty"` // contains filtered or unexported fields }
func (*Flip_Event) Descriptor
deprecated
func (*Flip_Event) Descriptor() ([]byte, []int)
Deprecated: Use Flip_Event.ProtoReflect.Descriptor instead.
func (*Flip_Event) GetAction ¶
func (x *Flip_Event) GetAction() Action
func (*Flip_Event) GetBid ¶
func (x *Flip_Event) GetBid() string
func (*Flip_Event) GetCreatedAt ¶
func (x *Flip_Event) GetCreatedAt() *timestamppb.Timestamp
func (*Flip_Event) GetFlipId ¶
func (x *Flip_Event) GetFlipId() string
func (*Flip_Event) GetLot ¶
func (x *Flip_Event) GetLot() string
func (*Flip_Event) ProtoMessage ¶
func (*Flip_Event) ProtoMessage()
func (*Flip_Event) ProtoReflect ¶
func (x *Flip_Event) ProtoReflect() protoreflect.Message
func (*Flip_Event) Reset ¶
func (x *Flip_Event) Reset()
func (*Flip_Event) String ¶
func (x *Flip_Event) String() string
type HTTPClient ¶
HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.
HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.
type Oracle ¶
type Oracle struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Hop int32 `protobuf:"varint,2,opt,name=hop,proto3" json:"hop,omitempty"` Current string `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"` Next string `protobuf:"bytes,4,opt,name=next,proto3" json:"next,omitempty"` // @inject_tag: swaggertype:"string" format:"date" // last update of current price PeekAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=peek_at,json=peekAt,proto3" json:"peek_at,omitempty" swaggertype:"string" format:"date"` Threshold int32 `protobuf:"varint,6,opt,name=threshold,proto3" json:"threshold,omitempty"` Governors []string `protobuf:"bytes,7,rep,name=governors,proto3" json:"governors,omitempty"` // contains filtered or unexported fields }
func (*Oracle) Descriptor
deprecated
func (*Oracle) GetAssetId ¶
func (*Oracle) GetCurrent ¶
func (*Oracle) GetGovernors ¶ added in v1.2.8
func (*Oracle) GetPeekAt ¶
func (x *Oracle) GetPeekAt() *timestamppb.Timestamp
func (*Oracle) GetThreshold ¶ added in v1.2.8
func (*Oracle) ProtoMessage ¶
func (*Oracle) ProtoMessage()
func (*Oracle) ProtoReflect ¶
func (x *Oracle) ProtoReflect() protoreflect.Message
type Pagination ¶
type Pagination struct { NextCursor string `protobuf:"bytes,1,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"` HasNext bool `protobuf:"varint,2,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetHasNext ¶
func (x *Pagination) GetHasNext() bool
func (*Pagination) GetNextCursor ¶
func (x *Pagination) GetNextCursor() string
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type Pando ¶
type Pando interface { // assets FindAsset(context.Context, *Req_FindAsset) (*Asset, error) ListAssets(context.Context, *Req_ListAssets) (*Resp_ListAssets, error) // oracles FindOracle(context.Context, *Req_FindOracle) (*Oracle, error) ListOracles(context.Context, *Req_ListOracles) (*Resp_ListOracles, error) // collaterals ListCollaterals(context.Context, *Req_ListCollaterals) (*Resp_ListCollaterals, error) FindCollateral(context.Context, *Req_FindCollateral) (*Collateral, error) // vaults FindVault(context.Context, *Req_FindVault) (*Vault, error) ListVaults(context.Context, *Req_ListVaults) (*Resp_ListVaults, error) ListMyVaults(context.Context, *Req_ListMyVaults) (*Resp_ListVaults, error) ListVaultEvents(context.Context, *Req_ListVaultEvents) (*Resp_ListVaultEvents, error) // flips FindFlip(context.Context, *Req_FindFlip) (*Flip, error) ListFlips(context.Context, *Req_ListFlips) (*Resp_ListFlips, error) ListFlipEvents(context.Context, *Req_ListFlipEvents) (*Resp_ListFlipEvents, error) // tx FindTransaction(context.Context, *Req_FindTransaction) (*Transaction, error) ListTransactions(context.Context, *Req_ListTransactions) (*Resp_ListTransactions, error) }
func NewPandoJSONClient ¶
func NewPandoJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Pando
NewPandoJSONClient creates a JSON client that implements the Pando interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewPandoProtobufClient ¶
func NewPandoProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Pando
NewPandoProtobufClient creates a Protobuf client that implements the Pando interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Req_FindAsset ¶
type Req_FindAsset struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
func (*Req_FindAsset) Descriptor
deprecated
func (*Req_FindAsset) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindAsset.ProtoReflect.Descriptor instead.
func (*Req_FindAsset) GetId ¶
func (x *Req_FindAsset) GetId() string
func (*Req_FindAsset) ProtoMessage ¶
func (*Req_FindAsset) ProtoMessage()
func (*Req_FindAsset) ProtoReflect ¶
func (x *Req_FindAsset) ProtoReflect() protoreflect.Message
func (*Req_FindAsset) Reset ¶
func (x *Req_FindAsset) Reset()
func (*Req_FindAsset) String ¶
func (x *Req_FindAsset) String() string
type Req_FindCollateral ¶
type Req_FindCollateral struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
Find Collateral By TraceID
func (*Req_FindCollateral) Descriptor
deprecated
func (*Req_FindCollateral) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindCollateral.ProtoReflect.Descriptor instead.
func (*Req_FindCollateral) GetId ¶
func (x *Req_FindCollateral) GetId() string
func (*Req_FindCollateral) ProtoMessage ¶
func (*Req_FindCollateral) ProtoMessage()
func (*Req_FindCollateral) ProtoReflect ¶
func (x *Req_FindCollateral) ProtoReflect() protoreflect.Message
func (*Req_FindCollateral) Reset ¶
func (x *Req_FindCollateral) Reset()
func (*Req_FindCollateral) String ¶
func (x *Req_FindCollateral) String() string
type Req_FindFlip ¶
type Req_FindFlip struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
func (*Req_FindFlip) Descriptor
deprecated
func (*Req_FindFlip) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindFlip.ProtoReflect.Descriptor instead.
func (*Req_FindFlip) GetId ¶
func (x *Req_FindFlip) GetId() string
func (*Req_FindFlip) ProtoMessage ¶
func (*Req_FindFlip) ProtoMessage()
func (*Req_FindFlip) ProtoReflect ¶
func (x *Req_FindFlip) ProtoReflect() protoreflect.Message
func (*Req_FindFlip) Reset ¶
func (x *Req_FindFlip) Reset()
func (*Req_FindFlip) String ¶
func (x *Req_FindFlip) String() string
type Req_FindOracle ¶
type Req_FindOracle struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
func (*Req_FindOracle) Descriptor
deprecated
func (*Req_FindOracle) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindOracle.ProtoReflect.Descriptor instead.
func (*Req_FindOracle) GetId ¶
func (x *Req_FindOracle) GetId() string
func (*Req_FindOracle) ProtoMessage ¶
func (*Req_FindOracle) ProtoMessage()
func (*Req_FindOracle) ProtoReflect ¶
func (x *Req_FindOracle) ProtoReflect() protoreflect.Message
func (*Req_FindOracle) Reset ¶
func (x *Req_FindOracle) Reset()
func (*Req_FindOracle) String ¶
func (x *Req_FindOracle) String() string
type Req_FindTransaction ¶
type Req_FindTransaction struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
Find Tx By FollowID
func (*Req_FindTransaction) Descriptor
deprecated
func (*Req_FindTransaction) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindTransaction.ProtoReflect.Descriptor instead.
func (*Req_FindTransaction) GetId ¶
func (x *Req_FindTransaction) GetId() string
func (*Req_FindTransaction) ProtoMessage ¶
func (*Req_FindTransaction) ProtoMessage()
func (*Req_FindTransaction) ProtoReflect ¶
func (x *Req_FindTransaction) ProtoReflect() protoreflect.Message
func (*Req_FindTransaction) Reset ¶
func (x *Req_FindTransaction) Reset()
func (*Req_FindTransaction) String ¶
func (x *Req_FindTransaction) String() string
type Req_FindVault ¶
type Req_FindVault struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
func (*Req_FindVault) Descriptor
deprecated
func (*Req_FindVault) Descriptor() ([]byte, []int)
Deprecated: Use Req_FindVault.ProtoReflect.Descriptor instead.
func (*Req_FindVault) GetId ¶
func (x *Req_FindVault) GetId() string
func (*Req_FindVault) ProtoMessage ¶
func (*Req_FindVault) ProtoMessage()
func (*Req_FindVault) ProtoReflect ¶
func (x *Req_FindVault) ProtoReflect() protoreflect.Message
func (*Req_FindVault) Reset ¶
func (x *Req_FindVault) Reset()
func (*Req_FindVault) String ¶
func (x *Req_FindVault) String() string
type Req_ListAssets ¶
type Req_ListAssets struct {
// contains filtered or unexported fields
}
func (*Req_ListAssets) Descriptor
deprecated
func (*Req_ListAssets) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListAssets.ProtoReflect.Descriptor instead.
func (*Req_ListAssets) ProtoMessage ¶
func (*Req_ListAssets) ProtoMessage()
func (*Req_ListAssets) ProtoReflect ¶
func (x *Req_ListAssets) ProtoReflect() protoreflect.Message
func (*Req_ListAssets) Reset ¶
func (x *Req_ListAssets) Reset()
func (*Req_ListAssets) String ¶
func (x *Req_ListAssets) String() string
type Req_ListCollaterals ¶
type Req_ListCollaterals struct {
// contains filtered or unexported fields
}
List All Collaterals
func (*Req_ListCollaterals) Descriptor
deprecated
func (*Req_ListCollaterals) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListCollaterals.ProtoReflect.Descriptor instead.
func (*Req_ListCollaterals) ProtoMessage ¶
func (*Req_ListCollaterals) ProtoMessage()
func (*Req_ListCollaterals) ProtoReflect ¶
func (x *Req_ListCollaterals) ProtoReflect() protoreflect.Message
func (*Req_ListCollaterals) Reset ¶
func (x *Req_ListCollaterals) Reset()
func (*Req_ListCollaterals) String ¶
func (x *Req_ListCollaterals) String() string
type Req_ListFlipEvents ¶
type Req_ListFlipEvents struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Req_ListFlipEvents) Descriptor
deprecated
func (*Req_ListFlipEvents) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListFlipEvents.ProtoReflect.Descriptor instead.
func (*Req_ListFlipEvents) GetId ¶
func (x *Req_ListFlipEvents) GetId() string
func (*Req_ListFlipEvents) ProtoMessage ¶
func (*Req_ListFlipEvents) ProtoMessage()
func (*Req_ListFlipEvents) ProtoReflect ¶
func (x *Req_ListFlipEvents) ProtoReflect() protoreflect.Message
func (*Req_ListFlipEvents) Reset ¶
func (x *Req_ListFlipEvents) Reset()
func (*Req_ListFlipEvents) String ¶
func (x *Req_ListFlipEvents) String() string
type Req_ListFlips ¶
type Req_ListFlips struct { Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*Req_ListFlips) Descriptor
deprecated
func (*Req_ListFlips) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListFlips.ProtoReflect.Descriptor instead.
func (*Req_ListFlips) GetCursor ¶
func (x *Req_ListFlips) GetCursor() string
func (*Req_ListFlips) GetLimit ¶
func (x *Req_ListFlips) GetLimit() int64
func (*Req_ListFlips) ProtoMessage ¶
func (*Req_ListFlips) ProtoMessage()
func (*Req_ListFlips) ProtoReflect ¶
func (x *Req_ListFlips) ProtoReflect() protoreflect.Message
func (*Req_ListFlips) Reset ¶
func (x *Req_ListFlips) Reset()
func (*Req_ListFlips) String ¶
func (x *Req_ListFlips) String() string
type Req_ListMyVaults ¶
type Req_ListMyVaults struct { Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*Req_ListMyVaults) Descriptor
deprecated
func (*Req_ListMyVaults) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListMyVaults.ProtoReflect.Descriptor instead.
func (*Req_ListMyVaults) GetCursor ¶
func (x *Req_ListMyVaults) GetCursor() string
func (*Req_ListMyVaults) GetLimit ¶
func (x *Req_ListMyVaults) GetLimit() int64
func (*Req_ListMyVaults) ProtoMessage ¶
func (*Req_ListMyVaults) ProtoMessage()
func (*Req_ListMyVaults) ProtoReflect ¶
func (x *Req_ListMyVaults) ProtoReflect() protoreflect.Message
func (*Req_ListMyVaults) Reset ¶
func (x *Req_ListMyVaults) Reset()
func (*Req_ListMyVaults) String ¶
func (x *Req_ListMyVaults) String() string
type Req_ListOracles ¶
type Req_ListOracles struct {
// contains filtered or unexported fields
}
func (*Req_ListOracles) Descriptor
deprecated
func (*Req_ListOracles) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListOracles.ProtoReflect.Descriptor instead.
func (*Req_ListOracles) ProtoMessage ¶
func (*Req_ListOracles) ProtoMessage()
func (*Req_ListOracles) ProtoReflect ¶
func (x *Req_ListOracles) ProtoReflect() protoreflect.Message
func (*Req_ListOracles) Reset ¶
func (x *Req_ListOracles) Reset()
func (*Req_ListOracles) String ¶
func (x *Req_ListOracles) String() string
type Req_ListTransactions ¶
type Req_ListTransactions struct { Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*Req_ListTransactions) Descriptor
deprecated
func (*Req_ListTransactions) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListTransactions.ProtoReflect.Descriptor instead.
func (*Req_ListTransactions) GetCursor ¶
func (x *Req_ListTransactions) GetCursor() string
func (*Req_ListTransactions) GetLimit ¶
func (x *Req_ListTransactions) GetLimit() int64
func (*Req_ListTransactions) ProtoMessage ¶
func (*Req_ListTransactions) ProtoMessage()
func (*Req_ListTransactions) ProtoReflect ¶
func (x *Req_ListTransactions) ProtoReflect() protoreflect.Message
func (*Req_ListTransactions) Reset ¶
func (x *Req_ListTransactions) Reset()
func (*Req_ListTransactions) String ¶
func (x *Req_ListTransactions) String() string
type Req_ListVaultEvents ¶
type Req_ListVaultEvents struct { // @inject_tag: valid:"uuid,required" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"` // contains filtered or unexported fields }
func (*Req_ListVaultEvents) Descriptor
deprecated
func (*Req_ListVaultEvents) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListVaultEvents.ProtoReflect.Descriptor instead.
func (*Req_ListVaultEvents) GetId ¶
func (x *Req_ListVaultEvents) GetId() string
func (*Req_ListVaultEvents) ProtoMessage ¶
func (*Req_ListVaultEvents) ProtoMessage()
func (*Req_ListVaultEvents) ProtoReflect ¶
func (x *Req_ListVaultEvents) ProtoReflect() protoreflect.Message
func (*Req_ListVaultEvents) Reset ¶
func (x *Req_ListVaultEvents) Reset()
func (*Req_ListVaultEvents) String ¶
func (x *Req_ListVaultEvents) String() string
type Req_ListVaults ¶
type Req_ListVaults struct { CollateralId string `protobuf:"bytes,1,opt,name=collateral_id,json=collateralId,proto3" json:"collateral_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Cursor string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
List All Vaults
func (*Req_ListVaults) Descriptor
deprecated
func (*Req_ListVaults) Descriptor() ([]byte, []int)
Deprecated: Use Req_ListVaults.ProtoReflect.Descriptor instead.
func (*Req_ListVaults) GetCollateralId ¶
func (x *Req_ListVaults) GetCollateralId() string
func (*Req_ListVaults) GetCursor ¶
func (x *Req_ListVaults) GetCursor() string
func (*Req_ListVaults) GetLimit ¶
func (x *Req_ListVaults) GetLimit() int64
func (*Req_ListVaults) GetUserId ¶
func (x *Req_ListVaults) GetUserId() string
func (*Req_ListVaults) ProtoMessage ¶
func (*Req_ListVaults) ProtoMessage()
func (*Req_ListVaults) ProtoReflect ¶
func (x *Req_ListVaults) ProtoReflect() protoreflect.Message
func (*Req_ListVaults) Reset ¶
func (x *Req_ListVaults) Reset()
func (*Req_ListVaults) String ¶
func (x *Req_ListVaults) String() string
type Resp ¶
type Resp struct {
// contains filtered or unexported fields
}
func (*Resp) Descriptor
deprecated
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type Resp_ListAssets ¶
type Resp_ListAssets struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListAssets) Descriptor
deprecated
func (*Resp_ListAssets) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListAssets.ProtoReflect.Descriptor instead.
func (*Resp_ListAssets) GetAssets ¶
func (x *Resp_ListAssets) GetAssets() []*Asset
func (*Resp_ListAssets) ProtoMessage ¶
func (*Resp_ListAssets) ProtoMessage()
func (*Resp_ListAssets) ProtoReflect ¶
func (x *Resp_ListAssets) ProtoReflect() protoreflect.Message
func (*Resp_ListAssets) Reset ¶
func (x *Resp_ListAssets) Reset()
func (*Resp_ListAssets) String ¶
func (x *Resp_ListAssets) String() string
type Resp_ListCollaterals ¶
type Resp_ListCollaterals struct { Collaterals []*Collateral `protobuf:"bytes,1,rep,name=collaterals,proto3" json:"collaterals,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListCollaterals) Descriptor
deprecated
func (*Resp_ListCollaterals) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListCollaterals.ProtoReflect.Descriptor instead.
func (*Resp_ListCollaterals) GetCollaterals ¶
func (x *Resp_ListCollaterals) GetCollaterals() []*Collateral
func (*Resp_ListCollaterals) ProtoMessage ¶
func (*Resp_ListCollaterals) ProtoMessage()
func (*Resp_ListCollaterals) ProtoReflect ¶
func (x *Resp_ListCollaterals) ProtoReflect() protoreflect.Message
func (*Resp_ListCollaterals) Reset ¶
func (x *Resp_ListCollaterals) Reset()
func (*Resp_ListCollaterals) String ¶
func (x *Resp_ListCollaterals) String() string
type Resp_ListFlipEvents ¶
type Resp_ListFlipEvents struct { Events []*Flip_Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListFlipEvents) Descriptor
deprecated
func (*Resp_ListFlipEvents) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListFlipEvents.ProtoReflect.Descriptor instead.
func (*Resp_ListFlipEvents) GetEvents ¶
func (x *Resp_ListFlipEvents) GetEvents() []*Flip_Event
func (*Resp_ListFlipEvents) ProtoMessage ¶
func (*Resp_ListFlipEvents) ProtoMessage()
func (*Resp_ListFlipEvents) ProtoReflect ¶
func (x *Resp_ListFlipEvents) ProtoReflect() protoreflect.Message
func (*Resp_ListFlipEvents) Reset ¶
func (x *Resp_ListFlipEvents) Reset()
func (*Resp_ListFlipEvents) String ¶
func (x *Resp_ListFlipEvents) String() string
type Resp_ListFlips ¶
type Resp_ListFlips struct { Flips []*Flip `protobuf:"bytes,1,rep,name=flips,proto3" json:"flips,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListFlips) Descriptor
deprecated
func (*Resp_ListFlips) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListFlips.ProtoReflect.Descriptor instead.
func (*Resp_ListFlips) GetFlips ¶
func (x *Resp_ListFlips) GetFlips() []*Flip
func (*Resp_ListFlips) GetPagination ¶
func (x *Resp_ListFlips) GetPagination() *Pagination
func (*Resp_ListFlips) ProtoMessage ¶
func (*Resp_ListFlips) ProtoMessage()
func (*Resp_ListFlips) ProtoReflect ¶
func (x *Resp_ListFlips) ProtoReflect() protoreflect.Message
func (*Resp_ListFlips) Reset ¶
func (x *Resp_ListFlips) Reset()
func (*Resp_ListFlips) String ¶
func (x *Resp_ListFlips) String() string
type Resp_ListOracles ¶
type Resp_ListOracles struct { Oracles []*Oracle `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListOracles) Descriptor
deprecated
func (*Resp_ListOracles) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListOracles.ProtoReflect.Descriptor instead.
func (*Resp_ListOracles) GetOracles ¶
func (x *Resp_ListOracles) GetOracles() []*Oracle
func (*Resp_ListOracles) ProtoMessage ¶
func (*Resp_ListOracles) ProtoMessage()
func (*Resp_ListOracles) ProtoReflect ¶
func (x *Resp_ListOracles) ProtoReflect() protoreflect.Message
func (*Resp_ListOracles) Reset ¶
func (x *Resp_ListOracles) Reset()
func (*Resp_ListOracles) String ¶
func (x *Resp_ListOracles) String() string
type Resp_ListTransactions ¶
type Resp_ListTransactions struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListTransactions) Descriptor
deprecated
func (*Resp_ListTransactions) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListTransactions.ProtoReflect.Descriptor instead.
func (*Resp_ListTransactions) GetPagination ¶
func (x *Resp_ListTransactions) GetPagination() *Pagination
func (*Resp_ListTransactions) GetTransactions ¶
func (x *Resp_ListTransactions) GetTransactions() []*Transaction
func (*Resp_ListTransactions) ProtoMessage ¶
func (*Resp_ListTransactions) ProtoMessage()
func (*Resp_ListTransactions) ProtoReflect ¶
func (x *Resp_ListTransactions) ProtoReflect() protoreflect.Message
func (*Resp_ListTransactions) Reset ¶
func (x *Resp_ListTransactions) Reset()
func (*Resp_ListTransactions) String ¶
func (x *Resp_ListTransactions) String() string
type Resp_ListVaultEvents ¶
type Resp_ListVaultEvents struct { Events []*Vault_Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListVaultEvents) Descriptor
deprecated
func (*Resp_ListVaultEvents) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListVaultEvents.ProtoReflect.Descriptor instead.
func (*Resp_ListVaultEvents) GetEvents ¶
func (x *Resp_ListVaultEvents) GetEvents() []*Vault_Event
func (*Resp_ListVaultEvents) ProtoMessage ¶
func (*Resp_ListVaultEvents) ProtoMessage()
func (*Resp_ListVaultEvents) ProtoReflect ¶
func (x *Resp_ListVaultEvents) ProtoReflect() protoreflect.Message
func (*Resp_ListVaultEvents) Reset ¶
func (x *Resp_ListVaultEvents) Reset()
func (*Resp_ListVaultEvents) String ¶
func (x *Resp_ListVaultEvents) String() string
type Resp_ListVaults ¶
type Resp_ListVaults struct { Vaults []*Vault `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Resp_ListVaults) Descriptor
deprecated
func (*Resp_ListVaults) Descriptor() ([]byte, []int)
Deprecated: Use Resp_ListVaults.ProtoReflect.Descriptor instead.
func (*Resp_ListVaults) GetPagination ¶
func (x *Resp_ListVaults) GetPagination() *Pagination
func (*Resp_ListVaults) GetVaults ¶
func (x *Resp_ListVaults) GetVaults() []*Vault
func (*Resp_ListVaults) ProtoMessage ¶
func (*Resp_ListVaults) ProtoMessage()
func (*Resp_ListVaults) ProtoReflect ¶
func (x *Resp_ListVaults) ProtoReflect() protoreflect.Message
func (*Resp_ListVaults) Reset ¶
func (x *Resp_ListVaults) Reset()
func (*Resp_ListVaults) String ¶
func (x *Resp_ListVaults) String() string
type Transaction ¶
type Transaction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` AssetId string `protobuf:"bytes,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` Action Action `protobuf:"varint,5,opt,name=action,proto3,enum=fox.pando.service.Action" json:"action,omitempty"` Status Transaction_Status `protobuf:"varint,6,opt,name=status,proto3,enum=fox.pando.service.Transaction_Status" json:"status,omitempty"` Msg string `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` Parameters string `protobuf:"bytes,8,opt,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAction ¶
func (x *Transaction) GetAction() Action
func (*Transaction) GetAmount ¶
func (x *Transaction) GetAmount() string
func (*Transaction) GetAssetId ¶
func (x *Transaction) GetAssetId() string
func (*Transaction) GetCreatedAt ¶
func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
func (*Transaction) GetId ¶
func (x *Transaction) GetId() string
func (*Transaction) GetMsg ¶
func (x *Transaction) GetMsg() string
func (*Transaction) GetParameters ¶
func (x *Transaction) GetParameters() string
func (*Transaction) GetStatus ¶
func (x *Transaction) GetStatus() Transaction_Status
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type Transaction_Status ¶
type Transaction_Status int32
const ( Transaction_Pending Transaction_Status = 0 Transaction_Abort Transaction_Status = 1 Transaction_OK Transaction_Status = 2 )
func (Transaction_Status) Descriptor ¶
func (Transaction_Status) Descriptor() protoreflect.EnumDescriptor
func (Transaction_Status) Enum ¶
func (x Transaction_Status) Enum() *Transaction_Status
func (Transaction_Status) EnumDescriptor
deprecated
func (Transaction_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Transaction_Status.Descriptor instead.
func (Transaction_Status) Number ¶
func (x Transaction_Status) Number() protoreflect.EnumNumber
func (Transaction_Status) String ¶
func (x Transaction_Status) String() string
func (Transaction_Status) Type ¶
func (Transaction_Status) Type() protoreflect.EnumType
type TwirpServer ¶
type TwirpServer interface { http.Handler // ServiceDescriptor returns gzipped bytes describing the .proto file that // this service was generated from. Once unzipped, the bytes can be // unmarshalled as a // github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto. // // The returned integer is the index of this particular service within that // FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a // low-level field, expected to be used for reflection. ServiceDescriptor() ([]byte, int) // ProtocGenTwirpVersion is the semantic version string of the version of // twirp used to generate this file. ProtocGenTwirpVersion() string // PathPrefix returns the HTTP URL path prefix for all methods handled by this // service. This can be used with an HTTP mux to route Twirp requests. // The path prefix is in the form: "/<prefix>/<package>.<Service>/" // that is, everything in a Twirp route except for the <Method> at the end. PathPrefix() string }
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.
func NewPandoServer ¶
func NewPandoServer(svc Pando, opts ...interface{}) TwirpServer
NewPandoServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
type Vault ¶
type Vault struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` CollateralId string `protobuf:"bytes,3,opt,name=collateral_id,json=collateralId,proto3" json:"collateral_id,omitempty"` Ink string `protobuf:"bytes,4,opt,name=ink,proto3" json:"ink,omitempty"` Art string `protobuf:"bytes,5,opt,name=art,proto3" json:"art,omitempty"` IdentityId int64 `protobuf:"varint,6,opt,name=identity_id,json=identityId,proto3" json:"identity_id,omitempty"` // contains filtered or unexported fields }
func (*Vault) Descriptor
deprecated
func (*Vault) GetCollateralId ¶
func (*Vault) GetCreatedAt ¶
func (x *Vault) GetCreatedAt() *timestamppb.Timestamp
func (*Vault) GetIdentityId ¶
func (*Vault) ProtoMessage ¶
func (*Vault) ProtoMessage()
func (*Vault) ProtoReflect ¶
func (x *Vault) ProtoReflect() protoreflect.Message
type Vault_Event ¶
type Vault_Event struct { VaultId string `protobuf:"bytes,1,opt,name=vault_id,json=vaultId,proto3" json:"vault_id,omitempty"` // @inject_tag: swaggertype:"string" format:"date" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" swaggertype:"string" format:"date"` Action Action `protobuf:"varint,3,opt,name=action,proto3,enum=fox.pando.service.Action" json:"action,omitempty"` Dink string `protobuf:"bytes,4,opt,name=dink,proto3" json:"dink,omitempty"` Dart string `protobuf:"bytes,5,opt,name=dart,proto3" json:"dart,omitempty"` Debt string `protobuf:"bytes,6,opt,name=debt,proto3" json:"debt,omitempty"` // contains filtered or unexported fields }
func (*Vault_Event) Descriptor
deprecated
func (*Vault_Event) Descriptor() ([]byte, []int)
Deprecated: Use Vault_Event.ProtoReflect.Descriptor instead.
func (*Vault_Event) GetAction ¶
func (x *Vault_Event) GetAction() Action
func (*Vault_Event) GetCreatedAt ¶
func (x *Vault_Event) GetCreatedAt() *timestamppb.Timestamp
func (*Vault_Event) GetDart ¶
func (x *Vault_Event) GetDart() string
func (*Vault_Event) GetDebt ¶
func (x *Vault_Event) GetDebt() string
func (*Vault_Event) GetDink ¶
func (x *Vault_Event) GetDink() string
func (*Vault_Event) GetVaultId ¶
func (x *Vault_Event) GetVaultId() string
func (*Vault_Event) ProtoMessage ¶
func (*Vault_Event) ProtoMessage()
func (*Vault_Event) ProtoReflect ¶
func (x *Vault_Event) ProtoReflect() protoreflect.Message
func (*Vault_Event) Reset ¶
func (x *Vault_Event) Reset()
func (*Vault_Event) String ¶
func (x *Vault_Event) String() string