session

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 18 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,prompt:IP Address of IRC server you wish to connect to"`
	SSL     string       `altid:"ssl,prompt:SSL mode,pick:none|simple|certificate"`
	Port    int          `altid:"port,no_prompt"`
	Auth    types.Auth   `altid:"auth,prompt:Authentication method to use:,pick:none|factotum|password"`
	Filter  string       `altid:"filter,no_prompt"`
	Nick    string       `altid:"nick,prompt:Enter your IRC nickname (this is what will be shown on messages you send)"`
	User    string       `altid:"user,no_prompt"`
	Name    string       `altid:"name,no_prompt"`
	Buffs   string       `altid:"buffs,no_prompt"`
	Logdir  types.Logdir `altid:"logdir,no_prompt"`
	TLSCert string       `altid:"tlscert,no_prompt"`
	TLSKey  string       `altid:"tlskey,no_prompt"`
}

type Session

type Session struct {
	Client *irc.Client

	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

Future, multiuser

func (*Session) Handle

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

input is always sent down raw to the server

func (*Session) Listen

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

func (*Session) Parse

func (s *Session) Parse()

func (*Session) Quit

func (s *Session) Quit()

func (*Session) Run

func (*Session) Start

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

Notes

Bugs

Jump to

Keyboard shortcuts

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