Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix         = "ui/"
	APIPrefix      = "/api"
	MainLayout     = Prefix + "layouts/main"
	BasePath       = "ui"
	JSONPath       = "/json"
	YAMLPath       = "/yaml"
	JWTPath        = "/jwt"
	UUIDPath       = "/uuid"
	ULIDPath       = "/ulid"
	PasswordPath   = "/password"
	Base64Path     = "/base64"
	URLPath        = "/url"
	HashPath       = "/hash"
	TimePath       = "/time"
	PropertiesPath = "/properties"
	TextsPath      = "/text"
)

Variables

This section is empty.

Functions

func StartServer

func StartServer(port int32, isVerbose bool)

Types

type Base64Request added in v0.0.2

type Base64Request struct {
	String string `json:"string"`
}

type DateTimeRequest added in v0.0.2

type DateTimeRequest struct {
	DateTime string `json:"datetime"`
}

type EpochTimeRequest added in v0.0.2

type EpochTimeRequest struct {
	Epoch string `json:"epoch"`
}

type HashRequest added in v0.0.2

type HashRequest struct {
	String string `json:"string"`
}

type JWTDecodeRequest added in v0.0.2

type JWTDecodeRequest struct {
	JWT string `json:"jwt"`
}

type JWTEncodeRequest added in v0.0.2

type JWTEncodeRequest struct {
	Headers map[string]interface{} `json:"headers"`
	Claims  map[string]interface{} `json:"claims"`
	Secret  string                 `json:"secret"`
}

type Response added in v0.0.2

type Response struct {
	Success bool        `json:"success"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type URLRequest added in v0.0.2

type URLRequest struct {
	URL string `json:"url"`
}

type YamlRequest added in v0.0.2

type YamlRequest struct {
	Yaml string `json:"yaml"`
}

Jump to

Keyboard shortcuts

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