requests

package
v1.1.0-x.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListRoot      = "root"
	ListExclusion = "exclusion"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDiffListRequest

type GetDiffListRequest struct {
	NameA string `url:"nameA"`
	NameB string `url:"nameB"`

	Type string
}

func NewGetDiffListRequest

func NewGetDiffListRequest(r *http.Request) (GetDiffListRequest, error)

func (*GetDiffListRequest) Validate

func (r *GetDiffListRequest) Validate() error

type GetExclusionListRequest

type GetExclusionListRequest struct {
	Status string `url:"status"`
}

func NewGetExclusionListRequest

func NewGetExclusionListRequest(r *http.Request) (GetExclusionListRequest, error)

func (*GetExclusionListRequest) Validate

func (r *GetExclusionListRequest) Validate() error

type GetRootNodeApprovalsRequest

type GetRootNodeApprovalsRequest struct {
	Sort   string  `schema:"sort"`
	Cursor *string `schema:"page[cursor],omitempty"`
	Limit  uint64  `schema:"page[limit]"`

	Cycles      uint64  `schema:"filter[cycles],omitempty"`
	RootAddress *string `schema:"filter[rootAddress],omitempty"`
	BlocksDelay uint64  `schema:"filter[blocksDelay],omitempty"`
}

func NewGetRootNodeApprovalsRequest

func NewGetRootNodeApprovalsRequest(r *http.Request) (GetRootNodeApprovalsRequest, error)

func (*GetRootNodeApprovalsRequest) Validate

func (r *GetRootNodeApprovalsRequest) Validate() error

type GetRootNodesListRequest

type GetRootNodesListRequest struct {
	Status string `url:"status"`
}

func NewGetRootNodesListRequest

func NewGetRootNodesListRequest(r *http.Request) (GetRootNodesListRequest, error)

func (*GetRootNodesListRequest) Validate

func (r *GetRootNodesListRequest) Validate() error

type GetSystemContractListRequest

type GetSystemContractListRequest struct {
	Sort   string  `schema:"sort"`
	Cursor *uint64 `schema:"page[cursor],omitempty"`
	Limit  uint64  `schema:"page[limit]"`

	Contracts []string `schema:"filter[contracts]"`
	Keys      []string `schema:"filter[keys]"`
}

func NewGetSystemContractListRequest

func NewGetSystemContractListRequest(r *http.Request) (GetSystemContractListRequest, error)

func (*GetSystemContractListRequest) Validate

func (r *GetSystemContractListRequest) Validate() error

type GetVotingEventsRequest

type GetVotingEventsRequest struct {
	Sort   string  `schema:"sort"`
	Cursor *string `schema:"page[cursor],omitempty"`
	Limit  uint64  `schema:"page[limit]"`

	StartBlock     uint64 `schema:"filter[startBlock],omitempty"`
	AccountAddress string `schema:"filter[account],omitempty"`
}

func NewGetVotingEventsRequest

func NewGetVotingEventsRequest(r *http.Request) (GetVotingEventsRequest, error)

func (*GetVotingEventsRequest) Validate

func (r *GetVotingEventsRequest) Validate() error

Jump to

Keyboard shortcuts

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