Documentation ¶
Overview ¶
Package protocolsiosdk provides a minimal SDK for the protocols.io API. See https://apidoc.protocols.io for details.
Index ¶
Constants ¶
View Source
const ( ListProtocolsV3Endpoint = "https://www.protocols.io/api/v3/protocols" GetProtocolV4Endpoint = "https://www.protocols.io/api/v4/protocols" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListProtocolsV3 ¶
type ListProtocolsV3 struct { Extras json.RawMessage Items []json.RawMessage `json:"items"` Pagination Pagination `json:"pagination"` Total int64 `json:"total"` TotalPages int64 `json:"total_pages"` TotalResults int64 `json:"total_results"` }
type Pagination ¶
type Pagination struct { CurrentPage int64 `json:"current_page"` TotalPages int64 `json:"total_pages"` TotalResults int64 `json:"total_results"` NextPage string `json:"next_page"` PrevPage interface{} `json:"prev_page"` PageSize int64 `json:"page_size"` First int64 `json:"first"` Last int64 `json:"last"` ChangedOn interface{} `json:"changed_on"` }
type Payload ¶
type Payload struct { Payload json.RawMessage `json:"payload"` StatusCode int `json:"status_code"` }
type ProtocolPayload ¶
Click to show internal directories.
Click to hide internal directories.