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(ctx context.Context, 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(ctx context.Context) ([]*model.GetQuoteResponse, error)
GetSpecificQuote(ctx context.Context, q *model.GetQuoteSpecificRequest) ([]*model.GetQuoteResponse, error)
GetQuoteByRelayerAddress(ctx context.Context, 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.