config

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by config, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("services",
	fx.Provide(
		Init,
		GetAPI,

		GetGRPC,

		GetDB,
	),
	fx.Invoke(func(Config) {}),
)

Functions

This section is empty.

Types

type API

type API struct {
	HTTP HTTP
}

func GetAPI

func GetAPI() API

type Config

type Config struct {
	API  API
	GRPC GRPC
	DB   DB
}

func Init

func Init() Config

type DB

type DB struct {
	Default Postgres
}

func GetDB

func GetDB() DB

type GRPC

type GRPC struct {
	HTTP HTTP
}

func GetGRPC

func GetGRPC() GRPC

type HTTP

type HTTP struct {
	Addr string
	Port string
}

type Postgres

type Postgres struct {
	URL string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL