base

package
v0.0.0-...-368aa3d Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package base @Author: Nick Bi @Date: @Desc: todo... /**

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AutoLoadConfig bool
	Server         Server
	Database       Database
	Redis          Redis
	Log            Log
}

type Database

type Database struct {
	Mysql Mysql
}

type Log

type Log struct {
	Level      string
	Path       string
	Sugar      bool
	FileName   string
	MaxSize    int
	MaxBackups int
	MaxAge     int
	Compress   bool
	PackLog    bool
}

type Mysql

type Mysql struct {
	Url string
}

type PageReq

type PageReq struct {
	Page int
	Size int
}

type Redis

type Redis struct {
	Host     string
	Port     string
	Password string
	Db       string
}

type Req

type Req struct {
}

type Res

type Res struct {
}

type Server

type Server struct {
	Port        string
	Name        string
	ContextPath string
	PublicUrl   []string
}

Jump to

Keyboard shortcuts

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