requests

package
v0.2.3-rc6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClaimEvent

func NewClaimEvent(r *http.Request) (req resources.Relation, err error)

func NewCreateBalance

func NewCreateBalance(r *http.Request) (req resources.CreateBalanceRequest, err error)

func NewFulfillEvent

func NewFulfillEvent(r *http.Request) (req connector.FulfillEventRequest, err error)

func NewFulfillVerifyProofEvent

func NewFulfillVerifyProofEvent(r *http.Request) (req connector.FulfillVerifyProofEventRequest, err error)

func NewGetEvent

func NewGetEvent(r *http.Request) (id string, err error)

func NewVerifyPassport

func NewVerifyPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)

func NewWithdraw

func NewWithdraw(r *http.Request) (req resources.WithdrawRequest, err error)

Types

type EditReferralsRequest

type EditReferralsRequest struct {
	Nullifier string `json:"nullifier"`
	Count     uint64 `json:"count"`
}

func NewEditReferrals

func NewEditReferrals(r *http.Request) (req EditReferralsRequest, err error)

type GetBalance

type GetBalance struct {
	Nullifier     string
	Rank          bool `url:"rank"`
	ReferralCodes bool `url:"referral_codes"`
}

func NewGetBalance

func NewGetBalance(r *http.Request) (getBalance GetBalance, err error)

type Leaderboard

type Leaderboard struct {
	page.OffsetParams
}

func NewLeaderboard

func NewLeaderboard(r *http.Request) (req Leaderboard, err error)

type ListEvents

type ListEvents struct {
	page.OffsetParams
	FilterNullifier     *string            `filter:"nullifier"`
	FilterStatus        []data.EventStatus `filter:"status"`
	FilterType          []string           `filter:"meta.static.name"`
	FilterHasExpiration *bool              `filter:"has_expiration"`
	FilterNotType       []string           `url:"filter[meta.static.name][not]"`
	Count               bool               `url:"count"`
}

func NewListEvents

func NewListEvents(r *http.Request) (req ListEvents, err error)

type ListExpiredEvents added in v0.2.1

type ListExpiredEvents struct {
	FilterName    []string `filter:"name"`
	FilterFlag    []string `filter:"flag"`
	FilterNotName []string `url:"filter[name][not]"`
}

func NewListEventTypes added in v0.2.1

func NewListEventTypes(r *http.Request) (req ListExpiredEvents, err error)

type ListWithdrawals

type ListWithdrawals struct {
	Nullifier string
	page.CursorParams
}

func NewListWithdrawals

func NewListWithdrawals(r *http.Request) (req ListWithdrawals, err error)

Jump to

Keyboard shortcuts

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