session

package
Version: v0.0.0-...-5ef485b Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TLSVerify bool = true

Functions

This section is empty.

Types

type Session

type Session struct {
	Server     string
	Port       string
	Version    string
	CookieFile string
	TLSVerify  bool
	Jar        http.CookieJar

	Paths resource.Paths
	// contains filtered or unexported fields
}

func New

func New(server string, port string, version string) *Session

func (*Session) Connect

func (Ω *Session) Connect() (chan bool, chan error)

func (*Session) Login

func (Ω *Session) Login(username string, password string) (chan bool, chan error)

func (*Session) LoginStatus

func (Ω *Session) LoginStatus() (loggedIn bool, userName string, restorable bool)

func (*Session) NewRequest

func (Ω *Session) NewRequest() *gorequest.SuperAgent

returns a new request object clone session from default request

func (*Session) Request

func (Ω *Session) Request() *gorequest.SuperAgent

returns the default request object

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL