Documentation ¶
Overview ¶
Package client provides a client for the RFQ quoting API. nolint:,wrapcheck
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedClient ¶
type AuthenticatedClient interface { PutQuote(q *model.PutQuoteRequest) error UnauthenticatedClient }
AuthenticatedClient is an interface for the RFQ API. It provides methods for creating, retrieving and updating quotes.
func NewAuthenticatedClient ¶
func NewAuthenticatedClient(metrics metrics.Handler, rfqURL string, reqSigner signer.Signer) (AuthenticatedClient, error)
NewAuthenticatedClient creates a new client for the RFQ quoting API. TODO: @aurelius, you don't actually need to be authed for GET Requests.
type UnauthenticatedClient ¶
type UnauthenticatedClient interface { GetAllQuotes() ([]*model.GetQuoteResponse, error) GetSpecificQuote(q *model.GetQuoteSpecificRequest) ([]*model.GetQuoteResponse, error) GetQuoteByRelayerAddress(relayerAddr string) ([]*model.GetQuoteResponse, error) // contains filtered or unexported methods }
UnauthenticatedClient is an interface for the RFQ API.
func NewUnauthenticaedClient ¶
func NewUnauthenticaedClient(metricHandler metrics.Handler, rfqURL string) (UnauthenticatedClient, error)
NewUnauthenticaedClient creates a new client for the RFQ quoting API.
Click to show internal directories.
Click to hide internal directories.