config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by baton-sdk. DO NOT EDIT!!!

Index

Constants

This section is empty.

Variables

View Source
var Config = field.NewConfiguration(
	[]field.SchemaField{
		clusterHostField,
		apiPortField,
		usernameField,
		passwordField,
	},
	field.WithConnectorDisplayName("Redis"),
	field.WithIconUrl("/static/app-icons/redis.svg"),
	field.WithHelpUrl("/docs/baton/redis"),
)

Functions

func ValidateConfig

func ValidateConfig(c *Redis) error

Types

type Redis

type Redis struct {
	ClusterHost string `mapstructure:"cluster-host"`
	ApiPort     string `mapstructure:"api-port"`
	Username    string `mapstructure:"username"`
	Password    string `mapstructure:"password"`
}

func (*Redis) GetBool

func (c *Redis) GetBool(fieldName string) bool

func (*Redis) GetInt

func (c *Redis) GetInt(fieldName string) int

func (*Redis) GetString

func (c *Redis) GetString(fieldName string) string

func (*Redis) GetStringMap

func (c *Redis) GetStringMap(fieldName string) map[string]any

func (*Redis) GetStringSlice

func (c *Redis) GetStringSlice(fieldName string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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