Documentation ¶
Index ¶
- func ExtractCountry(proof zkptypes.ZKProof) (string, error)
- func NewClaimEvent(r *http.Request) (req resources.Relation, err error)
- func NewCreateBalance(r *http.Request) (req resources.CreateBalanceRequest, err error)
- func NewFulfillEvent(r *http.Request) (req connector.FulfillEventRequest, err error)
- func NewFulfillVerifyProofEvent(r *http.Request) (req connector.FulfillVerifyProofEventRequest, err error)
- func NewGetEvent(r *http.Request) (id string, err error)
- func NewVerifyPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)
- func NewWithdraw(r *http.Request) (req resources.WithdrawRequest, err error)
- type EditReferralsRequest
- type GetBalance
- type Leaderboard
- type ListEvents
- type ListExpiredEvents
- type ListWithdrawals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCountry ¶ added in v1.2.0
ExtractCountry extracts country code from the proof, converting decimal UTF-8 code to ISO 3166-1 alpha-3 code.
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 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)
Click to show internal directories.
Click to hide internal directories.