nodeconfig

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionV1   = "moltnet.node.v1"
	DefaultPath = "MoltnetNode"
)

Variables

View Source
var DefaultDiscoveryOrder = []string{
	DefaultPath,
	defaultYAMLAlt,
	defaultYMLAlt,
	defaultJSONAlt,
}

Functions

func DiscoverPath

func DiscoverPath(explicit string) (string, bool, error)

Types

type AttachmentConfig

type AttachmentConfig struct {
	Agent   bridgeconfig.AgentConfig        `json:"agent" yaml:"agent"`
	Moltnet bridgeconfig.MoltnetTokenConfig `json:"moltnet,omitempty" yaml:"moltnet,omitempty"`
	Runtime bridgeconfig.RuntimeConfig      `json:"runtime" yaml:"runtime"`
	Rooms   []bridgeconfig.RoomBinding      `json:"rooms,omitempty" yaml:"rooms,omitempty"`
	DMs     *bridgeconfig.DMConfig          `json:"dms,omitempty" yaml:"dms,omitempty"`
}

type Config

type Config struct {
	Clock       *bridgeconfig.ClockConfig  `json:"clock,omitempty" yaml:"clock,omitempty"`
	Version     string                     `json:"version" yaml:"version"`
	Moltnet     bridgeconfig.MoltnetConfig `json:"moltnet" yaml:"moltnet"`
	Attachments []AttachmentConfig         `json:"attachments" yaml:"attachments"`
}

func LoadFile

func LoadFile(path string) (Config, error)

func (Config) BridgeConfigs

func (c Config) BridgeConfigs() []bridgeconfig.Config

func (Config) ResolveTokenPaths added in v0.1.1

func (c Config) ResolveTokenPaths(baseDir string) Config

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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