api_di

package
v0.0.0-...-8640b18 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

APIService ==========================================================================================================

Functions

func NewAPIApplication

func NewAPIApplication(ctx2 context.Context, i18n2 *message.Printer,
	log logger.Logger,
	rpcServer *rpc.Server,
	tracer trace.TracerProvider,
	monitor *monitoring.Monitoring,

	link_rpc v1_2.LinkServiceClient,
	link_command v1_3.LinkCommandServiceClient,
	link_query v1_3.LinkQueryServiceClient,
	sitemap_rpc v1_4.SitemapServiceClient,
) (*v1.API, error)

func NewLinkCommandRPCClient

func NewLinkCommandRPCClient(runRPCClient *grpc.ClientConn) (v1_3.LinkCommandServiceClient, error)

func NewLinkQueryRPCClient

func NewLinkQueryRPCClient(runRPCClient *grpc.ClientConn) (v1_3.LinkQueryServiceClient, error)

func NewLinkRPCClient

func NewLinkRPCClient(runRPCClient *grpc.ClientConn) (v1_2.LinkServiceClient, error)

func NewMetadataRPCClient

func NewMetadataRPCClient(runRPCClient *grpc.ClientConn) (v1_5.MetadataServiceClient, error)

func NewSitemapServiceClient

func NewSitemapServiceClient(runRPCClient *grpc.ClientConn) (v1_4.SitemapServiceClient, error)

Types

type APIService

type APIService struct {
	// Common
	Log    logger.Logger
	Config *config.Config

	// Observability
	Tracer        trace.TracerProvider
	Monitoring    *monitoring.Monitoring
	PprofEndpoint profiling.PprofEndpoint
	AutoMaxPro    autoMaxPro.AutoMaxPro
	// contains filtered or unexported fields
}

func InitializeAPIService

func InitializeAPIService() (*APIService, func(), error)

func NewAPIService

func NewAPIService(

	log logger.Logger, config2 *config.Config, monitoring2 *monitoring.Monitoring,
	tracer trace.TracerProvider,
	pprofHTTP profiling.PprofEndpoint,
	autoMaxProcsOption autoMaxPro.AutoMaxPro,

	service *v1.API,
) (*APIService, error)

Jump to

Keyboard shortcuts

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