Documentation ¶
Index ¶
- func GetClaimHandler(service types.Getter) http.HandlerFunc
- func GetClaimsHandler(service types.Querier) http.HandlerFunc
- func GetRootHandler(id principal.Signer) http.HandlerFunc
- func ListenAndServe(addr string, indexer types.Service, opts ...Option) error
- func NewServer(indexer types.Service, opts ...Option) *http.ServeMux
- func PostClaimsHandler(id principal.Signer, service types.Publisher, options ...server.Option) http.HandlerFunc
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClaimHandler ¶ added in v1.0.0
func GetClaimHandler(service types.Getter) http.HandlerFunc
GetClaimHandler retrieves a single content claim by it's root CID.
func GetClaimsHandler ¶ added in v1.0.0
func GetClaimsHandler(service types.Querier) http.HandlerFunc
GetClaimsHandler retrieves content claims when a GET request is sent to "/claims?multihash={multihash}".
func GetRootHandler ¶ added in v1.0.0
func GetRootHandler(id principal.Signer) http.HandlerFunc
GetRootHandler displays version info when a GET request is sent to "/".
func ListenAndServe ¶
ListenAndServe creates a new indexing service HTTP server, and starts it up.
func PostClaimsHandler ¶ added in v1.0.0
func PostClaimsHandler(id principal.Signer, service types.Publisher, options ...server.Option) http.HandlerFunc
PostClaimsHandler invokes the ucanto service when a POST request is sent to "/claims".
Types ¶
Click to show internal directories.
Click to hide internal directories.