models

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir struct {
		Root string
	}
	App struct {
		Name    string
		Desc    string
		Version string
		Port    int
	}
	Database struct {
		Host     string `yaml:"host" envconfig:"REDIS_HOST"`
		Port     int    `yaml:"port" envconnfig:"REDIS_PORT"`
		Username string `yaml:"username" envconfig:"REDIS_USERNAME"`
		Password string `yaml:"password" envconfig:"REDIS_PASSWORD"`
		DB       string `yaml:"database" envconfig:"REDIS_DB"`
		SSL      bool   `yaml:"sslenabled" envconfig:"REDIS_SSL"`
		Type     string `yaml:"type" envconfig:"REDIS_TYPE"`
	}
}

type Message

type Message struct {
	Key   string `json:"key" binding:"required"`
	Value string `json:"value" binding:"required"`
}

Jump to

Keyboard shortcuts

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