svc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 10 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 {
	GinMode    string   `json:"GinMode"`
	Debug      bool     `json:"Debug"`
	Port       int      `json:"Port"`
	StaticPath string   `json:"StaticPath"`
	DB         DBConfig `json:"DB"`
}

func (*Config) Load

func (c *Config) Load(file string) error

type Context

type Context struct {
	DB    *gorm.DB
	Cfg   *Config
	Core  core.Core
	Cache *cache.Cache
}

func NewContext

func NewContext(config string) (*Context, error)

type DBConfig

type DBConfig struct {
	Driver string `json:"Driver"`
	DSN    string `json:"DSN"`
}

Jump to

Keyboard shortcuts

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