routes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowedDatabases

func GetAllowedDatabases() echo.HandlerFunc

func GetCredential

func GetCredential() echo.HandlerFunc

func Login

func Login() echo.HandlerFunc

func Logout

func Logout() echo.HandlerFunc

Types

type CredentialRequest

type CredentialRequest struct {
	Role string `json:"role"`
}

type CredentialResponse

type CredentialResponse struct {
	Username      string `json:"username"`
	Password      string `json:"password"`
	ConnectionUrl string `json:"connectionUrl"`
	Validity      int    `json:"validity"`
}

type LoginRequest

type LoginRequest struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	NewPassword string `json:"newPassword"`
	OTP         string `json:"otp"`
}

type LoginResponse

type LoginResponse struct {
	Token  string `json:"token,omitempty"`
	Status string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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