toneburst

package
v2.2.22 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Construct() (ToneBurst, error)
}

type Monotone

type Monotone struct {
	Config  MonotoneConfig
	Buffer  *monolith.Buffer
	Context *monolith.Context
}

func NewMonotone

func NewMonotone(config MonotoneConfig) *Monotone

func (*Monotone) Perform

func (monotone *Monotone) Perform(conn net.Conn) error

TODO: Implement Perform

type MonotoneConfig

type MonotoneConfig struct {
	AddSequences    *monolith.Instance
	RemoveSequences *monolith.Description
	SpeakFirst      bool
}

func (MonotoneConfig) Construct

func (config MonotoneConfig) Construct() (ToneBurst, error)

type Sequence

type Sequence []byte

type ToneBurst

type ToneBurst interface {
	Perform(conn net.Conn) error
}

type Whalesong

type Whalesong struct {
	// contains filtered or unexported fields
}

func NewWhalesong

func NewWhalesong(config WhalesongConfig) *Whalesong

func (*Whalesong) Perform

func (whalesong *Whalesong) Perform(conn net.Conn) error

TODO: Implement Perform

type WhalesongConfig

type WhalesongConfig struct {
	AddSequences    []Sequence
	RemoveSequences []Sequence
}

func (WhalesongConfig) Construct

func (config WhalesongConfig) Construct() (ToneBurst, error)

Jump to

Keyboard shortcuts

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