gins

package
v0.0.0-...-c4191a4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package gins provides instances and core components management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(name ...string) *gcfg.Config

Config returns an instance of View with default settings. The parameter `name` is the name for the instance.

func Database

func Database(name ...string) gdb.DB

Database returns an instance of database ORM object with specified configuration group name. Note that it panics if any error occurs duration instance creating.

func HttpClient

func HttpClient(name ...interface{}) *gclient.Client

HttpClient returns an instance of http client with specified name.

func I18n

func I18n(name ...string) *gi18n.Manager

I18n returns an instance of gi18n.Manager. The parameter `name` is the name for the instance.

func Log

func Log(name ...string) *glog.Logger

Log returns an instance of glog.Logger. The parameter `name` is the name for the instance. Note that it panics if any error occurs duration instance creating.

func Redis

func Redis(name ...string) *gredis.Redis

Redis returns an instance of redis client with specified configuration group name. Note that it panics if any error occurs duration instance creating.

func Resource

func Resource(name ...string) *gres.Resource

Resource returns an instance of Resource. The parameter `name` is the name for the instance.

func Server

func Server(name ...interface{}) *ghttp.Server

Server returns an instance of http server with specified name. Note that it panics if any error occurs duration instance creating.

func View

func View(name ...string) *gview.View

View returns an instance of View with default settings. The parameter `name` is the name for the instance. Note that it panics if any error occurs duration instance creating.

Types

This section is empty.

Jump to

Keyboard shortcuts

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