gipfs

package
v0.0.0-...-3f35417 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Unlicense Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerLayout

func ContainerLayout(bg string, paddingTop, paddingRight, paddingBottom, paddingLeft int, itemContent func(gtx C) D) func(gtx C) D

func Round

func Round(val float64, roundOn float64, places int) (newVal float64)

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type FolderListItem

type FolderListItem struct {
	Name  string
	Cid   cid.Cid
	Size  uint64
	Type  uint8
	Btn   *widget.Clickable
	Check *widget.Bool
}

type GioIPFS

type GioIPFS struct {
	UI gipfsUI

	Settings  gipfsSettings
	ItemsList []*folderListItem
	Status    Status
	// contains filtered or unexported fields
}

func NewGioIPFS

func NewGioIPFS() *GioIPFS

func (*GioIPFS) AfterMain

func (g *GioIPFS) AfterMain()

func (*GioIPFS) AppMain

func (g *GioIPFS) AppMain()

func (*GioIPFS) BeforeMain

func (g *GioIPFS) BeforeMain()

func (*GioIPFS) GetExplore

func (g *GioIPFS) GetExplore()

func (*GioIPFS) GetFiles

func (g *GioIPFS) GetFiles()

func (*GioIPFS) GetLiveStat

func (g *GioIPFS) GetLiveStat()

func (*GioIPFS) GetPeers

func (g *GioIPFS) GetPeers()

func (*GioIPFS) GetSettings

func (g *GioIPFS) GetSettings()

func (*GioIPFS) GetStatus

func (g *GioIPFS) GetStatus()

func (*GioIPFS) GetWelcome

func (g *GioIPFS) GetWelcome()

func (*GioIPFS) Tik

func (g *GioIPFS) Tik() func()

type I

type I []*FolderListItem

type Item

type Item struct {
	Title string
	Bg    string
	Icon  *widget.Icon
	Btn   *widget.Clickable
}
type Logo struct {
	Title string
}
type Navigation struct {
	Name  string
	Bg    string
	Items []Item
}
func (n *Navigation) Nav(th *theme.Theme, gtx layout.Context, width int, noText bool, logo func(gtx layout.Context) layout.Dimensions) layout.Dimensions

type Status

type Status struct {
	Title       string
	HostingSize uint
	PeerId      string
	Version     string
	Gateway     string
	Api         string
	Addresses   []string
	Pub         string
}

Jump to

Keyboard shortcuts

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