customize

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package customize implements the functions, types, and interfaces for the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromName added in v0.1.0

func ConfigFromName(cc *configv1.Customize, name string) *configv1.Customize_Config

ConfigFromName returns the config with the given name.

func ConfigsFromType added in v0.1.0

func ConfigsFromType(cc *configv1.Customize, typo string) map[string]*configv1.Customize_Config

ConfigsFromType returns all configs with the given type.

Types

type Option

type Option struct {
	Customize *configv1.Customize
}

Option is a struct that holds a value.

type OptionSetting added in v0.1.0

type OptionSetting = func(config *Option)

OptionSetting is a function that sets a value on a Setting.

func WithCustomize

func WithCustomize(customize *configv1.Customize) OptionSetting

WithCustomize sets the customize config.

Jump to

Keyboard shortcuts

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