server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendError

func SendError(stream network.Stream, code model.StatusCode, message string)

Types

type Server

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

func NewServer

func NewServer(privateKey crypto.PrivKey, allowedRequesters []peer.ID, walletKeys []WalletPrivateKey, relays []peer.AddrInfo) (*Server, error)

func (Server) Start

func (s Server) Start(ctx context.Context) error

type WalletPrivateKey

type WalletPrivateKey = string

Jump to

Keyboard shortcuts

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