api_di

package
v0.0.0-...-72e6d15 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewLinkCommandRPCClient

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

func NewLinkQueryRPCClient

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

func NewLinkRPCClient

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

func NewSitemapServiceClient

func NewSitemapServiceClient(runRPCClient *grpc.ClientConn) (sitemapv1grpc.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 domain.API,
) (*APIService, error)

Jump to

Keyboard shortcuts

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