alira

package module
v0.0.0-...-d2a2bec Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 4

README

alira

We provide new solution for your community, social, goverment and business need seamless without worry

References

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ViewData gin.H

Functions

func GetConnection

func GetConnection() *gorm.DB

Types

type AccessMiddleware

type AccessMiddleware interface {
	AppAdminRequired(args ...interface{}) gin.HandlerFunc
	CustomerAdminRequired(args ...interface{}) gin.HandlerFunc
}

type AuthenticationMiddleware

type AuthenticationMiddleware interface {
	SessionRequired(args ...interface{}) gin.HandlerFunc
	TokenRequired(args ...interface{}) gin.HandlerFunc
}

type Model

type Model struct {
	ID        string `gorm:"primary_key"`
	CreatedBy string `gorm:"default:null"`
	CreatedAt time.Time
	UpdatedBy string `gorm:"default:null"`
	UpdatedAt time.Time
	DeletedBy string     `gorm:"default:null"`
	DeletedAt *time.Time `sql:"index"`
}

func (*Model) BeforeCreate

func (model *Model) BeforeCreate(scope *gorm.Scope) error

type Response

type Response struct {
	Code    int             `json:"code" bson:"code"`
	Status  string          `json:"status" bson:"stats"`
	Message string          `json:"message" bson:"message`
	Error   string          `json:"error" bson:"error"`
	Data    json.RawMessage `json:"data" bson:"data"`
}

Directories

Path Synopsis
chatting module
common module
database

Jump to

Keyboard shortcuts

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