config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging    LoggingInfo  `json:"logging,omitempty"`
	ServerInfo ServerInfo   `json:"serverInfo"`
	Tools      []ToolConfig `json:"tools"`
}

func LoadConfig

func LoadConfig(configFilePath string) (*Config, error)

LoadConfig loads the configuration from a file

type LoggingInfo

type LoggingInfo struct {
	File       string `json:"file,omitempty"`
	IsFifo     bool   `json:"isFifo,omitempty"`
	Level      string `json:"level,omitempty"`
	WithStderr bool   `json:"withStderr,omitempty"`
}

type ServerInfo

type ServerInfo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ToolConfig

type ToolConfig struct {
	Name          string      `json:"name"`
	IsDisabled    bool        `json:"isDisabled,omitempty"`
	Description   string      `json:"description,omitempty"`
	Configuration interface{} `json:"configuration"`
}

Jump to

Keyboard shortcuts

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