seaportv1connect

package
v0.0.0-...-fce09a9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthServiceNonceProcedure is the fully-qualified name of the AuthService's Nonce RPC.
	AuthServiceNonceProcedure = "/proto.seaport.v1.AuthService/Nonce"
	// AuthServiceVerifyProcedure is the fully-qualified name of the AuthService's Verify RPC.
	AuthServiceVerifyProcedure = "/proto.seaport.v1.AuthService/Verify"
	// AuthServiceAuthenticateProcedure is the fully-qualified name of the AuthService's Authenticate
	// RPC.
	AuthServiceAuthenticateProcedure = "/proto.seaport.v1.AuthService/Authenticate"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// RFQServiceWebTakerProcedure is the fully-qualified name of the RFQService's WebTaker RPC.
	RFQServiceWebTakerProcedure = "/proto.seaport.v1.RFQService/WebTaker"
	// RFQServiceTakerProcedure is the fully-qualified name of the RFQService's Taker RPC.
	RFQServiceTakerProcedure = "/proto.seaport.v1.RFQService/Taker"
	// RFQServiceMakerProcedure is the fully-qualified name of the RFQService's Maker RPC.
	RFQServiceMakerProcedure = "/proto.seaport.v1.RFQService/Maker"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuthServiceName is the fully-qualified name of the AuthService service.
	AuthServiceName = "proto.seaport.v1.AuthService"
)
View Source
const (
	// FeesServiceGetFeeStructureProcedure is the fully-qualified name of the FeesService's
	// GetFeeStructure RPC.
	FeesServiceGetFeeStructureProcedure = "/proto.seaport.v1.FeesService/GetFeeStructure"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// FeesServiceName is the fully-qualified name of the FeesService service.
	FeesServiceName = "proto.seaport.v1.FeesService"
)
View Source
const (
	// RFQServiceName is the fully-qualified name of the RFQService service.
	RFQServiceName = "proto.seaport.v1.RFQService"
)

Variables

This section is empty.

Functions

func NewAuthServiceHandler

func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewFeesServiceHandler

func NewFeesServiceHandler(svc FeesServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewFeesServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewRFQServiceHandler

func NewRFQServiceHandler(svc RFQServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewRFQServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AuthServiceClient

type AuthServiceClient interface {
	// * Returns an EIP-4361 nonce for session and invalidates existing session
	Nonce(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.NonceResponse], error)
	// * Verifies the SignedMessage is valid and returns the verified address
	Verify(context.Context, *connect_go.Request[v1.VerifyRequest]) (*connect_go.Response[v1.H160], error)
	// * Used to check if a given connection is authenticated, returns the address which is authenticated for a nonce cookie
	Authenticate(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.H160], error)
}

AuthServiceClient is a client for the proto.seaport.v1.AuthService service.

func NewAuthServiceClient

func NewAuthServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AuthServiceClient

NewAuthServiceClient constructs a client for the proto.seaport.v1.AuthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuthServiceHandler

type AuthServiceHandler interface {
	// * Returns an EIP-4361 nonce for session and invalidates existing session
	Nonce(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.NonceResponse], error)
	// * Verifies the SignedMessage is valid and returns the verified address
	Verify(context.Context, *connect_go.Request[v1.VerifyRequest]) (*connect_go.Response[v1.H160], error)
	// * Used to check if a given connection is authenticated, returns the address which is authenticated for a nonce cookie
	Authenticate(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.H160], error)
}

AuthServiceHandler is an implementation of the proto.seaport.v1.AuthService service.

type FeesServiceClient

type FeesServiceClient interface {
	// Returns the Valorem Fee structure.
	GetFeeStructure(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.FeeStructure], error)
}

FeesServiceClient is a client for the proto.seaport.v1.FeesService service.

func NewFeesServiceClient

func NewFeesServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) FeesServiceClient

NewFeesServiceClient constructs a client for the proto.seaport.v1.FeesService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type FeesServiceHandler

type FeesServiceHandler interface {
	// Returns the Valorem Fee structure.
	GetFeeStructure(context.Context, *connect_go.Request[v1.Empty]) (*connect_go.Response[v1.FeeStructure], error)
}

FeesServiceHandler is an implementation of the proto.seaport.v1.FeesService service.

type RFQServiceClient

type RFQServiceClient interface {
	// * Request quotes from makers via a single QuoteRequest message and receive a stream of QuoteResponse messages for use by gRPC-web clients.
	WebTaker(context.Context, *connect_go.Request[v1.QuoteRequest]) (*connect_go.ServerStreamForClient[v1.QuoteResponse], error)
	// * Request quotes from makers via a stream of QuoteRequest messages and receive a stream of QuoteResponse messages.
	Taker(context.Context) *connect_go.BidiStreamForClient[v1.QuoteRequest, v1.QuoteResponse]
	// * Send quotes to takers via a stream of QuoteResponse messages and receive a stream of QuoteRequest messages.
	Maker(context.Context) *connect_go.BidiStreamForClient[v1.QuoteResponse, v1.QuoteRequest]
}

RFQServiceClient is a client for the proto.seaport.v1.RFQService service.

func NewRFQServiceClient

func NewRFQServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) RFQServiceClient

NewRFQServiceClient constructs a client for the proto.seaport.v1.RFQService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type RFQServiceHandler

type RFQServiceHandler interface {
	// * Request quotes from makers via a single QuoteRequest message and receive a stream of QuoteResponse messages for use by gRPC-web clients.
	WebTaker(context.Context, *connect_go.Request[v1.QuoteRequest], *connect_go.ServerStream[v1.QuoteResponse]) error
	// * Request quotes from makers via a stream of QuoteRequest messages and receive a stream of QuoteResponse messages.
	Taker(context.Context, *connect_go.BidiStream[v1.QuoteRequest, v1.QuoteResponse]) error
	// * Send quotes to takers via a stream of QuoteResponse messages and receive a stream of QuoteRequest messages.
	Maker(context.Context, *connect_go.BidiStream[v1.QuoteResponse, v1.QuoteRequest]) error
}

RFQServiceHandler is an implementation of the proto.seaport.v1.RFQService service.

type UnimplementedAuthServiceHandler

type UnimplementedAuthServiceHandler struct{}

UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAuthServiceHandler) Authenticate

func (UnimplementedAuthServiceHandler) Nonce

func (UnimplementedAuthServiceHandler) Verify

type UnimplementedFeesServiceHandler

type UnimplementedFeesServiceHandler struct{}

UnimplementedFeesServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedFeesServiceHandler) GetFeeStructure

type UnimplementedRFQServiceHandler

type UnimplementedRFQServiceHandler struct{}

UnimplementedRFQServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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