weechat

package
v0.0.0-...-51513de Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

package weechat implements the WeeChat relay protocol.

Index

Constants

This section is empty.

Variables

View Source
var DEBUG = true

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Name      string "name"
	ShortName string "short_name"
	FullName  string "full_name"
	Title     string "title"

	Self uintptr "ptr:buffer"
	Prev uintptr "prev_buffer"
	Next uintptr "next_buffer"
}

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(addr string) (*Conn, error)

func (*Conn) BufferData

func (conn *Conn) BufferData(ptr uint64, limit int, filter string) (lines []LineData, err error)

func (*Conn) BuffersData

func (conn *Conn) BuffersData() (lines []LineData, err error)

func (*Conn) Close

func (conn *Conn) Close() error

func (*Conn) ListBuffers

func (conn *Conn) ListBuffers() ([]Buffer, error)

type Line

type Line struct {
	Self uintptr "ptr:line"
}

type LineData

type LineData struct {
	Date        time.Time "date"
	DatePrinted time.Time "date_printed"
	TimeString  string    "str_time"
	Prefix      string    "prefix"
	Message     string    "message"

	RefreshNeeded byte "refresh_needed"
	Displayed     byte "displayed"
	Highlight     byte "highlight"

	Buffer uintptr "ptr:buffer"
	Lines  uintptr "ptr:lines"
	Line   uintptr "ptr:line"
	Self   uintptr "ptr:line_data"
}

func (*LineData) Clean

func (l *LineData) Clean()

type Nick

type Nick struct {
	Group   byte   "group"
	Visible byte   "visible"
	Name    string "name"
	Prefix  string "prefix"

	Buffer uintptr "ptr:buffer"
	Self   uintptr "ptr:nicklist_item"
}

func (Nick) String

func (n Nick) String() string

Directories

Path Synopsis
weechat/web implements a web interface for weechat.
weechat/web implements a web interface for weechat.

Jump to

Keyboard shortcuts

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