modem

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modem

type Modem interface {
	Init() error
	Call(service string, endpoint string, arguments map[string]interface{}, fd string) (string, error)
	Destroy() error
	AddService(id string, name string, port string, path string) error
}

func New

func New(opt *ModemOptions) Modem

type ModemOptions

type ModemOptions struct {
	Logger               logger.Logger
	ServiceLogDirectory  string
	FileCreator          fileCreator
	ServiceStarter       serviceStarter
	Dialer               dialer
	ServiceClientCreator serviceClientCreator
}

Jump to

Keyboard shortcuts

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