auth

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logout

func Logout(method string, args SumaSessionKey) error

func SetLogger added in v0.1.53

func SetLogger(l *logrus.Logger)

Types

type Fault added in v0.1.53

type Fault struct {
	FaultCode   int    `xml:"fault>value>struct>member>value>int"`
	FaultString string `xml:"fault>value>struct>member>value>string"`
}

type SumaLogout

type SumaLogout struct {
	ReturnInt int
}

type SumaSessionKey

type SumaSessionKey struct {
	Sessionkey string
}

func Login

func Login(method string, args Sumalogin) (reply SumaSessionKey, err error)

type Suma_API_Error_MethodResponse added in v0.1.53

type Suma_API_Error_MethodResponse struct {
	XMLName xml.Name `xml:"methodResponse"`
	Text    string   `xml:",chardata"`
	Fault   struct {
		Text  string `xml:",chardata"`
		Value struct {
			Text   string `xml:",chardata"`
			Struct struct {
				Text   string `xml:",chardata"`
				Member []struct {
					Text  string `xml:",chardata"`
					Name  string `xml:"name"`
					Value struct {
						Text   string `xml:",chardata"`
						Int    string `xml:"int"`
						String string `xml:"string"`
					} `xml:"value"`
				} `xml:"member"`
			} `xml:"struct"`
		} `xml:"value"`
	} `xml:"fault"`
}

type Sumalogin

type Sumalogin struct {
	Login  string `xmlrpc:"username"`
	Passwd string `xmlrpc:"password"`
}

Jump to

Keyboard shortcuts

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