core

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	ID     string `yaml:"id"`
	Expect string `yaml:"expect"`
}

type ComponentNamespace

type ComponentNamespace struct {
	Namespace string       `yaml:"namespace"`
	Items     []*Component `yaml:"component"`
}

type Dialoguss

type Dialoguss struct {
	IsInteractive bool
	File          string
	Config        DialogussConfig
}

Dialoguss is an application that can have one or more pseudo-ussd sessions

type DialogussConfig

type DialogussConfig struct {
	URL         string               `yaml:"url"`
	Dial        string               `yaml:"dial"`
	PhoneNumber string               `yaml:"phoneNumber"`
	Sessions    []Session            `yaml:"sessions"`
	Components  []ComponentNamespace `yaml:"components"`
	Timeout     int                  `yaml:"timeout"`
}

type Session

type Session struct {
	ID          string  `yaml:"id"`
	PhoneNumber string  `yaml:"phoneNumber"`
	Description string  `yaml:"description"`
	Steps       []*Step `yaml:"steps"`
	ServiceCode string
	Url         string
	Client      *http.Client
	ApiType     string
	Timeout     time.Duration
}

type Step

type Step struct {
	StepNo      int
	IsLast      bool
	IsDial      bool
	Text        string `yaml:"userInput"`
	Expect      string `yaml:"expect"`
	ComponentID string `yaml:"componentId"`
}

Jump to

Keyboard shortcuts

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