shared

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthInfoRoute

func AuthInfoRoute() string

func AuthRoute

func AuthRoute() string

func AuthRouteSuccess

func AuthRouteSuccess() string

Types

type AuthInfoModel

type AuthInfoModel struct {
	Scheme  string `swagger:"desc(Authentication scheme (jwt, basic, ip))"`
	AuthURL string `swagger:"desc(JWT only)"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type LoginResponse

type LoginResponse struct {
	JWT   string `json:"jwt,omitempty"`
	Error error  `json:"error,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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