Documentation ¶
Index ¶
- func NewActivateBalance(r *http.Request) (req resources.ActivateBalanceRequest, err error)
- func NewClaimEvent(r *http.Request) (req resources.Relation, err error)
- func NewCreateBalance(r *http.Request) (req resources.CreateBalanceRequest, err error)
- func NewCreateBalanceV2(r *http.Request) (req resources.Relation, err error)
- func NewCreateEventType(r *http.Request) (req resources.EventTypeResponse, err error)
- func NewFulfillPollEvent(r *http.Request) (req resources.FulfillPollEventRequest, err error)
- func NewFulfillQREvent(r *http.Request) (req resources.FulfillQrEventRequest, err error)
- func NewGetEvent(r *http.Request) (id string, err error)
- func NewGetEventType(r *http.Request) (name string, err error)
- func NewUpdateEventType(r *http.Request) (req resources.EventTypeResponse, err error)
- func NewVerifyPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)
- type EditReferralsRequest
- type GetBalance
- type Leaderboard
- type ListEvents
- type ListExpiredEvents
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 NewCreateBalance ¶
func NewCreateBalance(r *http.Request) (req resources.CreateBalanceRequest, err error)
func NewCreateBalanceV2 ¶ added in v1.1.0
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 NewUpdateEventType ¶
func NewUpdateEventType(r *http.Request) (req resources.EventTypeResponse, err error)
func NewVerifyPassport ¶
func NewVerifyPassport(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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.