connect

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rest

type Rest interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Detail(context.Context, int) (map[string]any, error)
	Query(context.Context, string, int) (map[string]any, error)
	Version(context.Context) (string, error)
	Vote(context.Context, int, int, string, string, string) error
}

func RestNew added in v1.0.0

func RestNew(_ context.Context, cfg *RestConfig) Rest

type RestConfig

type RestConfig struct {
	Config config.Config
}

func DefaultRestConfig

func DefaultRestConfig() *RestConfig

type Ssh

type Ssh interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Reconnect(context.Context) error
	Run(context.Context, string) (string, error)
	Start(context.Context, string, chan string) error
}

func SshNew

func SshNew(_ context.Context, cfg *SshConfig) Ssh

type SshConfig

type SshConfig struct {
	Config config.Config
}

func DefaultSshConfig

func DefaultSshConfig() *SshConfig

Jump to

Keyboard shortcuts

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