router

package
v0.0.0-...-dd776c8 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Startup

func Startup(cf bson.M) *gin.Engine

Startup 启动路由 @r 路由

Types

type Database

type Database struct {
	Server
	Dbs [][]string `form:"dbs" json:"dbs"`
}

Database 数据库,包含了集合

type Server

type Server struct {
	Key  string `form:"key" json:"key"`
	Name string `form:"name" json:"name"`
	Desc string `form:"desc" json:"desc"`
	Addr string `form:"addr" json:"addr"`
	Port string `form:"port" json:"port"`
}

Server 数据服务器

type User

type User struct {
	Name   string `form:"name" json:"name"`
	Passwd string `form:"passwd" json:"passwd"`
}

User 用户信息

Jump to

Keyboard shortcuts

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