config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Creator

func Creator(_ *cobra.Command) initcmd.WritableConfig

Creator represents a configuration creator

func MakeEncodingConfig

func MakeEncodingConfig(managers []module.BasicManager) func() params.EncodingConfig

MakeEncodingConfig creates an EncodingConfig to properly handle all the messages

Types

type Config

type Config struct {
	JunoConfig    junoconfig.Config `yaml:"-,inline"`
	ActionsConfig actions.Config    `yaml:"actions"`
}

Config represents the BDJuno configuration

func NewConfig

func NewConfig(junoCfg junoconfig.Config, actionsCfg actions.Config) Config

NewConfig returns a new Config instance

func (Config) GetBytes

func (c Config) GetBytes() ([]byte, error)

GetBytes implements WritableConfig

Jump to

Keyboard shortcuts

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