utils

package module
v0.0.0-...-9713768 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 16 Imported by: 0

README

utils

utils

Abandoned modules

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet .

Functions

func CheckToken

func CheckToken(key string) bool

CheckToken auth token

func Convert

func Convert(input string) ([]byte, error)

Convert shapefile to geojson currently not support Multi Geometry

func GetToken

func GetToken(identity string) (*string, error)

GetToken make Token

func If

func If[T any](condition bool, trueVal, falseVal T) T

If 三元表达式的写法 例如: max := If(a > b, a, b).(int)

func JWTAuthMiddleware

func JWTAuthMiddleware() func(c *gin.Context)

JWTAuthMiddleware MiddleWare

func NewCorn

func NewCorn() *cron.Cron

NewCorn .

func ReadPDF

func ReadPDF(path string) (string, error)

func ReadPdf2

func ReadPdf2(path string) (string, error)

func ReadShp

func ReadShp(path string) (string, error)

func UploadHandler

func UploadHandler(c *gin.Context)

UploadHandler POST Upload images files 单文件上传至upload文件夹中

func UploadsHandler

func UploadsHandler(c *gin.Context)

UploadsHandler UploadHandler POST Upload temp files 多文件上传至tmp文件目录中

Types

This section is empty.

Directories

Path Synopsis
db
Package scaffold .
Package scaffold .

Jump to

Keyboard shortcuts

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