_const

package
v0.0.0-...-5746ace Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PthSep = string(os.PathSeparator)

	UploadDir         = "down" + PthSep + "upload"
	UploadFileMaxSize = 1000 << 20

	LanguageEN      = "en"
	LanguageZH      = "zh"
	LanguageDefault = LanguageEN

	UserTokenExpireTime = 365 * 24 * 60 * 60 * 1000

	Authorization = "Authorization"
	Bearer        = "Bearer"
)

Variables

View Source
var (
	IsRelease = false
)

Functions

This section is empty.

Types

type HttpMethod

type HttpMethod string
const (
	Get    HttpMethod = "GET"
	Post   HttpMethod = "POST"
	Put    HttpMethod = "PUT"
	Delete HttpMethod = "DELETE"
)

func (HttpMethod) ToString

func (e HttpMethod) ToString() string

type ValidMethod

type ValidMethod string
const (
	ValidProjectPath ValidMethod = "validProjectPath"
	ValidDictName    ValidMethod = "validDictName"
)

func (ValidMethod) ToString

func (e ValidMethod) ToString() string

Jump to

Keyboard shortcuts

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