ratio

package
v0.0.0-...-2745a11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBool

func ConvertBool(b bool) string

Types

type Get

type Get struct {
	CID     string
	DHT     bool
	BITSWAP bool
}

Element to Get DHT & BITSWAP are initialized a true when we pass a certain part of the code Cannot be initialized a true both

func NewGet

func NewGet(str string) *Get

Create a New Get element Must be called in the Get Command of go-ipfs

type Ratio

type Ratio struct {
	// contains filtered or unexported fields
}

Object that contains all the result

func NewRatio

func NewRatio() Ratio

func (*Ratio) Add

func (rt *Ratio) Add(str string)

Add a new Get to the Ratio

func (*Ratio) CheckBitswap

func (rt *Ratio) CheckBitswap(str string)

func (*Ratio) CheckDHT

func (rt *Ratio) CheckDHT(str string)

func (*Ratio) ToString

func (rt *Ratio) ToString() string

Jump to

Keyboard shortcuts

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