models

package
v0.0.0-...-5dfee32 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	Data     interface{} `json:"data"`
	Success  bool        `json:"success"`
	Errors   []string    `json:"errors"`
	Warnings []string    `json:"warnings"`
	Messages []string    `json:"messages"`
}

type CacheConfig

type CacheConfig struct {
	Addr string
	Db   int
}

type Config

type Config struct {
	Port            int
	Environment     string
	JwtSecret       string
	JwtExpireMinute int
	TimeZone        string
	Database        DatabaseConfig
	Cache           CacheConfig
}

type DatabaseConfig

type DatabaseConfig struct {
	Driver   string
	Host     string
	Port     int
	Username string
	Password string
	DbName   string
	SslMode  string
	LogLevel int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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