session

package
v0.0.0-...-2de3db7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//DefaultSID is the default session id provided by fritzbox
	DefaultSID = "0000000000000000"

	//ExpirationTime indicates the default expiration time for a fritzbox session
	ExpirationTime = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	URL       string
	SID       string
	Challenge string
	BlockTime int8
	Username  string
}

Session holds the fritzbox session information

func NewSessionByPassword

func NewSessionByPassword(fbURL, fbPassword string) (*Session, error)

NewSessionByPassword authenticates to given fritzbox url and returns the session information

func NewSessionByUsernamePassword

func NewSessionByUsernamePassword(fbURL, fbUsername, fbPassword string) (*Session, error)

NewSessionByUsernamePassword authenticates to given fritzbox url and returns the session information

Jump to

Keyboard shortcuts

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