license

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

View Source
const (
	//license
	CodeLicenseGetLicenseError      = "503-16001"
	CodeLicenseCreateLicenseError   = "503-16002"
	CodeLicenseNotFoundLicenseError = "503-16003"
)

Variables

This section is empty.

Functions

func Init

func Init(dbClient *gorm.DB)

Types

type LicenseApi

type LicenseApi struct {
	DbClient *gorm.DB
}

func (*LicenseApi) ApiRegister

func (licenseApi *LicenseApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)

func (*LicenseApi) Create

func (licenseApi *LicenseApi) Create(ctx *gin.Context)

func (*LicenseApi) Get

func (licenseApi *LicenseApi) Get(ctx *gin.Context)

func (*LicenseApi) GetLicenseValidity

func (licenseApi *LicenseApi) GetLicenseValidity() (uint64, error)

func (*LicenseApi) MigriateSetting

func (licenseApi *LicenseApi) MigriateSetting()

type Setting

type Setting struct {
	ID      uint64 `json:"Id"`
	License string
}

Jump to

Keyboard shortcuts

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