api

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Run(
		ctx context.Context,
		db *db.Store,
		config http_server.Config,
		log logger.Logger,
		tracer *trace.TracerProvider,

		accountService *account_application.AccountService,
		orderService *order_application.OrderService,
		paymentService *payment_application.PaymentService,
		tariffService *tariff_application.TariffService,
	) error
}

API - general describe of API

type Server

type Server struct{}

func (*Server) Use

func (s *Server) Use(
	ctx context.Context,
	db *db.Store,
	log logger.Logger,
	tracer *trace.TracerProvider,

	accountService *account_application.AccountService,
	orderService *order_application.OrderService,
	paymentService *payment_application.PaymentService,
	tariffService *tariff_application.TariffService,
) (*Server, error)

Jump to

Keyboard shortcuts

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