appconfig

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated from Pkl module `AppConfig`. DO NOT EDIT.

Code generated from Pkl module `AppConfig`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// Grpc Configuration
	Grpc *grpcconfig.GrpcConfig `pkl:"grpc"`

	// Http Configuration
	Http *httpconfig.HttpConfig `pkl:"http"`

	// Jwt Configuration
	Jwt *jwtconfig.JwtConfig `pkl:"jwt"`

	// Log Configuration
	Log *logconfig.LogConfig `pkl:"log"`

	// Minio Storage Configuration
	Minio *minioconfig.MinioConfig `pkl:"minio"`

	// MySql Configuration
	Mysql *mysqlconfig.MySQLConfig `pkl:"mysql"`

	// Nats Configuration
	Nats *natsconfig.NatsConfig `pkl:"nats"`

	// Otel Configuration
	Otel *otelconfig.OtelConfig `pkl:"otel"`

	// Redis Configuration
	Redis *redisconfig.RedisConfig `pkl:"redis"`

	// Thrid-Party Configuration
	ThridParty map[string]map[string]any `pkl:"thridParty"`
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*AppConfig, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a AppConfig

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *AppConfig, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a AppConfig

Jump to

Keyboard shortcuts

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