reststandards

package
v0.9.9-rc2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StandardsServiceName rest.ServiceName = "standards"

StandardsServiceName defines the service name for the Standards service.

Functions

func RegisterGetStandardsByConfidencesHandler

func RegisterGetStandardsByConfidencesHandler(n *Namespace) error

RegisterGetStandardsByConfidencesHandler registers the endpoint to retrieve standards by confidences

func RegisterGetStandardsByContractAndConfidencesHandler

func RegisterGetStandardsByContractAndConfidencesHandler(n *Namespace) error

RegisterGetStandardsByContractAndConfidencesHandler registers the endpoint to retrieve standards by contract address and confidences

func RegisterGetStandardsByContractAndTypesAndConfidencesHandler

func RegisterGetStandardsByContractAndTypesAndConfidencesHandler(n *Namespace) error

RegisterGetStandardsByContractAndTypesAndConfidencesHandler registers the endpoint to retrieve standards by contract address, types, and confidences

func RegisterGetStandardsByContractAndTypesHandler

func RegisterGetStandardsByContractAndTypesHandler(n *Namespace) error

RegisterGetStandardsByContractAndTypesHandler registers the endpoint to retrieve standards by contract address and types

func RegisterGetStandardsByContractHandler

func RegisterGetStandardsByContractHandler(n *Namespace) error

RegisterGetStandardsByContractHandler registers the endpoint to retrieve standards by contract address

func RegisterGetStandardsByTypesAndConfidencesHandler

func RegisterGetStandardsByTypesAndConfidencesHandler(n *Namespace) error

RegisterGetStandardsByTypesAndConfidencesHandler registers the endpoint to retrieve standards by types and confidences

func RegisterGetStandardsByTypesHandler

func RegisterGetStandardsByTypesHandler(n *Namespace) error

RegisterGetStandardsByTypesHandler registers the endpoint to retrieve standards by types

func RegisterListStandardsHandler

func RegisterListStandardsHandler(n *Namespace) error

RegisterListStandardsHandler registers the endpoint to retrieve standards

Types

type InputNetworkAddress

type InputNetworkAddress struct {
	NetworkId utils.NetworkID `json:"networkId" path:"networkId" maxLength:"2" 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" maxLength:"2" 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 `json:"confidences" query:"confidences" example:"[\"perfect\", \"high\"]" doc:"List of confidences to filter by"` // Confidences specifies the list of confidences to filter by
	Limit       uint     `json:"limit" query:"limit" example:"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" 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" maxLength:"2" 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" 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" 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" maxLength:"2" 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" doc:"List of types to filter by"`                  // Types specifies the list of types to filter by
	Confidences []string `json:"confidences" query:"confidences" example:"HIGH" doc:"List of confidences to filter by"` // Confidences specifies the list of confidences to filter by
	Limit       uint     `json:"limit" query:"limit" example:"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" 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" maxLength:"2" 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\"]" doc:"List of types to filter by"`         // Types specifies the list of types to filter by
	Limit  uint     `json:"limit" query:"limit" example:"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" 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" maxLength:"2" example:"1" doc:"Network ID"`                                    // Network ID specifies the blockchain network (e.g., 1 for Ethereum Mainnet)
	Confidences []string        `json:"confidences" query:"confidences" example:"[\"perfect\", \"high\"]" doc:"List of confidences to filter by"` // Confidences specifies the list of confidences to filter by
	Limit       uint            `json:"limit" query:"limit" example:"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" 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" maxLength:"2" 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" doc:"Limit for the number of accounts to return"` // Limit specifies the number of accounts to return
	Offset    uint            `json:"offset" query:"offset" example:"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" maxLength:"2" 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\"]" doc:"List of types to filter by"`            // Types specifies the list of types to filter by
	Confidences []string        `json:"confidences" query:"confidences" example:"HIGH" doc:"List of confidences to filter by"` // Confidences specifies the list of confidences to filter by
	Limit       uint            `json:"limit" query:"limit" example:"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" 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" maxLength:"2" 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\"]" doc:"List of types to filter by"`         // Types specifies the list of types to filter by
	Limit     uint            `json:"limit" query:"limit" example:"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" 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

type Namespace struct {
	*rest.Server
	// contains filtered or unexported fields
}

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

func (s *Namespace) RegisterHandlers() error

RegisterHandlers registers all the necessary handlers for the Accounts namespace.

Jump to

Keyboard shortcuts

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