Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ctx context.Context Address string // "IP:port" to listen on Relayer *relayer.Relayer }
Config is the RPC server configuration passed to NewServer
type RelayerService ¶
type RelayerService struct {
// contains filtered or unexported fields
}
RelayerService represents a relayer JSON-RPC service.
func NewRelayerService ¶
func NewRelayerService(r *relayer.Relayer) (*RelayerService, error)
NewRelayerService returns a new RPC RelayerService.
func (*RelayerService) SubmitTransaction ¶
func (s *RelayerService) SubmitTransaction( _ *http.Request, req *common.SubmitTransactionRequest, resp *common.SubmitTransactionResponse, ) error
SubmitTransaction submits a transaction to the relayer.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the JSON-RPC server
func NewServer ¶
NewServer creates but does not start the relayer RPC service. Pre-start configuration that can fail, including reserving the server port, is handled here.
Click to show internal directories.
Click to hide internal directories.