portal

package
v0.0.0-...-3e530b2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN      = "/v1.0/api/login"
	REGISTRY   = "/v1.0/api/users/add"
	NAMESPACES = "/v1.0/api/namespaces"
)
View Source
const HOST = "127.0.0.1:8081"

Variables

This section is empty.

Functions

func GetToken

func GetToken(s string) string

func WebServer

func WebServer()

Types

type CommonResponse

type CommonResponse struct {
	Code      int
	Data      interface{}
	Timestamp time.Time
	Message   string
}

登陆响应结果

func Login

func Login(loginReq LoginRequest) CommonResponse

登陆业务处理

func Registry

func Registry(user configservice.Userspace) CommonResponse

type LoginDataResponse

type LoginDataResponse struct {
	Token string
}

登陆响应数据

type LoginRequest

type LoginRequest struct {
	UserName string
	Password string
}

登陆请求入参

Jump to

Keyboard shortcuts

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