customize

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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 GetNameConfig

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

GetNameConfig returns the config with the given name.

func GetTypeConfigs

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

GetTypeConfigs returns all configs with the given type.

Types

type Option

type Option = func(s *Setting)

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

func WithCustomize

func WithCustomize(c *configv1.Customize) Option

WithCustomize sets the custom field of a Setting.

type Setting

type Setting struct {
	Customize *configv1.Customize
}

Setting is a struct that holds a value.

Jump to

Keyboard shortcuts

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