 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const (
	Path = "config/config.yaml"
)
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
	Server   `yaml:"server"`
	Log      `yaml:"logger"`
	Authn    `yaml:"authn"`
	Tracer   `yaml:"tracer"`
	Meter    `yaml:"meter"`
	Service  `yaml:"service"`
	Database `yaml:"database"`
}
    Config -
type Database ¶
type Database struct {
	Engine                string        `yaml:"engine" env-default:"memory"`
	URI                   string        `yaml:"uri"`
	MaxOpenConnections    int           `yaml:"max_open_connections"`
	MaxIdleConnections    int           `yaml:"max_idle_connections"`
	MaxConnectionLifetime time.Duration `yaml:"max_connection_lifetime"`
	MaxConnectionIdleTime time.Duration `yaml:"max_connection_idle_time"`
}
    Database -.
type HTTP ¶
type HTTP struct {
	Enabled            bool      `yaml:"enabled" env-default:"true"`
	Port               string    `yaml:"port" env-default:"3476"`
	TLSConfig          TLSConfig `yaml:"tls"`
	CORSAllowedOrigins []string  `yaml:"cors_allowed_origins"`
	CORSAllowedHeaders []string  `yaml:"cors_allowed_headers"`
}
    HTTP -.
type Meter ¶ added in v0.2.1
type Meter struct {
	Enabled  bool   `yaml:"enabled" env-default:"true"`
	Exporter string `yaml:"exporter" env-default:"otlp"`
	Endpoint string `yaml:"endpoint" env-default:"telemetry.permify.co"`
}
    Meter -.
type Service ¶
type Service struct {
	CircuitBreaker   bool `yaml:"circuit_breaker" env-default:"false"`
	ConcurrencyLimit int  `yaml:"concurrency_limit" env-default:"100"`
}
    Service -.
 Click to show internal directories. 
   Click to hide internal directories.