requests

package
v1.3.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivateBalance added in v1.1.0

func NewActivateBalance(r *http.Request) (req resources.ActivateBalanceRequest, err error)

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 NewCreateBalanceV2 added in v1.1.0

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

func NewCreateEventType

func NewCreateEventType(r *http.Request) (req resources.EventTypeResponse, err error)

func NewFulfillPollEvent added in v1.3.0

func NewFulfillPollEvent(r *http.Request) (req resources.FulfillPollEventRequest, err error)

func NewFulfillQREvent

func NewFulfillQREvent(r *http.Request) (req resources.FulfillQrEventRequest, err error)

func NewGetEvent

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

func NewGetEventType

func NewGetEventType(r *http.Request) (name string, err error)

func NewUpdateEventType

func NewUpdateEventType(r *http.Request) (req resources.EventTypeResponse, err error)

func NewVerifyExternalPassport added in v1.3.0

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

func NewVerifyInternalPassport added in v1.3.0

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

Types

type EditReferralsRequest

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

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
	Count bool `url:"count"`
}

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

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

func NewListEventTypes

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

Jump to

Keyboard shortcuts

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