server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(addr string, opts ...Option) error

ListenAndServe creates a new indexing service HTTP server, and starts it up.

func NewServer

func NewServer(opts ...Option) *http.ServeMux

NewServer creates a new indexing service HTTP server.

Types

type Option

type Option func(*config)

func WithIdentity

func WithIdentity(s principal.Signer) Option

WithIdentity specifies the server DID.

func WithService

func WithService(service Service) Option

type Service

type Service interface {
	CacheClaim(ctx context.Context, claim delegation.Delegation) error
	PublishClaim(ctx context.Context, claim delegation.Delegation) error
	Query(ctx context.Context, q service.Query) (queryresult.QueryResult, error)
}

Jump to

Keyboard shortcuts

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