Skip to content

Commit

Permalink
docs: fix Router config Godoc (#9528)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
ajnavarro and lidel committed Jan 5, 2023
1 parent 13155e5 commit ca0396e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions config/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ type Routing struct {

type Router struct {

// Currenly supported Types are "reframe", "dht", "parallel", "sequential".
// Reframe type allows to add other resolvers using the Reframe spec:
// https://github.com/ipfs/specs/tree/main/reframe
// In the future we will support "dht" and other Types here.
// Router type ID. See RouterType for more info.
Type RouterType

// Parameters are extra configuration that this router might need.
Expand Down Expand Up @@ -107,11 +104,11 @@ func (r *RouterParser) UnmarshalJSON(b []byte) error {
type RouterType string

const (
RouterTypeReframe RouterType = "reframe"
RouterTypeHTTP RouterType = "http"
RouterTypeDHT RouterType = "dht"
RouterTypeSequential RouterType = "sequential"
RouterTypeParallel RouterType = "parallel"
RouterTypeReframe RouterType = "reframe" // More info here: https://github.com/ipfs/specs/tree/main/reframe . Actually deprecated.
RouterTypeHTTP RouterType = "http" // HTTP JSON API for delegated routing systems (IPIP-337).
RouterTypeDHT RouterType = "dht" // DHT router.
RouterTypeSequential RouterType = "sequential" // Router helper to execute several routers sequentially.
RouterTypeParallel RouterType = "parallel" // Router helper to execute several routers in parallel.
)

type DHTMode string
Expand Down

0 comments on commit ca0396e

Please sign in to comment.