api

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Context() core.Context
	CommandInspect(file string, lineEnd int, source string) (interface{}, error)
	CommandPlay(file string, lineEnd int, source string) (interface{}, error)
	CommandStop(file string, lineEnd int, source string) (interface{}, error)
	CommandEvaluate(file string, lineEnd int, source string) (interface{}, error)
	CommandKill() error
	CommandHover(source string) string
	ChangeDefaultDeviceAndChannel(isInput bool, deviceID int, channel int) error
	CommandMIDISample(file string, lineEnd int, source string) ([]byte, error)
}

func NewService

func NewService(ctx core.Context) Service

type ServiceImpl

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

func (*ServiceImpl) ChangeDefaultDeviceAndChannel

func (s *ServiceImpl) ChangeDefaultDeviceAndChannel(isInput bool, deviceID int, channel int) error

func (*ServiceImpl) CommandEvaluate

func (s *ServiceImpl) CommandEvaluate(file string, lineEnd int, source string) (interface{}, error)

func (*ServiceImpl) CommandHover

func (s *ServiceImpl) CommandHover(source string) string

func (*ServiceImpl) CommandInspect

func (s *ServiceImpl) CommandInspect(file string, lineEnd int, source string) (interface{}, error)

func (*ServiceImpl) CommandKill

func (s *ServiceImpl) CommandKill() error

func (*ServiceImpl) CommandMIDISample

func (s *ServiceImpl) CommandMIDISample(filename string, lineEnd int, source string) ([]byte, error)

func (*ServiceImpl) CommandPlay

func (s *ServiceImpl) CommandPlay(file string, lineEnd int, source string) (interface{}, error)

func (*ServiceImpl) CommandStop

func (s *ServiceImpl) CommandStop(file string, lineEnd int, source string) (interface{}, error)

func (*ServiceImpl) Context

func (s *ServiceImpl) Context() core.Context

Jump to

Keyboard shortcuts

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