server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	ListenAddresses: []multiaddr.Multiaddr{},
}

Functions

func NewMultiAddr

func NewMultiAddr(addr string) (maddr multiaddr.Multiaddr)

Types

type Config

type Config struct {
	PublicAddress   multiaddr.Multiaddr
	ListenAddresses []multiaddr.Multiaddr
}

type Server

type Server struct {
	context.Context
	// contains filtered or unexported fields
}

func New

func New(params *cfg.Params, config *Config) (srv *Server, err error)

func (*Server) Restart

func (srv *Server) Restart() (err error)

func (*Server) Serve

func (srv *Server) Serve() (err error)

func (*Server) Shutdown

func (srv *Server) Shutdown() (err error)

Jump to

Keyboard shortcuts

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