config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 45 Imported by: 0

README

Config

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(ctx context.Context) *appconfig.AppConfig

func LoadDependencyRegistry

func LoadDependencyRegistry(ctx context.Context) *registry.DependencyRegistry

func LoadLogger

func LoadLogger(ctx context.Context) *zerolog.Logger

func LoadProviderRegistry

func LoadProviderRegistry(ctx context.Context) *registry.ProviderRegistry

func LoadRegistry

func LoadRegistry(ctx context.Context) *registry.AppRegistry

func LoadRepositoryRegistry

func LoadRepositoryRegistry(ctx context.Context) *registry.RepositoryRegistry

func LoadServiceRegistry

func LoadServiceRegistry(ctx context.Context) *registry.ServiceRegistry

func LoadTracer

func LoadTracer(ctx context.Context) trace.Tracer

func NewHttpinCore

func NewHttpinCore() *httpinCore

func NewLumberJackConfig

func NewLumberJackConfig(filename string) *lumberJackConfig

func NewMinioClient

func NewMinioClient() *minioClient

func NewMySqlX

func NewMySqlX() *mySqlXClient

func NewNatsClient

func NewNatsClient() *natsClient

func NewOtelClient

func NewOtelClient(param OtelParam) *otelClient

func NewRedisClient

func NewRedisClient() *redisClient

func NewZeroLogConfig

func NewZeroLogConfig(defaultFields map[string]any) *zeroLogConfig

Types

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(
	reg *registry.AppRegistry,
	handler http.Handler,
	opts ...HttpServerOptionFn,
) (*HTTPServer, error)

func (*HTTPServer) Create

func (h *HTTPServer) Create(ctx context.Context) (*http.Server, error)

type HttpServerOption

type HttpServerOption struct{}

func NewHttpServerOption

func NewHttpServerOption() HttpServerOption

func (HttpServerOption) WithIdleTimeout

func (HttpServerOption) WithIdleTimeout(value time.Duration) HttpServerOptionFn

func (HttpServerOption) WithReadHeaderTimeout

func (HttpServerOption) WithReadHeaderTimeout(value time.Duration) HttpServerOptionFn

func (HttpServerOption) WithReadTimeout

func (HttpServerOption) WithReadTimeout(value time.Duration) HttpServerOptionFn

func (HttpServerOption) WithWriteTimeout

func (HttpServerOption) WithWriteTimeout(value time.Duration) HttpServerOptionFn

type HttpServerOptionFn

type HttpServerOptionFn func(in *httpServerOptionValue) error

type OtelParam

type OtelParam struct {
	Module        string
	ServerName    string
	ServerAddress string
}

Jump to

Keyboard shortcuts

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