api

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package api define the API of the tiny URL service.

Index

Constants

View Source
const (
	// DefaultHost default host
	DefaultHost = "localhost"
	// DefaultPort default http server port
	DefaultPort = 8080

	// DefaultAPIPrefix default api prefix
	DefaultAPIPrefix = "/management"

	// VersionV1 api version
	VersionV1 = "/v1"
)

Variables

View Source
var DefaultServerAddr = fmt.Sprintf("%s:%d", DefaultHost, DefaultPort)

DefaultServerAddr default server addr make sure the value is formatted as "host:port"

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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