config

package
v0.12.78 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDMConfig added in v0.8.4

type IDMConfig struct {
	ExcludedTenants []string `mapstructure:"excluded-tenants" default:"welcome"`
}

type JWTConfig added in v0.8.4

type JWTConfig struct {
	UserIDClaim string `mapstructure:"jwt-user-id-claim" default:"sub"`
}

type KeycloakCacheConfig added in v0.8.4

type KeycloakCacheConfig struct {
	Enabled bool          `mapstructure:"keycloak-cache-enabled" default:"true"`
	TTL     time.Duration `mapstructure:"keycloak-user-cache-ttl" default:"1h"`
}

type KeycloakConfig added in v0.8.4

type KeycloakConfig struct {
	BaseURL      string              `mapstructure:"keycloak-base-url" default:"https://portal.dev.local:8443/keycloak"`
	ClientID     string              `mapstructure:"keycloak-client-id" default:"iam"`
	ClientSecret string              `mapstructure:"keycloak-client-secret"`
	PageSize     int                 `mapstructure:"keycloak-page-size" default:"100"`
	Cache        KeycloakCacheConfig `mapstructure:",squash"`
}

type OpenFGAConfig added in v0.8.4

type OpenFGAConfig struct {
	GRPCAddr      string        `mapstructure:"openfga-grpc-addr" default:"openfga:8081"`
	StoreCacheTTL time.Duration `mapstructure:"openfga-store-cache-ttl" default:"5m"`
}

type PaginationConfig added in v0.8.4

type PaginationConfig struct {
	DefaultLimit int `mapstructure:"pagination-default-limit" default:"10"`
	DefaultPage  int `mapstructure:"pagination-default-page" default:"1"`
}

type RolesConfig added in v0.8.4

type RolesConfig struct {
	FilePath string `mapstructure:"roles-file-path" default:"input/roles.yaml"`
}

type ServiceConfig

type ServiceConfig struct {
	Port       int              `mapstructure:"port" default:"8080"`
	OpenFGA    OpenFGAConfig    `mapstructure:",squash"`
	JWT        JWTConfig        `mapstructure:",squash"`
	IDM        IDMConfig        `mapstructure:",squash"`
	Keycloak   KeycloakConfig   `mapstructure:",squash"`
	Pagination PaginationConfig `mapstructure:",squash"`
	Sorting    SortingConfig    `mapstructure:",squash"`
	Roles      RolesConfig      `mapstructure:",squash"`
}

type SortingConfig added in v0.8.4

type SortingConfig struct {
	DefaultField     string `mapstructure:"sorting-default-field" default:"LastName"`
	DefaultDirection string `mapstructure:"sorting-default-direction" default:"ASC"`
}

Jump to

Keyboard shortcuts

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