webservice

package
v0.0.0-...-870565b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(hostname string, ws Webservice)

func Services

func Services() map[string]Webservice

func TestChangePassNewPasswordIsSameAsOld

func TestChangePassNewPasswordIsSameAsOld(t *testing.T)

func TestChangePassNewPasswordsDontMatch

func TestChangePassNewPasswordsDontMatch(t *testing.T)

func TestChangePassSuccessfully

func TestChangePassSuccessfully(t *testing.T)

func TestChangePasswordWithInvalidChars

func TestChangePasswordWithInvalidChars(t *testing.T)

func TestChangePasswordWithWrongOldPassword

func TestChangePasswordWithWrongOldPassword(t *testing.T)

func TestLogsInSuccessfully

func TestLogsInSuccessfully(t *testing.T)

func TestLogsInWithWrongEmail

func TestLogsInWithWrongEmail(t *testing.T)

func TestLogsInWithWrongPassword

func TestLogsInWithWrongPassword(t *testing.T)

Types

type AccountError

type AccountError struct {
	Email    string
	Hostname string
}

func (AccountError) Error

func (ae AccountError) Error() string

type ChangeError

type ChangeError struct {
	Hostname string
	Email    string
	Message  string
}

func (ChangeError) Error

func (ce ChangeError) Error() string

type ConnectError

type ConnectError struct {
	Hostname string
}

func (ConnectError) Error

func (ce ConnectError) Error() string

type ParseError

type ParseError struct {
	Hostname string
}

func (ParseError) Error

func (pe ParseError) Error() string

type Webservice

type Webservice interface {
	ChangePassword(email, oldpasswd, newpasswd string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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