config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IdmURL              string   `env:"IDM_URL" json:"idmURL"`
	Database            string   `env:"DATABASE" json:"database"`
	AllowedOrigins      []string `env:"ALLOWED_ORIGINS" json:"allowedOrigins"`
	PublicListenAddress string   `env:"PUBLIC_LISTEN" json:"publicListen"`
	AdminListenAddress  string   `env:"ADMIN_LISTEN" json:"adminListen"`
}

func LoadConfig

func LoadConfig(ctx context.Context, path string) (*Config, error)

type Providers

type Providers struct {
	Users  idmv1connect.UserServiceClient
	Roles  idmv1connect.RoleServiceClient
	Notify idmv1connect.NotifyServiceClient

	Repository *repo.Repository

	Config Config
}

func NewProviders

func NewProviders(ctx context.Context, cfg Config) (*Providers, error)

Jump to

Keyboard shortcuts

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