models

package
v0.0.0-...-ae88a46 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package models

@author: xwc1125

Package models

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	Mode       string `json:"mode" mapstructure:"mode"`                // 环境模式(dev,test,prod)
	Name       string `json:"name" mapstructure:"name"`                // 应用名称
	Version    string `json:"version" mapstructure:"version"`          // 应用版本
	BaseSecret string `json:"base_secret" mapstructure:"base_secret"`  // 基础加密秘密
	Debug      bool   `json:"debug" mapstructure:"debug" yaml:"debug"` // 是否开启debug
}

ApplicationConfig 应用信息

type Response

type Response struct {
	ErrorMsg string `json:"error_msg,omitempty"`
}

func (Response) SetErrMsg

func (r Response) SetErrMsg(errMsg string) Response

func (Response) String

func (r Response) String() string

type ServerConfig

type ServerConfig struct {
	Host string            `json:"host" mapstructure:"host" yaml:"host"`
	Port int               `json:"port" mapstructure:"port" yaml:"port"`
	Ssl  network.TlsConfig `json:"ssl" mapstructure:"ssl" yaml:"ssl"`
}

ServerConfig 服务配置

Jump to

Keyboard shortcuts

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