app

package
v0.0.0-...-ed03793 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(options ApplicationOptions) *Application

func (Application) Run

func (a Application) Run(ctx context.Context) error

func (Application) Stop

func (a Application) Stop(ctx context.Context) error

type ApplicationOptions

type ApplicationOptions struct {
	HandlerRegistries    HandlerRegistries
	MiddlewareRegistries MiddlewareRegistries
	Runners              Runners
	Migrator             entity.Migrator
}

type HandlerRegistries

type HandlerRegistries struct {
	ProductGRPC *productgrpc.ProductHandlerRegistry
	ProductHTTP *productweb.ProductHandlerRegistry
	SellerHTTP  *sellerweb.SellerHandlerRegistry
}

type MiddlewareRegistries

type MiddlewareRegistries struct {
	Essentials *web.EssentialsMiddlewareRegistry
	Logger     *logger.LoggerMiddlewareRegistry
}

type Runners

type Runners struct {
	GRPCRunner *grpc.GRPCRunner
	WebRunner  *web.WebRunner
}

Directories

Path Synopsis
product
usecase/mock
Package usecasemock is a generated GoMock package.
Package usecasemock is a generated GoMock package.
seller
factory/mock
Package factorymock is a generated GoMock package.
Package factorymock is a generated GoMock package.
usecase/mock
Package usecasemock is a generated GoMock package.
Package usecasemock is a generated GoMock package.

Jump to

Keyboard shortcuts

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