util

package
v0.0.0-...-fabc42a Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

func Configure

func Configure(file string) *configure

Configure 载入xml配置文件

func GetAlbum

func GetAlbum() *mongoAlbum

func GetAlbumName

func GetAlbumName(c *gin.Context) string

func GetConfigure

func GetConfigure() *configure

func GetDeleteMD5

func GetDeleteMD5(c *gin.Context) []string

func GetDir

func GetDir(user, album, time string) string

func GetImage

func GetImage() *mongoImage

func GetImageInfo

func GetImageInfo() *mongoImageInfo

func GetJobQueue

func GetJobQueue() *jobQueue

func GetMylog

func GetMylog() *mylog

func GetPage

func GetPage(c *gin.Context) int

func GetPageSize

func GetPageSize(c *gin.Context) int

func GetPassword

func GetPassword(c *gin.Context) string

func GetService_feature

func GetService_feature() *service_feature

func GetUrl

func GetUrl() string

生成访问图片路由

func GetUser

func GetUser() *mongoUser

func GetUserName

func GetUserName(c *gin.Context) string

func HandleUrl

func HandleUrl(imageinfos data.ImageInfos)

func JobQueue

func JobQueue() *jobQueue

创建单实例

func MongoAlbum

func MongoAlbum() *mongoAlbum

func MongoImage

func MongoImage() *mongoImage

func MongoImageInfo

func MongoImageInfo() *mongoImageInfo

func MongoUser

func MongoUser() *mongoUser

func Mylog

func Mylog() *mylog

Mylog 创建mylog单实例

func Service_feature

func Service_feature() *service_feature

Types

type DBTable

type DBTable struct {
	Db         string `xml:"db"`
	Collection string `xml:"collection"`
}

type Feature

type Feature struct {
	Host string `xml:"host"`
	Port string `xml:"port"`
}

Feature 实时提取特征向量配置

type Gin

type Gin struct {
	Host string `xml:"host"`
	Port string `xml:"port"`
}

Gin gin配置

type Log

type Log struct {
	File string `xml:"file"`
}

Log 保存日志配置信息

type Mongo

type Mongo struct {
	Hosts string `xml:"hosts"`
	// 用户库
	User DBTable `xml:"user"`
	// 相册库
	Album DBTable `xml:"album"`
	// 图片库
	Image DBTable `xml:"image"`
	// 图片信息库
	ImageInfo DBTable `xml:"imageinfo"`
}

Mongo mongo图片库和特征库配置

type Nginx

type Nginx struct {
	Host      string `xml:"host"`
	HostInter string `xml:"host_inter"`
	Port      string `xml:"port"`
	Router    string `xml:"router"`
}

Nginx nginx-gridfs 获取图片配置

Jump to

Keyboard shortcuts

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