Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // PrepareSwap should update source:destination addresses pair before swap PrepareSwap(src mint.PublicKey, dst common.Address) (*apimodel.PrepareSwapResult, error) }
API is a required interface for the GRPC server
type Metrics ¶
type Metrics struct {
RequestDuration *prometheus.HistogramVec
}
Metrics contains metrics counters
type Service ¶
Service is Swap implemetation
func (*Service) PrepareSwap ¶
func (s *Service) PrepareSwap(ctx context.Context, m *pb.PrepareSwapRequest) (*pb.PrepareSwapResult, error)
PrepareSwap implementation
Click to show internal directories.
Click to hide internal directories.