Skip to content

Commit

Permalink
Docs: Refactor RouterType godocs.
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
  • Loading branch information
ajnavarro committed Jan 4, 2023
1 parent 8cdc86d commit 986d0db
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 based API for delegated routing systems.
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 986d0db

Please sign in to comment.