config

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	AccessTokenKey = "token"
	BaseURLKey     = "base-url"
)

Variables

View Source
var (
	// AccessTokenField is the personal access token for Segment API authentication.
	AccessTokenField = field.StringField(
		AccessTokenKey,
		field.WithDisplayName("Access Token"),
		field.WithDescription("Personal Access Token (PAT) for Segment API authentication"),
		field.WithRequired(true),
		field.WithIsSecret(true),
	)

	// BaseURLField is the base URL for the Segment API.
	BaseURLField = field.StringField(
		BaseURLKey,
		field.WithDisplayName("Base URL"),
		field.WithDescription("Base URL for the Segment API"),
		field.WithDefaultValue("https://api.segmentapis.com"),
		field.WithHidden(true),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	)

	ConfigurationFields = []field.SchemaField{
		AccessTokenField,
		BaseURLField,
	}
)
View Source
var Config = field.NewConfiguration(
	ConfigurationFields,
	field.WithConnectorDisplayName("Twilio Segment"),
	field.WithHelpUrl("/docs/baton/segment"),
	field.WithIconUrl("/static/app-icons/segment.svg"),
)

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Token   string `mapstructure:"token"`
	BaseUrl string `mapstructure:"base-url"`
}

func (*Segment) GetBool

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

func (*Segment) GetInt

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

func (*Segment) GetString

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

func (*Segment) GetStringMap

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

func (*Segment) GetStringSlice

func (c *Segment) 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