session

package
v0.0.0-...-6946fcc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	Address string `altid:"address,no_prompt"`
	Port    int    `altid:"port,no_prompt"`
	SSL     string `altid:"ssl,prompt:SSL mode,pick:none|simple|certificate"`
	TLSCert string `altid:"tlscert,no_prompt"`
	TLSKey  string `altid:"tlskey,no_prompt"`
}

type Session

type Session struct {
	Defaults *Defaults
	Verbose  bool
	// contains filtered or unexported fields
}

func (*Session) Command

func (s *Session) Command(cmd *commander.Command) error

func (*Session) Connect

func (s *Session) Connect(Username string) error

func (*Session) Handle

func (s *Session) Handle(bufname string, l *markup.Lexer) error

func (*Session) Listen

func (s *Session) Listen(c controller.Controller)

func (*Session) Parse

func (s *Session) Parse(ctx context.Context)

func (*Session) Quit

func (s *Session) Quit()

func (*Session) Run

func (s *Session) Run(ctrl controller.Controller, cmd *commander.Command) error

func (*Session) Start

func (s *Session) Start(c controller.Controller) error

Jump to

Keyboard shortcuts

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