event

package
v0.0.0-...-3f1fb4b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 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 ConnectionConfig

type ConnectionConfig struct {
	ServerURL string `json:"server"`
	Username  string `json:"username"`
	Password  string `json:"password"`
}

type Error

type Error struct {
	Message string
}

type Event

type Event struct {
	Client *transmission.Client
	// contains filtered or unexported fields
}

func New

func New() *Event

func (*Event) ConfigSet

func (evt *Event) ConfigSet(s socketio.Conn, message string)

func (*Event) ConfigTest

func (evt *Event) ConfigTest(s socketio.Conn, message string)

func (*Event) OnConnect

func (evt *Event) OnConnect(s socketio.Conn) error

func (*Event) OnDisconnect

func (evt *Event) OnDisconnect(s socketio.Conn, reason string)

func (*Event) OnError

func (evt *Event) OnError(s socketio.Conn, err error)

func (*Event) TorrentGet

func (evt *Event) TorrentGet(s socketio.Conn, message string)

type InitConfig

type InitConfig struct {
	Configured bool   `json:"configured"`
	Theme      string `json:"theme"`
	ServerURL  string `json:"serverUrl"`
	Username   string `json:"username"`
}

Jump to

Keyboard shortcuts

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