app

package
v0.0.0-...-e74fef0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Redis Redis
}

type Config

type Config struct {
	Server   Server
	Database Database
	Cache    Cache
	App      *model.AppConfig
}

func (*Config) Setup

func (c *Config) Setup()

func (*Config) StartServer

func (c *Config) StartServer()

type Database

type Database struct {
	SQL SQLCred
}

type Logger

type Logger struct {
	Format string
	Zap    *zap.Logger
}

type Port

type Port struct {
	GRPC uint32
	HTTP uint32
}

type Redis

type Redis struct {
	Host     string
	Port     uint32
	DB       uint8
	Username string
	Password string
	Client   *redis.Client
}

type SQLCred

type SQLCred struct {
	Host        string
	Port        uint32
	Schema      string
	Username    string
	Password    string
	AutoMigrate bool
	DB          *sqlx.DB
}

type Server

type Server struct {
	Address string
	Port    Port
	Logger  Logger
}

Jump to

Keyboard shortcuts

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