Categorygithub.com/gitkeng/ihttp
modulepackage
0.0.2
Repository: https://github.com/gitkeng/ihttp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CSRF returns a Cross-Site Request Forgery (CSRF) middleware.
CSRFIncludeGETMethodWithConfig returns a CSRF middleware with config.
CSRFWithConfig returns a CSRF middleware with config.
No description provided by the author
New is the constructor function of Microservice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHTTPContext is the constructor function for HTTPContext.
NewRedisCache return new RedisCache.
NewRequester return new Requester.
No description provided by the author
No description provided by the author
ToErrors convert error to Errors or new Errors.
WithAPIConfig is the option for setting api config.
No description provided by the author
WithDBConfigs is the option for setting database config.
WithHealthChecks is the option for setting health check functions.
WithLogConfig is the option for setting log config.
WithMiddleWares is the option for setting middlewares.
WithRedisConfigs is the option for setting redis config.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Loglevel.
DefaultDBConnectionMaxIdleConns <= 0, no idle connections are retained.
DefaultDBConnectionMaxLifeTime <= 0, connections are not closed due to a dbConn's age.
DefaultDBConnectionMaxOpenConns 0 (unlimited).
DefaultDBGetRetryLimits is the default timeout for creating db dbConn loop.
No description provided by the author
DefaultLogFileMaxAge is the default max age of log file in days.
DefaultLogFileMaxBackups is the default max number of log file backups.
DefaultLogFileMaxSize is the default max size of log file in MB.
DefaultPort is the default port for the service.
Default for redis cache setting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultCSRFConfig is the default CSRF middleware config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RedisCache Config errors.
Database Config errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Log Config errors.
No description provided by the author
No description provided by the author
No description provided by the author
Microservice errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HTTPContext implement IContext it is context for HTTP.
No description provided by the author
Microservice is the centralized service management.
No description provided by the author
No description provided by the author
No description provided by the author
RedisCache is the struct for cache service.
No description provided by the author
No description provided by the author
Requester implement IRequester.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
IContext is the context for service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IMicroservice is interface for centralized service management.
No description provided by the author
No description provided by the author
No description provided by the author
IRedisCache is the interface for cache service.
IRedisConfig is RedisCache configuration interface.
IRequester is interface to connect to HTTP endpoint.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServiceHandleFunc is the handler for each Microservice.
No description provided by the author