middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPPort ...
	HTTPPort = 5985
	// HTTPSPort ...
	HTTPSPort = 5986
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	Execute(cmd string) (string, string, error)
	Exit()
}

Middleware ...

func NewSession

func NewSession(upstream Middleware, config *SessionConfig) (Middleware, error)

NewSession ...

func NewUTF8

func NewUTF8(upstream Middleware) (Middleware, error)

NewUTF8 ...

type SessionConfig

type SessionConfig struct {
	ComputerName          string
	AllowRedirection      bool
	Authentication        string
	CertificateThumbprint string
	Credential            interface{}
	Port                  int
	UseSSL                bool
}

SessionConfig ...

func NewSessionConfig

func NewSessionConfig() *SessionConfig

NewSessionConfig ...

func (*SessionConfig) ToArgs

func (c *SessionConfig) ToArgs() []string

ToArgs ...

type UserPasswordCredential

type UserPasswordCredential struct {
	Username string
	Password string
}

UserPasswordCredential ...

Jump to

Keyboard shortcuts

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