action

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginRequired = errors.New("login required")
View Source
var ErrPageExpired = errors.New("page expired")

Functions

This section is empty.

Types

type DashboardAction

type DashboardAction struct {
	Client client.Client
}

func (*DashboardAction) Update

func (action *DashboardAction) Update(ctx context.Context) (*DashboardData, error)

type DashboardData

type DashboardData struct {
	Interface int
}

type LoggedInData

type LoggedInData struct {
	Interface int
}

func PerformLoginIfRequired

func PerformLoginIfRequired(ctx context.Context, client client.Client, config *config.App, err error) (*LoggedInData, error)

type LoginAction

type LoginAction struct {
	Client client.Client
	Config *config.App
}

func (*LoginAction) GetFormData

func (action *LoginAction) GetFormData(ctx context.Context) (*parser.LoginForm, error)

func (*LoginAction) ParseResponse

func (action *LoginAction) ParseResponse(res *http.Response) (*parser.LoginForm, error)

func (*LoginAction) PerformLogin

func (action *LoginAction) PerformLogin(ctx context.Context, data *parser.LoginForm) (*LoggedInData, error)

type LogoutAction

type LogoutAction struct {
	Client client.Client
}

func (*LogoutAction) ForceLogout

func (action *LogoutAction) ForceLogout(ctx context.Context, interfaceValue int) error

func (*LogoutAction) PerformLogout

func (action *LogoutAction) PerformLogout(ctx context.Context, interfaceValue int) error

Jump to

Keyboard shortcuts

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