router

package
v0.0.0-...-687c1ae Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Documentation of upmaster api

Schemes: http, https

Consumes:
	- application/json

Produces:
	- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(c Config) (*gin.Engine, error)

NewRouter generates a gin router from config

Types

type Config

type Config struct {
	DB              *gorm.DB
	DBName          string
	OAuthGCInterval int
}

Config has basic configurations Detailed config should be generated from basic config by database query

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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