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 NewVerifyExternalPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)
- func NewVerifyInternalPassport(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 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)
Source Files ¶
- activate_balance.go
- claim_event.go
- create_balance.go
- create_balance_v2.go
- create_event_type.go
- edit_referrals.go
- fulfill_poll_event.go
- fulfill_qr_event.go
- get_balance.go
- get_event.go
- get_event_type.go
- leaderboard.go
- list_event_types.go
- list_events.go
- update_event_type.go
- verify_external_passport.go
- verify_internal_passport.go
Click to show internal directories.
Click to hide internal directories.