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: 0

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