config

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 8 Imported by: 1

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