Discover Packages
libdb.so/hrtclicker
package
module
Version:
v0.0.0-...-6b4eda8
Opens a new window with list of versions in this module.
Published: Jun 19, 2024
License: GPL-3.0
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.
README
README
¶
hrtclicker
This service was written because this one was struggling to keep track of when to apply its estrogen patches,
so it built a service to keep track of that for it. Being a pure Go service that relies on Gotify
to send out push notifications to its phone, no Java code was needed.
Architecture
Web frontend that allows recording HRT history and displaying statistics
Configuration:
Recommended time intervals for HRT
Gotify integration: push notifications when it's time to do HRT
Expand ▾
Collapse ▴
Documentation
¶
type Config struct {
HRT HRTConfig `json:"hrt"`
Gotify struct {
Endpoint string `json:"endpoint"`
Token string `json:"token"`
Notification Notification `json:"notification"`
} `json:"gotify"`
}
Config contains the configuration for the hrtclicker application.
See config.json for an example configuration.
ReadJSONConfig reads a Config from the provided io.Reader in JSON format.
ReadJSONConfigFile reads a Config from the provided file path as a JSON file.
type HRTConfig struct {
Type HRTType `json:"type"`
Interval cfgtypes .Duration `json:"interval"`
Concurrence int `json:"concurrence"`
}
HRTType contains the enumeration for the various types of hormone replacement
therapy. The supported types are listed as constants.
type Notification struct {
Title string `json:"title"`
Message string `json:"message"`
}
Notification is a type used to represent the notification message.
It copies Gotify's notification message format.
NotificationTemplateData is the data used for rendering the template of both
the notification title and message.
Source Files
¶
Directories
¶
cmd
internal
Click to show internal directories.
Click to hide internal directories.