client

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 12 Imported by: 1

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.

Jump to

Keyboard shortcuts

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