Documentation ¶ Index ¶ func SendError(stream network.Stream, code model.StatusCode, message string) type Server func NewServer(privateKey crypto.PrivKey, allowedRequesters []peer.ID, ...) (*Server, error) func (s Server) Start(ctx context.Context) error type WalletPrivateKey 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 Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.