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

api

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: 4 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddAPILayer

func AddAPILayer(app *fiber.App)

Types

type Base64Request

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

type CompareRequest

type CompareRequest struct {
	Text1     string `json:"text1"`
	Text2     string `json:"text2"`
	CheckLine bool   `json:"check_line"`
}

type DateTimeRequest

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

type EpochTimeRequest

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

type HashRequest

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

type JWTDecodeRequest

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

type JWTEncodeRequest

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

type PropertiesRequest

type PropertiesRequest struct {
	Properties string `json:"properties"`
}

type Response

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

type URLRequest

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

type YamlRequest

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