package
1.1.2
Repository: https://github.com/dityuiri/go-adapter.git
Documentation: pkg.go.dev

# Packages

Package mock is a generated GoMock package.

# Functions

NewConfig returns an instance to the configuration.
No description provided by the author
NewServer create Chi instance that contains Chi router ctx is passed and store in Chi instance appName is used for service name.
No description provided by the author
No description provided by the author
AllowCORS is a middleware to allow HTTP request from JS (web browser).
WithMiddleware will add middleware to the chi http server we can then put our custom middleware or we can use middleware that being provided by go-chi.
No description provided by the author
WithTimeout is a short-hand middleware to set a timeout value on the request context https://pkg.go.dev/github.com/go-chi/chi/middleware#Timeout.
WithValue is a short-hand middleware to set a key/value on the request context this middleware utilized `github.com/go-chi/chi/middleware`.

# Constants

No description provided by the author

# Variables

RequestIDHeaderName is a key used to get `X-Request-Id` from request header.

# Structs

Configuration contains the configuration to connect to the database.
No description provided by the author
Server contains information about this module.
TracingData is a struct to define data for tracing.

# Interfaces

IServer defines the functions of this module.

# Type aliases

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