api

package
v1.9.1-test Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const PandoPathPrefix = "/twirp/fox.pando.service.Pando/"

PandoPathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html

Variables

View Source
var (
	Action_name = map[int32]string{
		0:  "_",
		1:  "SysWithdraw",
		2:  "ActionSysProperty",
		11: "ProposalMake",
		12: "ProposalShout",
		13: "ProposalVote",
		21: "CatCreate",
		22: "CatSupply",
		23: "CatEdit",
		24: "CatFold",
		25: "CatMove",
		26: "CatGain",
		27: "CatFill",
		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,
		"ActionSysProperty": 2,
		"ProposalMake":      11,
		"ProposalShout":     12,
		"ProposalVote":      13,
		"CatCreate":         21,
		"CatSupply":         22,
		"CatEdit":           23,
		"CatFold":           24,
		"CatMove":           25,
		"CatGain":           26,
		"CatFill":           27,
		"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.

View Source
var (
	Flip_Tag_name = map[int32]string{
		0: "MyVault",
		1: "Participated",
		2: "Leading",
	}
	Flip_Tag_value = map[string]int32{
		"MyVault":      0,
		"Participated": 1,
		"Leading":      2,
	}
)

Enum value maps for Flip_Tag.

View Source
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.

View Source
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
	Action_ActionSysProperty Action = 2
	// 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
	Action_CatMove   Action = 25
	Action_CatGain   Action = 26
	Action_CatFill   Action = 27
	// 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) Enum

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated

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

Deprecated: Use Action.Descriptor instead.

func (Action) Number

func (x Action) Number() protoreflect.EnumNumber

func (Action) String

func (x Action) String() string

func (Action) Type

func (Action) Type() protoreflect.EnumType

type AggregatedStat added in v1.9.1

type AggregatedStat struct {

	// @inject_tag: swaggertype:"string" format:"date"
	Date      *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty" swaggertype:"string" format:"date"`
	Timestamp int64                  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	GemValue  string                 `protobuf:"bytes,3,opt,name=gem_value,json=gemValue,proto3" json:"gem_value,omitempty"`
	DaiValue  string                 `protobuf:"bytes,5,opt,name=dai_value,json=daiValue,proto3" json:"dai_value,omitempty"`
	// contains filtered or unexported fields
}

func (*AggregatedStat) Descriptor deprecated added in v1.9.1

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

Deprecated: Use AggregatedStat.ProtoReflect.Descriptor instead.

func (*AggregatedStat) GetDaiValue added in v1.9.1

func (x *AggregatedStat) GetDaiValue() string

func (*AggregatedStat) GetDate added in v1.9.1

func (x *AggregatedStat) GetDate() *timestamppb.Timestamp

func (*AggregatedStat) GetGemValue added in v1.9.1

func (x *AggregatedStat) GetGemValue() string

func (*AggregatedStat) GetTimestamp added in v1.9.1

func (x *AggregatedStat) GetTimestamp() int64

func (*AggregatedStat) ProtoMessage added in v1.9.1

func (*AggregatedStat) ProtoMessage()

func (*AggregatedStat) ProtoReflect added in v1.9.1

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

func (*AggregatedStat) Reset added in v1.9.1

func (x *AggregatedStat) Reset()

func (*AggregatedStat) String added in v1.9.1

func (x *AggregatedStat) String() string

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"`
	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) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetChain

func (x *Asset) GetChain() *Asset

func (*Asset) GetChainId

func (x *Asset) GetChainId() string

func (*Asset) GetId

func (x *Asset) GetId() string
func (x *Asset) GetLogo() string

func (*Asset) GetName

func (x *Asset) GetName() string

func (*Asset) GetPrice

func (x *Asset) GetPrice() string

func (*Asset) GetSymbol

func (x *Asset) GetSymbol() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

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"`
	Tags         []Flip_Tag             `protobuf:"varint,13,rep,packed,name=tags,proto3,enum=fox.pando.service.Flip_Tag" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Flip) Descriptor deprecated

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

Deprecated: Use Flip.ProtoReflect.Descriptor instead.

func (*Flip) GetAction

func (x *Flip) GetAction() Action

func (*Flip) GetArt

func (x *Flip) GetArt() string

func (*Flip) GetBid

func (x *Flip) GetBid() string

func (*Flip) GetCollateralId

func (x *Flip) GetCollateralId() string

func (*Flip) GetCreatedAt

func (x *Flip) GetCreatedAt() *timestamppb.Timestamp

func (*Flip) GetEnd

func (x *Flip) GetEnd() *timestamppb.Timestamp

func (*Flip) GetGuy

func (x *Flip) GetGuy() string

func (*Flip) GetId

func (x *Flip) GetId() string

func (*Flip) GetLot

func (x *Flip) GetLot() string

func (*Flip) GetTab

func (x *Flip) GetTab() string

func (*Flip) GetTags added in v1.8.9

func (x *Flip) GetTags() []Flip_Tag

func (*Flip) GetTic

func (x *Flip) GetTic() *timestamppb.Timestamp

func (*Flip) GetVaultId

func (x *Flip) GetVaultId() string

func (*Flip) ProtoMessage

func (*Flip) ProtoMessage()

func (*Flip) ProtoReflect

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

func (*Flip) Reset

func (x *Flip) Reset()

func (*Flip) String

func (x *Flip) String() string

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"`
	IsMe      bool                   `protobuf:"varint,6,opt,name=is_me,json=isMe,proto3" json:"is_me,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) GetIsMe added in v1.8.7

func (x *Flip_Event) GetIsMe() bool

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 Flip_Tag added in v1.8.9

type Flip_Tag int32
const (
	Flip_MyVault      Flip_Tag = 0
	Flip_Participated Flip_Tag = 1
	Flip_Leading      Flip_Tag = 2
)

func (Flip_Tag) Descriptor added in v1.8.9

func (Flip_Tag) Descriptor() protoreflect.EnumDescriptor

func (Flip_Tag) Enum added in v1.8.9

func (x Flip_Tag) Enum() *Flip_Tag

func (Flip_Tag) EnumDescriptor deprecated added in v1.8.9

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

Deprecated: Use Flip_Tag.Descriptor instead.

func (Flip_Tag) Number added in v1.8.9

func (x Flip_Tag) Number() protoreflect.EnumNumber

func (Flip_Tag) String added in v1.8.9

func (x Flip_Tag) String() string

func (Flip_Tag) Type added in v1.8.9

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Oracle.ProtoReflect.Descriptor instead.

func (*Oracle) GetAssetId

func (x *Oracle) GetAssetId() string

func (*Oracle) GetCurrent

func (x *Oracle) GetCurrent() string

func (*Oracle) GetGovernors added in v1.2.8

func (x *Oracle) GetGovernors() []string

func (*Oracle) GetHop

func (x *Oracle) GetHop() int32

func (*Oracle) GetNext

func (x *Oracle) GetNext() string

func (*Oracle) GetPeekAt

func (x *Oracle) GetPeekAt() *timestamppb.Timestamp

func (*Oracle) GetThreshold added in v1.2.8

func (x *Oracle) GetThreshold() int32

func (*Oracle) ProtoMessage

func (*Oracle) ProtoMessage()

func (*Oracle) ProtoReflect

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

func (*Oracle) Reset

func (x *Oracle) Reset()

func (*Oracle) String

func (x *Oracle) String() string

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_ListMyVaults, 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)

	QueryFlips(context.Context, *Req_QueryFlips) (*Resp_QueryFlips, error)

	// tx
	FindTransaction(context.Context, *Req_FindTransaction) (*Transaction, error)

	ListTransactions(context.Context, *Req_ListTransactions) (*Resp_ListTransactions, error)

	// proposals
	FindProposal(context.Context, *Req_FindProposal) (*Proposal, error)

	ListProposals(context.Context, *Req_ListProposals) (*Resp_ListProposals, error)

	// stats
	ListStats(context.Context, *Req_ListStats) (*Resp_ListStats, error)

	ListAggregatedStats(context.Context, *Req_ListAggregatedStats) (*Resp_ListAggregatedStats, 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 Proposal added in v1.8.7

type Proposal 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"
	PassedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=passed_at,json=passedAt,proto3" json:"passed_at,omitempty" swaggertype:"string" format:"date"`
	Creator  string                 `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	AssetId  string                 `protobuf:"bytes,5,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	Amount   string                 `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	Action   Action                 `protobuf:"varint,7,opt,name=action,proto3,enum=fox.pando.service.Action" json:"action,omitempty"`
	Data     string                 `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
	Votes    []string               `protobuf:"bytes,9,rep,name=votes,proto3" json:"votes,omitempty"`
	Items    []*Proposal_Item       `protobuf:"bytes,10,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Proposal) Descriptor deprecated added in v1.8.7

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetAction added in v1.8.7

func (x *Proposal) GetAction() Action

func (*Proposal) GetAmount added in v1.8.7

func (x *Proposal) GetAmount() string

func (*Proposal) GetAssetId added in v1.8.7

func (x *Proposal) GetAssetId() string

func (*Proposal) GetCreatedAt added in v1.8.7

func (x *Proposal) GetCreatedAt() *timestamppb.Timestamp

func (*Proposal) GetCreator added in v1.8.7

func (x *Proposal) GetCreator() string

func (*Proposal) GetData added in v1.8.7

func (x *Proposal) GetData() string

func (*Proposal) GetId added in v1.8.7

func (x *Proposal) GetId() string

func (*Proposal) GetItems added in v1.8.7

func (x *Proposal) GetItems() []*Proposal_Item

func (*Proposal) GetPassedAt added in v1.8.7

func (x *Proposal) GetPassedAt() *timestamppb.Timestamp

func (*Proposal) GetVotes added in v1.8.7

func (x *Proposal) GetVotes() []string

func (*Proposal) ProtoMessage added in v1.8.7

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect added in v1.8.7

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

func (*Proposal) Reset added in v1.8.7

func (x *Proposal) Reset()

func (*Proposal) String added in v1.8.7

func (x *Proposal) String() string

type Proposal_Item added in v1.8.7

type Proposal_Item struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Hint   string `protobuf:"bytes,3,opt,name=hint,proto3" json:"hint,omitempty"`
	Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*Proposal_Item) Descriptor deprecated added in v1.8.7

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

Deprecated: Use Proposal_Item.ProtoReflect.Descriptor instead.

func (*Proposal_Item) GetAction added in v1.8.7

func (x *Proposal_Item) GetAction() string

func (*Proposal_Item) GetHint added in v1.8.7

func (x *Proposal_Item) GetHint() string

func (*Proposal_Item) GetKey added in v1.8.7

func (x *Proposal_Item) GetKey() string

func (*Proposal_Item) GetValue added in v1.8.7

func (x *Proposal_Item) GetValue() string

func (*Proposal_Item) ProtoMessage added in v1.8.7

func (*Proposal_Item) ProtoMessage()

func (*Proposal_Item) ProtoReflect added in v1.8.7

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

func (*Proposal_Item) Reset added in v1.8.7

func (x *Proposal_Item) Reset()

func (*Proposal_Item) String added in v1.8.7

func (x *Proposal_Item) String() string

type Req

type Req struct {
	// contains filtered or unexported fields
}

func (*Req) Descriptor deprecated

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

Deprecated: Use Req.ProtoReflect.Descriptor instead.

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) ProtoReflect

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

func (*Req) Reset

func (x *Req) Reset()

func (*Req) String

func (x *Req) String() string

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_FindProposal added in v1.8.7

type Req_FindProposal 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_FindProposal) Descriptor deprecated added in v1.8.7

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

Deprecated: Use Req_FindProposal.ProtoReflect.Descriptor instead.

func (*Req_FindProposal) GetId added in v1.8.7

func (x *Req_FindProposal) GetId() string

func (*Req_FindProposal) ProtoMessage added in v1.8.7

func (*Req_FindProposal) ProtoMessage()

func (*Req_FindProposal) ProtoReflect added in v1.8.7

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

func (*Req_FindProposal) Reset added in v1.8.7

func (x *Req_FindProposal) Reset()

func (*Req_FindProposal) String added in v1.8.7

func (x *Req_FindProposal) 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_ListAggregatedStats added in v1.9.1

type Req_ListAggregatedStats struct {
	From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	To   int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Req_ListAggregatedStats) Descriptor deprecated added in v1.9.1

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

Deprecated: Use Req_ListAggregatedStats.ProtoReflect.Descriptor instead.

func (*Req_ListAggregatedStats) GetFrom added in v1.9.1

func (x *Req_ListAggregatedStats) GetFrom() int64

func (*Req_ListAggregatedStats) GetTo added in v1.9.1

func (x *Req_ListAggregatedStats) GetTo() int64

func (*Req_ListAggregatedStats) ProtoMessage added in v1.9.1

func (*Req_ListAggregatedStats) ProtoMessage()

func (*Req_ListAggregatedStats) ProtoReflect added in v1.9.1

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

func (*Req_ListAggregatedStats) Reset added in v1.9.1

func (x *Req_ListAggregatedStats) Reset()

func (*Req_ListAggregatedStats) String added in v1.9.1

func (x *Req_ListAggregatedStats) 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_ListProposals added in v1.8.7

type Req_ListProposals 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_ListProposals) Descriptor deprecated added in v1.8.7

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

Deprecated: Use Req_ListProposals.ProtoReflect.Descriptor instead.

func (*Req_ListProposals) GetCursor added in v1.8.7

func (x *Req_ListProposals) GetCursor() string

func (*Req_ListProposals) GetLimit added in v1.8.7

func (x *Req_ListProposals) GetLimit() int64

func (*Req_ListProposals) ProtoMessage added in v1.8.7

func (*Req_ListProposals) ProtoMessage()

func (*Req_ListProposals) ProtoReflect added in v1.8.7

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

func (*Req_ListProposals) Reset added in v1.8.7

func (x *Req_ListProposals) Reset()

func (*Req_ListProposals) String added in v1.8.7

func (x *Req_ListProposals) String() string

type Req_ListStats added in v1.9.1

type Req_ListStats struct {

	// collateral id
	// @inject_tag: valid:"uuid,required"
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" valid:"uuid,required"`
	From int64  `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"`
	To   int64  `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Req_ListStats) Descriptor deprecated added in v1.9.1

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

Deprecated: Use Req_ListStats.ProtoReflect.Descriptor instead.

func (*Req_ListStats) GetFrom added in v1.9.1

func (x *Req_ListStats) GetFrom() int64

func (*Req_ListStats) GetId added in v1.9.1

func (x *Req_ListStats) GetId() string

func (*Req_ListStats) GetTo added in v1.9.1

func (x *Req_ListStats) GetTo() int64

func (*Req_ListStats) ProtoMessage added in v1.9.1

func (*Req_ListStats) ProtoMessage()

func (*Req_ListStats) ProtoReflect added in v1.9.1

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

func (*Req_ListStats) Reset added in v1.9.1

func (x *Req_ListStats) Reset()

func (*Req_ListStats) String added in v1.9.1

func (x *Req_ListStats) 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 Req_QueryFlips added in v1.8.9

type Req_QueryFlips struct {
	Offset   int64  `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit    int64  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Phase    string `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
	MyVaults string `protobuf:"bytes,4,opt,name=my_vaults,json=myVaults,proto3" json:"my_vaults,omitempty"`
	MyBids   string `protobuf:"bytes,5,opt,name=my_bids,json=myBids,proto3" json:"my_bids,omitempty"`
	// contains filtered or unexported fields
}

func (*Req_QueryFlips) Descriptor deprecated added in v1.8.9

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

Deprecated: Use Req_QueryFlips.ProtoReflect.Descriptor instead.

func (*Req_QueryFlips) GetLimit added in v1.8.9

func (x *Req_QueryFlips) GetLimit() int64

func (*Req_QueryFlips) GetMyBids added in v1.8.9

func (x *Req_QueryFlips) GetMyBids() string

func (*Req_QueryFlips) GetMyVaults added in v1.8.9

func (x *Req_QueryFlips) GetMyVaults() string

func (*Req_QueryFlips) GetOffset added in v1.8.9

func (x *Req_QueryFlips) GetOffset() int64

func (*Req_QueryFlips) GetPhase added in v1.8.9

func (x *Req_QueryFlips) GetPhase() string

func (*Req_QueryFlips) ProtoMessage added in v1.8.9

func (*Req_QueryFlips) ProtoMessage()

func (*Req_QueryFlips) ProtoReflect added in v1.8.9

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

func (*Req_QueryFlips) Reset added in v1.8.9

func (x *Req_QueryFlips) Reset()

func (*Req_QueryFlips) String added in v1.8.9

func (x *Req_QueryFlips) String() string

type Resp

type Resp struct {
	// contains filtered or unexported fields
}

func (*Resp) Descriptor deprecated

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

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

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

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

type Resp_ListAggregatedStats added in v1.9.1

type Resp_ListAggregatedStats struct {
	Stats []*AggregatedStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp_ListAggregatedStats) Descriptor deprecated added in v1.9.1

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

Deprecated: Use Resp_ListAggregatedStats.ProtoReflect.Descriptor instead.

func (*Resp_ListAggregatedStats) GetStats added in v1.9.1

func (x *Resp_ListAggregatedStats) GetStats() []*AggregatedStat

func (*Resp_ListAggregatedStats) ProtoMessage added in v1.9.1

func (*Resp_ListAggregatedStats) ProtoMessage()

func (*Resp_ListAggregatedStats) ProtoReflect added in v1.9.1

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

func (*Resp_ListAggregatedStats) Reset added in v1.9.1

func (x *Resp_ListAggregatedStats) Reset()

func (*Resp_ListAggregatedStats) String added in v1.9.1

func (x *Resp_ListAggregatedStats) String() string

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_ListMyVaults added in v1.7.2

type Resp_ListMyVaults struct {
	Vaults []*Vault `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp_ListMyVaults) Descriptor deprecated added in v1.7.2

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

Deprecated: Use Resp_ListMyVaults.ProtoReflect.Descriptor instead.

func (*Resp_ListMyVaults) GetVaults added in v1.7.2

func (x *Resp_ListMyVaults) GetVaults() []*Vault

func (*Resp_ListMyVaults) ProtoMessage added in v1.7.2

func (*Resp_ListMyVaults) ProtoMessage()

func (*Resp_ListMyVaults) ProtoReflect added in v1.7.2

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

func (*Resp_ListMyVaults) Reset added in v1.7.2

func (x *Resp_ListMyVaults) Reset()

func (*Resp_ListMyVaults) String added in v1.7.2

func (x *Resp_ListMyVaults) 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_ListProposals added in v1.8.7

type Resp_ListProposals struct {
	Proposals  []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp_ListProposals) Descriptor deprecated added in v1.8.7

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

Deprecated: Use Resp_ListProposals.ProtoReflect.Descriptor instead.

func (*Resp_ListProposals) GetPagination added in v1.8.7

func (x *Resp_ListProposals) GetPagination() *Pagination

func (*Resp_ListProposals) GetProposals added in v1.8.7

func (x *Resp_ListProposals) GetProposals() []*Proposal

func (*Resp_ListProposals) ProtoMessage added in v1.8.7

func (*Resp_ListProposals) ProtoMessage()

func (*Resp_ListProposals) ProtoReflect added in v1.8.7

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

func (*Resp_ListProposals) Reset added in v1.8.7

func (x *Resp_ListProposals) Reset()

func (*Resp_ListProposals) String added in v1.8.7

func (x *Resp_ListProposals) String() string

type Resp_ListStats added in v1.9.1

type Resp_ListStats struct {
	Stats []*Stat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp_ListStats) Descriptor deprecated added in v1.9.1

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

Deprecated: Use Resp_ListStats.ProtoReflect.Descriptor instead.

func (*Resp_ListStats) GetStats added in v1.9.1

func (x *Resp_ListStats) GetStats() []*Stat

func (*Resp_ListStats) ProtoMessage added in v1.9.1

func (*Resp_ListStats) ProtoMessage()

func (*Resp_ListStats) ProtoReflect added in v1.9.1

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

func (*Resp_ListStats) Reset added in v1.9.1

func (x *Resp_ListStats) Reset()

func (*Resp_ListStats) String added in v1.9.1

func (x *Resp_ListStats) 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 Resp_QueryFlips added in v1.8.9

type Resp_QueryFlips struct {
	Flips []*Flip `protobuf:"bytes,1,rep,name=flips,proto3" json:"flips,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp_QueryFlips) Descriptor deprecated added in v1.8.9

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

Deprecated: Use Resp_QueryFlips.ProtoReflect.Descriptor instead.

func (*Resp_QueryFlips) GetFlips added in v1.8.9

func (x *Resp_QueryFlips) GetFlips() []*Flip

func (*Resp_QueryFlips) GetTotal added in v1.8.9

func (x *Resp_QueryFlips) GetTotal() int32

func (*Resp_QueryFlips) ProtoMessage added in v1.8.9

func (*Resp_QueryFlips) ProtoMessage()

func (*Resp_QueryFlips) ProtoReflect added in v1.8.9

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

func (*Resp_QueryFlips) Reset added in v1.8.9

func (x *Resp_QueryFlips) Reset()

func (*Resp_QueryFlips) String added in v1.8.9

func (x *Resp_QueryFlips) String() string

type Stat added in v1.9.1

type Stat struct {
	CollateralId string `protobuf:"bytes,1,opt,name=collateral_id,json=collateralId,proto3" json:"collateral_id,omitempty"`
	// @inject_tag: swaggertype:"string" format:"date"
	Date      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty" swaggertype:"string" format:"date"`
	Timestamp int64                  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,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"`
	Debt      string                 `protobuf:"bytes,7,opt,name=debt,proto3" json:"debt,omitempty"`
	GemPrice  string                 `protobuf:"bytes,8,opt,name=gem_price,json=gemPrice,proto3" json:"gem_price,omitempty"`
	DaiPrice  string                 `protobuf:"bytes,9,opt,name=dai_price,json=daiPrice,proto3" json:"dai_price,omitempty"`
	// contains filtered or unexported fields
}

func (*Stat) Descriptor deprecated added in v1.9.1

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

Deprecated: Use Stat.ProtoReflect.Descriptor instead.

func (*Stat) GetCollateralId added in v1.9.1

func (x *Stat) GetCollateralId() string

func (*Stat) GetDai added in v1.9.1

func (x *Stat) GetDai() string

func (*Stat) GetDaiPrice added in v1.9.1

func (x *Stat) GetDaiPrice() string

func (*Stat) GetDate added in v1.9.1

func (x *Stat) GetDate() *timestamppb.Timestamp

func (*Stat) GetDebt added in v1.9.1

func (x *Stat) GetDebt() string

func (*Stat) GetGem added in v1.9.1

func (x *Stat) GetGem() string

func (*Stat) GetGemPrice added in v1.9.1

func (x *Stat) GetGemPrice() string

func (*Stat) GetInk added in v1.9.1

func (x *Stat) GetInk() string

func (*Stat) GetTimestamp added in v1.9.1

func (x *Stat) GetTimestamp() int64

func (*Stat) ProtoMessage added in v1.9.1

func (*Stat) ProtoMessage()

func (*Stat) ProtoReflect added in v1.9.1

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

func (*Stat) Reset added in v1.9.1

func (x *Stat) Reset()

func (*Stat) String added in v1.9.1

func (x *Stat) 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) Enum

func (Transaction_Status) EnumDescriptor deprecated

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

Deprecated: Use Transaction_Status.Descriptor instead.

func (Transaction_Status) Number

func (Transaction_Status) String

func (x Transaction_Status) String() string

func (Transaction_Status) Type

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
	// google.golang.org/protobuf/types/descriptorpb.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) Descriptor() ([]byte, []int)

Deprecated: Use Vault.ProtoReflect.Descriptor instead.

func (*Vault) GetArt

func (x *Vault) GetArt() string

func (*Vault) GetCollateralId

func (x *Vault) GetCollateralId() string

func (*Vault) GetCreatedAt

func (x *Vault) GetCreatedAt() *timestamppb.Timestamp

func (*Vault) GetId

func (x *Vault) GetId() string

func (*Vault) GetIdentityId

func (x *Vault) GetIdentityId() int64

func (*Vault) GetInk

func (x *Vault) GetInk() string

func (*Vault) ProtoMessage

func (*Vault) ProtoMessage()

func (*Vault) ProtoReflect

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

func (*Vault) Reset

func (x *Vault) Reset()

func (*Vault) String

func (x *Vault) String() string

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

Jump to

Keyboard shortcuts

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