Documentation
¶
Index ¶
- func LoadConfig(ctx context.Context) *appconfig.AppConfig
- func LoadDependencyRegistry(ctx context.Context) *registry.DependencyRegistry
- func LoadLogger(ctx context.Context) *zerolog.Logger
- func LoadProviderRegistry(ctx context.Context) *registry.ProviderRegistry
- func LoadRegistry(ctx context.Context) *registry.AppRegistry
- func LoadRepositoryRegistry(ctx context.Context) *registry.RepositoryRegistry
- func LoadServiceRegistry(ctx context.Context) *registry.ServiceRegistry
- func LoadTracer(ctx context.Context) trace.Tracer
- func NewHttpinCore() *httpinCore
- func NewLumberJackConfig(filename string) *lumberJackConfig
- func NewMinioClient() *minioClient
- func NewMySqlX() *mySqlXClient
- func NewNatsClient() *natsClient
- func NewOtelClient(param OtelParam) *otelClient
- func NewRedisClient() *redisClient
- func NewZeroLogConfig(defaultFields map[string]any) *zeroLogConfig
- type HTTPServer
- type HttpServerOption
- func (HttpServerOption) WithIdleTimeout(value time.Duration) HttpServerOptionFn
- func (HttpServerOption) WithReadHeaderTimeout(value time.Duration) HttpServerOptionFn
- func (HttpServerOption) WithReadTimeout(value time.Duration) HttpServerOptionFn
- func (HttpServerOption) WithWriteTimeout(value time.Duration) HttpServerOptionFn
- type HttpServerOptionFn
- type OtelParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDependencyRegistry ¶
func LoadDependencyRegistry(ctx context.Context) *registry.DependencyRegistry
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 NewHttpinCore ¶
func NewHttpinCore() *httpinCore
func NewLumberJackConfig ¶
func NewLumberJackConfig(filename string) *lumberJackConfig
func NewMinioClient ¶
func NewMinioClient() *minioClient
func NewNatsClient ¶
func NewNatsClient() *natsClient
func NewOtelClient ¶
func NewOtelClient(param OtelParam) *otelClient
func NewRedisClient ¶
func NewRedisClient() *redisClient
func NewZeroLogConfig ¶
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)
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
Click to show internal directories.
Click to hide internal directories.