dummy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Dummy module implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FT

type FT struct{}

FT is a dummy file transfer module. It requests a file from the client and writes it to a file, processes it, and sends it back.

func (*FT) Deinit

func (d *FT) Deinit() error

func (*FT) Help

func (d *FT) Help() string

func (*FT) Init

func (d *FT) Init() error

func (*FT) Run

func (d *FT) Run(_ context.Context, s module.Session, args ...string) error

type Repeat

type Repeat struct{}

Repeat repeats the input from the client. It demonstrates the use of the Console method of module.Session to interact with the client.

func (*Repeat) Deinit

func (d *Repeat) Deinit() error

func (*Repeat) Help

func (d *Repeat) Help() string

func (*Repeat) Init

func (d *Repeat) Init() error

func (*Repeat) Run

func (d *Repeat) Run(_ context.Context, s module.Session, _ ...string) error

type Status

type Status struct{}

Status prints status information about itself and the environment. It demonstrates the use of the Print method of module.Session to send messages to the client.

func (*Status) Deinit

func (d *Status) Deinit() error

func (*Status) Help

func (d *Status) Help() string

func (*Status) Init

func (d *Status) Init() error

func (*Status) Run

func (d *Status) Run(_ context.Context, s module.Session, args ...string) error

Jump to

Keyboard shortcuts

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