modem

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 8 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 {
	ServiceCaller
	Init() error
	Destroy() error
	AddService(name string, runner service.Service) error
}

func New

func New(opt *ModemOptions) Modem

type ModemOptions

type ModemOptions struct {
	Logger logger.Logger
}

type ServiceCaller added in v0.64.0

type ServiceCaller interface {
	Call(ctx context.Context, service string, endpoint string, arguments map[string]interface{}, fd string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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