Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsNullOrEmpty ¶
func IsNullOrEmpty(r json.RawMessage) bool
Types ¶
type ClientParams ¶
type ClientParams struct { fx.In fxparams.Params Master endpoints.EndpointProvider `name:"master"` Slave endpoints.EndpointProvider `name:"slave"` Validator endpoints.EndpointProvider `name:"validator"` Consensus endpoints.EndpointProvider `name:"consensus"` HTTPClient HTTPClient `optional:"true"` // Injected by unit test. }
type ClientResult ¶
type ClientResult struct { fx.Out Master Client `name:"master"` Slave Client `name:"slave"` Validator Client `name:"validator"` Consensus Client `name:"consensus"` }
func New ¶
func New(params ClientParams) (ClientResult, error)
type Option ¶
type Option func(opts *options)
func WithAllowsRPCError ¶
func WithAllowsRPCError() Option
type RPCError ¶
type RPCError struct { Code int `json:"code"` Message string `json:"message"` Data json.RawMessage `json:"data"` }
type RequestMethod ¶
Click to show internal directories.
Click to hide internal directories.