importer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(config Config) (*Client, error)

func (*Client) SetServices

func (client *Client) SetServices(services map[string]ServiceConfig)

func (*Client) Start

func (client *Client) Start() error

func (*Client) Stop

func (client *Client) Stop()

type Config

type Config struct {
	DialConfig
	Services map[string]ServiceConfig
}

type DialConfig

type DialConfig struct {
	ServerAddress string
	grpcapi.TLSConfig
	Log         *log.Logger
	AccessToken string
}

type PipeConn

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

func Dial

func Dial(ctx context.Context, service string, config DialConfig) (*PipeConn, error)

func (PipeConn) Close

func (c PipeConn) Close() error

func (PipeConn) Read

func (c PipeConn) Read(b []byte) (n int, err error)

func (PipeConn) Write

func (c PipeConn) Write(b []byte) (n int, err error)

type ServiceConfig

type ServiceConfig struct {
	Listen   string
	Listener net.Listener
}

Jump to

Keyboard shortcuts

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