node

package
v0.0.0-...-a5ce5ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func NewNode

func NewNode(ctx context.Context, opts ...NodeOption) (*Node, error)

func (*Node) Cfg

func (n *Node) Cfg() *config.Config

func (*Node) Comm

func (n *Node) Comm() *comm.Handler

func (*Node) Did

func (n *Node) Did() *did.Handler

func (*Node) ID

func (n *Node) ID() didIface.IdentityStore

func (*Node) ListenAndServe

func (n *Node) ListenAndServe() error

func (*Node) P2P

func (n *Node) P2P() nodeIface.P2P

func (*Node) RandomSource

func (n *Node) RandomSource() <-chan uint64

func (*Node) Resolver

func (n *Node) Resolver() didIface.Resolver

func (*Node) Stop

func (n *Node) Stop() error

func (*Node) Storage

func (n *Node) Storage() storage.Store

type NodeOption

type NodeOption func(*Node) error

func WithDefaultOptions

func WithDefaultOptions(ctx context.Context) NodeOption

func WithIdentityStore

func WithIdentityStore(store did.IdentityStore) NodeOption

func WithStorage

func WithStorage(s storageIface.Store) NodeOption

Jump to

Keyboard shortcuts

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