server

package
v0.0.0-...-4cd3ddc Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(n Node) error

Start runs a http server over the node

Types

type Node

type Node interface {
	Publish(ctx context.Context, data []byte) (node.ID, error)
	Get(ctx context.Context, id node.ID) (node.SignedDocument, error)
	Sign(ctx context.Context, id node.ID) error
}

Jump to

Keyboard shortcuts

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