profile

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewProfileManager

func NewProfileManager(ipfsProxy ipfs.Proxy) *Manager

func (*Manager) AddProfile

func (pm *Manager) AddProfile(pr Profile) ([]byte, error)

func (*Manager) GetProfile

func (pm *Manager) GetProfile(hash []byte) (Profile, error)

type Profile

type Profile struct {
	Nickname []byte `rlp:"nil"`
	Info     []byte `rlp:"nil"`
}

func (*Profile) FromBytes added in v0.21.0

func (p *Profile) FromBytes(data []byte) error

func (*Profile) ToBytes added in v0.21.0

func (p *Profile) ToBytes() ([]byte, error)

Jump to

Keyboard shortcuts

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