Discover Packages
github.com/m5lapp/go-service-toolkit
config
package
Version:
v0.0.0-...-9e5d004
Opens a new window with list of versions in this module.
Published: Aug 6, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AuthService struct {
Addr string
}
AuthService stores the configuration for an authentication service.
Flags parses the flags configured for an auth service. The parameters it
takes are the default values to use for the rps, burst and active flags
respectively.
type Cors struct {
AllowMethods []string
TrustedOrigins []string
}
Cors stores the configuration for CORS (Cross-Origin Resource Sharing).
Flags parses the flags configured for CORS.
TODO: These two flags are not currently populated when called.
Limiter stores the configuration for a rate limiter.
Flags parses the flags configured for a rate limiter. The parameters it
takes are the default values to use for the rps, burst and active flags
respectively.
MongoDB stores the configuration for a MongoDB NoSQL database.
Flags parses the flags for a MongoDB database.
Server stores the configuration for a web application server.
Flags parses the flags for a web application server. The parameter is
for the default server address.
type Service struct {
Addr string
}
Service stores the configuration for an external service that can be called.
Flags parses the flags for an external service. The parameters are the name
and description to use for the flag.
Smtp stores the configuration for an SMTP server connection.
Flags parses the flags for an SMTP server connection.
SqlDB stores the configuration for a SQL database.
Flags parses the flags for a SQL database. The parameters it takes are
for the default max open connections, max idle connections and max idle
connection times respectively.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.