internal

package
v0.0.0-...-3a1fdf7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is the HTTP handler which serves the Soroban JSON RPC responses

func NewJSONRPCHandler

func NewJSONRPCHandler(params HandlerParams) (Handler, error)

NewJSONRPCHandler constructs a Handler instance

func (Handler) Close

func (h Handler) Close()

Close closes all of the resources held by the Handler instances. After Close is called the Handler instance will stop accepting JSON RPC requests.

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP implements the http.Handler interface

type HandlerParams

type HandlerParams struct {
	AccountStore methods.AccountStore
	Logger       *log.Entry
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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