Documentation ¶
Overview ¶
Code generated from Pkl module `RedisConfig`. DO NOT EDIT.
Code generated from Pkl module `RedisConfig`. DO NOT EDIT.
Code generated from Pkl module `RedisConfig`. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConfig ¶
type RedisConfig struct { // Redis Feature is enabled Enabled bool `pkl:"enabled"` // The hostname that Redis listens on Host string `pkl:"host"` // The port that Redis listens on Port int `pkl:"port"` // The Redis DB selection Db int `pkl:"db"` // Authorization settings for Redis Auth *Auth `pkl:"auth"` }
func Load ¶
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*RedisConfig, error)
Load loads the pkl module at the given source and evaluates it with the given evaluator into a RedisConfig
func LoadFromPath ¶
func LoadFromPath(ctx context.Context, path string) (ret *RedisConfig, err error)
LoadFromPath loads the pkl module at the given path and evaluates it into a RedisConfig
Click to show internal directories.
Click to hide internal directories.