core

package
v0.7.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 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 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"`
	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"`
}

Jump to

Keyboard shortcuts

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