The highest tagged major version is
v2.
package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Feb 10, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Create loads env variables, calls the initService method for setup and starts the service.
Interrupt can be used to send an interrupt signal to the running service like syscall.SIGTERM
type Config struct {
Port int
LogLevel string
}
Config defines the values that can be loaded from env vars or other config files.
type Service interface {
Start() error
Close() error
}
Service defines the methods that are required to operate a web service.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.