Documentation ¶
Index ¶
- Variables
- func RegisterGetStandardsByConfidencesHandler(n *Namespace) error
- func RegisterGetStandardsByContractAndConfidencesHandler(n *Namespace) error
- func RegisterGetStandardsByContractAndTypesAndConfidencesHandler(n *Namespace) error
- func RegisterGetStandardsByContractAndTypesHandler(n *Namespace) error
- func RegisterGetStandardsByContractHandler(n *Namespace) error
- func RegisterGetStandardsByTypesAndConfidencesHandler(n *Namespace) error
- func RegisterGetStandardsByTypesHandler(n *Namespace) error
- func RegisterListStandardsHandler(n *Namespace) error
- type InputNetworkAddress
- type InputNetworkAddressConfidencesPaginated
- type InputNetworkAddressPaginated
- type InputNetworkAddressTypesAndConfidencesPaginated
- type InputNetworkAddressTypesPaginated
- type InputNetworkConfidencesPaginated
- type InputNetworkPaginated
- type InputNetworkTypesAndConfidencesPaginated
- type InputNetworkTypesPaginated
- type Namespace
Constants ¶
This section is empty.
Variables ¶
var StandardsServiceName rest.ServiceName = "standards"
StandardsServiceName defines the service name for the Standards service.
Functions ¶
func RegisterGetStandardsByConfidencesHandler ¶
RegisterGetStandardsByConfidencesHandler registers the endpoint to retrieve standards by confidences
func RegisterGetStandardsByContractAndConfidencesHandler ¶
RegisterGetStandardsByContractAndConfidencesHandler registers the endpoint to retrieve standards by contract address and confidences
func RegisterGetStandardsByContractAndTypesAndConfidencesHandler ¶
RegisterGetStandardsByContractAndTypesAndConfidencesHandler registers the endpoint to retrieve standards by contract address, types, and confidences
func RegisterGetStandardsByContractAndTypesHandler ¶
RegisterGetStandardsByContractAndTypesHandler registers the endpoint to retrieve standards by contract address and types
func RegisterGetStandardsByContractHandler ¶
RegisterGetStandardsByContractHandler registers the endpoint to retrieve standards by contract address
func RegisterGetStandardsByTypesAndConfidencesHandler ¶
RegisterGetStandardsByTypesAndConfidencesHandler registers the endpoint to retrieve standards by types and confidences
func RegisterGetStandardsByTypesHandler ¶
RegisterGetStandardsByTypesHandler registers the endpoint to retrieve standards by types
func RegisterListStandardsHandler ¶
RegisterListStandardsHandler registers the endpoint to retrieve standards
Types ¶
type InputNetworkAddress ¶
type InputNetworkAddress struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Address common.Address `` // Address specifies the account address /* 134-byte string literal not displayed */ }
InputNetworkAddress represents the input parameters required to specify a network and address.
type InputNetworkAddressConfidencesPaginated ¶
type InputNetworkAddressConfidencesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Address common.Address `` // Address specifies the contract address /* 135-byte string literal not displayed */ Confidences []string `` // Confidences specifies the list of confidences to filter by /* 143-byte string literal not displayed */ Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkAddressConfidencesPaginated represents the input parameters required to specify a network, address, confidences, and pagination.
type InputNetworkAddressPaginated ¶
type InputNetworkAddressPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Address common.Address `` // Address specifies the contract address /* 135-byte string literal not displayed */ Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkAddressPaginated represents the input parameters required to specify a network, address, and pagination.
type InputNetworkAddressTypesAndConfidencesPaginated ¶
type InputNetworkAddressTypesAndConfidencesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Address common.Address `` // Address specifies the contract address /* 135-byte string literal not displayed */ Types []string `json:"types" query:"types" example:"[\"ERC20\"]" uniqueItems:"true" minItems:"1" doc:"List of types to filter by"` // Types specifies the list of types to filter by Confidences []string `` // Confidences specifies the list of confidences to filter by /* 130-byte string literal not displayed */ Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkAddressTypesAndConfidencesPaginated represents the input parameters required to specify a network, address, types, confidences, and pagination.
type InputNetworkAddressTypesPaginated ¶
type InputNetworkAddressTypesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Address common.Address `` // Address specifies the contract address /* 135-byte string literal not displayed */ Types []string `json:"types" query:"types" example:"[\"ERC20\"]" uniqueItems:"true" minItems:"1" doc:"List of types to filter by"` // Types specifies the list of types to filter by Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkAddressTypesPaginated represents the input parameters required to specify a network, address, types, and pagination.
type InputNetworkConfidencesPaginated ¶
type InputNetworkConfidencesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Confidences []string `` // Confidences specifies the list of confidences to filter by /* 143-byte string literal not displayed */ Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkConfidencesPaginated represents the input parameters required to specify a network, confidences, and pagination.
type InputNetworkPaginated ¶
type InputNetworkPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkPaginated represents the input parameters required to specify a network, limit and offset.
type InputNetworkTypesAndConfidencesPaginated ¶
type InputNetworkTypesAndConfidencesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Types []string `json:"types" query:"types" example:"[\"ERC20\"]" uniqueItems:"true" minItems:"1" doc:"List of types to filter by"` // Types specifies the list of types to filter by Confidences []string `` // Confidences specifies the list of confidences to filter by /* 130-byte string literal not displayed */ Limit uint `json:"limit" query:"limit" example:"10" default:"1" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkTypesAndConfidencesPaginated represents the input parameters required to specify a network, types, confidences, and pagination.
type InputNetworkTypesPaginated ¶
type InputNetworkTypesPaginated struct { NetworkId utils.NetworkID `json:"networkId" path:"networkId" default:"1" example:"1" doc:"Network ID"` // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet) Types []string `json:"types" query:"types" example:"[\"ERC20\"]" uniqueItems:"true" minItems:"1" doc:"List of types to filter by"` // Types specifies the list of types to filter by Limit uint `json:"limit" query:"limit" example:"10" default:"10" doc:"Limit for the number of standards to return"` // Limit specifies the number of standards to return Offset uint `json:"offset" query:"offset" example:"0" default:"0" doc:"Offset for pagination"` // Offset specifies the offset for pagination }
InputNetworkTypesPaginated represents the input parameters required to specify a network, types, and pagination.
type Namespace ¶
Namespace represents a service namespace containing configuration and dependencies for the Standards service.
func NewNamespace ¶
func NewNamespace(server *rest.Server, db db.Adapter, pool *clients.ClientPool, nats *nats.Conn, cache *cache.Redis) *Namespace
NewNamespace creates a new instance of Namespace with the provided server, database adapter, client pool, NATS connection, and Redis cache.
func (*Namespace) GetName ¶
func (s *Namespace) GetName() rest.ServiceName
GetName returns the service name for the Standards namespace.
func (*Namespace) RegisterHandlers ¶
RegisterHandlers registers all the necessary handlers for the Accounts namespace.