manager

package
v0.0.0-...-e30ce0b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppChannelConfig

type AppChannelConfig struct {
	AppID              string
	Port               int
	UnixDomainSocket   string
	MaxReadBufferSize  int
	MaxWriteBufferSize int
	DialTimeout        time.Duration
}

type Channel

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

func NewAppChannel

func NewAppChannel(ctx context.Context, config AppChannelConfig) (*Channel, error)

func (*Channel) Close

func (c *Channel) Close() error

type Manager

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

func NewManager

func NewManager(ctx context.Context) *Manager

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) GetChannel

func (m *Manager) GetChannel(ctx context.Context, target string) (c *Channel, err error)

func (*Manager) Init

func (m *Manager) Init(ctx context.Context) error

Jump to

Keyboard shortcuts

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