Skip to content

Commit

Permalink
Merge pull request ipfs#73 from ipfs/feat/add-private-routing
Browse files Browse the repository at this point in the history
feat: add private routing config field
  • Loading branch information
Stebalien authored Apr 7, 2020
2 parents e6b60a6 + 9d105cd commit 1592758
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
go-ipfs-config
==================

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.io/)
[![Matrix](https://img.shields.io/badge/matrix-%23ipfs%3Amatrix.org-blue.svg?style=flat-square)](https://matrix.to/#/#ipfs:matrix.org)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/475789330380488707?color=blueviolet&label=discord&style=flat-square)](https://discord.gg/24fmuwR)

> Go-ipfs configuration datastructure.
Documentation lives in the go-ipfs repo: [docs/config.md](https://github.com/ipfs/go-ipfs/blob/master/docs/config.md).

## Table of Contents

- [Contribute](#contribute)
- [License](#license)

## Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © Juan Batiz-Benet
6 changes: 6 additions & 0 deletions config/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ package config
// Routing defines configuration options for libp2p routing
type Routing struct {
// Type sets default daemon routing mode.
//
// Can be one of "dht", "dhtclient", "dhtserver", "none", or unset.
Type string

// PrivateType sets the routing mode for private networks. Can take the
// same values as Type and defaults to Type if unset.
PrivateType string
}

0 comments on commit 1592758

Please sign in to comment.