Documentation ¶
Index ¶
- Variables
- func InitializeRoute(ctx context.Context, c config.Config) (*http.Server, func(), error)
- func NewServer(c config.Config, route http.Handler) (*http.Server, func())
- func NewSlog(h slog.Handler) *slog.Logger
- func ProvideCache(c config.Config) cache.Cache
- func ProvideDB(c config.Config) (*sql.DB, func(), error)
- func ProvideEnt(ctx context.Context, db *sql.DB, c config.Config, sl *slog.Logger) (*ent.Client, func(), error)
- func ProvideHttpClient() *http.Client
- func ProvidePriKey(c config.Config) (*rsa.PrivateKey, error)
- func ProvidePubKey(pri *rsa.PrivateKey) *rsa.PublicKey
- func ProvidePubKeyStr(pri *rsa.PrivateKey) (yggdrasil.PubRsaKey, error)
- func ProvideSlog(c config.Config) slog.Handler
- func ProvideValidate() *validator.Validate
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitializeRoute ¶
func ProvideEnt ¶
func ProvideHttpClient ¶
func ProvidePriKey ¶
func ProvidePriKey(c config.Config) (*rsa.PrivateKey, error)
func ProvidePubKey ¶
func ProvidePubKey(pri *rsa.PrivateKey) *rsa.PublicKey
func ProvidePubKeyStr ¶ added in v0.0.3
func ProvidePubKeyStr(pri *rsa.PrivateKey) (yggdrasil.PubRsaKey, error)
func ProvideValidate ¶
func ProvideValidate() *validator.Validate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.