httpapi

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

README

todo - the content of this package should be moved to rpcapi to avoid implementing the low-level http logic

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPRoutes

func NewHTTPRoutes(walletExt *rpcapi.Services) []node.Route

NewHTTPRoutes returns the http specific routes todo - move these to the rpc framework.

Types

type UserConn

type UserConn interface {
	ReadRequest() ([]byte, error)
	ReadRequestParams() map[string]string
	WriteResponse(msg []byte) error
	SupportsSubscriptions() bool
	IsClosed() bool
	GetHTTPRequest() *http.Request
}

UserConn represents a connection to a user.

func NewUserConnHTTP

func NewUserConnHTTP(resp http.ResponseWriter, req *http.Request, logger gethlog.Logger) UserConn

Jump to

Keyboard shortcuts

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