config

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 3 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
}

type JWTConfig added in v0.8.4

type JWTConfig struct {
	UserIDClaim string
}

type KeycloakCacheConfig added in v0.8.4

type KeycloakCacheConfig struct {
	Enabled bool
	TTL     time.Duration
}

type KeycloakConfig added in v0.8.4

type KeycloakConfig struct {
	BaseURL      string
	ClientID     string
	ClientSecret string
	PageSize     int
	Cache        KeycloakCacheConfig
}

type OpenFGAConfig added in v0.8.4

type OpenFGAConfig struct {
	GRPCAddr      string
	StoreCacheTTL time.Duration
}

type PaginationConfig added in v0.8.4

type PaginationConfig struct {
	DefaultLimit int
	DefaultPage  int
}

type RolesConfig added in v0.8.4

type RolesConfig struct {
	FilePath string
}

type ServiceConfig

type ServiceConfig struct {
	Port       int
	OpenFGA    OpenFGAConfig
	JWT        JWTConfig
	IDM        IDMConfig
	Keycloak   KeycloakConfig
	Pagination PaginationConfig
	Sorting    SortingConfig
	Roles      RolesConfig
}

func NewServiceConfig added in v0.13.1

func NewServiceConfig() *ServiceConfig

func (*ServiceConfig) AddFlags added in v0.13.1

func (c *ServiceConfig) AddFlags(fs *pflag.FlagSet)

type SortingConfig added in v0.8.4

type SortingConfig struct {
	DefaultField     string
	DefaultDirection string
}

Jump to

Keyboard shortcuts

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