natsconfig

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: 2 Imported by: 0

Documentation

Overview

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// Nats authorization is nabled
	Enabled bool `pkl:"enabled"`

	// Nats authorization username
	Username string `pkl:"username"`

	// Nats authorization password
	Password string `pkl:"password"`
}

type NatsConfig

type NatsConfig struct {
	// Nats Feature is enabled
	Enabled bool `pkl:"enabled"`

	// The hostname that Nats listens on
	Host string `pkl:"host"`

	// The port that Nats listens on
	Port int `pkl:"port"`

	// Authorization settings for Nats
	Auth *Auth `pkl:"auth"`
}

func Load

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

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

func LoadFromPath

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

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

Jump to

Keyboard shortcuts

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