config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel

func LogLevel() slog.Level

Types

type Bridge

type Bridge struct {
	Services []Service `hcl:"service,block"`
}

func Load

func Load(logger bridgelog.Logger, args []string) (*Bridge, error)

func ReadHCL

func ReadHCL(filename string) (*Bridge, error)

type FlagError

type FlagError struct {
	// contains filtered or unexported fields
}

FlagError is a special type marking that the error is a result of a flag parsing error.

type Service

type Service struct {
	Name   string `hcl:"name,label"`
	Target string `hcl:"target"`
}

Jump to

Keyboard shortcuts

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