direct

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package direct is a transport.Interface implementation, which simply forwards given addresses "as is", without any modifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Dummy field is only user for testing.
	Dummy string `json:"-"`
}

Config represents host configuration for direct communication.

Using this struct will use local network and local filesystem.

func (*Config) New

func (c *Config) New() (transport.Interface, error)

New may in the future validate direct configuration.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates Config struct.

Currently it's not doing anything, but it's here for compatibility purposes with other types. In the future some validation rules may be added.

Jump to

Keyboard shortcuts

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