rfq

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
}

Service holds state for the rfq.Service.

func (*Service) Maker

func (s *Service) Maker(
	_ context.Context,
	_ *connect.BidiStream[v1.QuoteResponse, v1.QuoteRequest],
) error

Maker sends quotes to takers via a stream of QuoteResponse messages and receives a stream of QuoteRequest messages.

func (*Service) Taker

func (s *Service) Taker(
	_ context.Context,
	_ *connect.BidiStream[v1.QuoteRequest, v1.QuoteResponse],
) error

Taker requests quotes from makers via a stream of QuoteRequest messages and receives a stream of QuoteResponse messages.

func (*Service) WebTaker

func (s *Service) WebTaker(
	_ context.Context,
	_ *connect.Request[v1.QuoteRequest],
	_ *connect.ServerStream[v1.QuoteResponse],
) error

WebTaker requests quotes from makers via a single QuoteRequest message and receives a stream of QuoteResponse messages (for use by gRPC-web clients).

Jump to

Keyboard shortcuts

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