http

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCA

func CreateCA()

func NewUserGetter

func NewUserGetter(id string) redis.DBGetterFunc

Types

type AddVersion

type AddVersion struct {
}

func NewAddVersion

func NewAddVersion() *AddVersion

func (*AddVersion) OnRequest

func (this *AddVersion) OnRequest(ctx *gin.Context) error

func (*AddVersion) OnResponse

func (this *AddVersion) OnResponse(result interface{}) (interface{}, error)

type DBConfig

type DBConfig struct {
}

func NewDBConfig

func NewDBConfig() *DBConfig

func (*DBConfig) GormDB

func (this *DBConfig) GormDB() *gorm.DB

type EtcdConfig

type EtcdConfig struct {
}

func NewEtcdConfig

func NewEtcdConfig() *EtcdConfig

func (*EtcdConfig) Etcd

func (this *EtcdConfig) Etcd() *clientv3.Client

type IndexController

type IndexController struct {
	Db       *gorm.DB                    `inject:"-"`
	RedisSet *redis.RedisStringOperation `inject:"-"`
	Etcdctl  *etcd.EtcdCtl               `inject:"-"`
}

func NewIndexController

func NewIndexController() *IndexController

func (*IndexController) A

func (this *IndexController) A(ctx *gin.Context) string

func (*IndexController) A2

func (this *IndexController) A2(ctx *gin.Context) web.Json

func (*IndexController) B

func (this *IndexController) B(ctx *gin.Context) web.Json

func (*IndexController) Build

func (this *IndexController) Build(goft *web.Goft)

func (*IndexController) C

func (this *IndexController) C(ctx *gin.Context) web.Json

func (*IndexController) D

func (this *IndexController) D(ctx *gin.Context) web.Json

func (*IndexController) E

func (this *IndexController) E(ctx *gin.Context) web.Json

func (*IndexController) F

func (this *IndexController) F(ctx *gin.Context) web.Json

func (*IndexController) F2

func (this *IndexController) F2(ctx *gin.Context) sql.SimpleQuery

func (*IndexController) F23

func (this *IndexController) F23(ctx *gin.Context) sql.Query

func (*IndexController) F234

func (this *IndexController) F234(ctx *gin.Context) sql.Query

func (*IndexController) F2345

func (this *IndexController) F2345(ctx *gin.Context) sql.Query

func (*IndexController) F23456

func (this *IndexController) F23456(ctx *gin.Context) web.Json

func (*IndexController) F234567

func (this *IndexController) F234567(ctx *gin.Context) web.Json

func (*IndexController) Index

func (this *IndexController) Index(ctx *gin.Context) string

func (*IndexController) Index2

func (this *IndexController) Index2(ctx *gin.Context) string

func (*IndexController) Name

func (this *IndexController) Name() string

func (*IndexController) Time

func (this *IndexController) Time()

func (*IndexController) Wike

func (this *IndexController) Wike(ctx *gin.Context) string

type RedisConfig

type RedisConfig struct {
}

func NewRedisConfig

func NewRedisConfig() *RedisConfig

func (*RedisConfig) Redis

func (this *RedisConfig) Redis() *redis.Client

type TestIn

type TestIn struct {
}

func NewTestIn

func NewTestIn() *TestIn

func (*TestIn) OnRequest

func (this *TestIn) OnRequest(ctx *gin.Context) error

func (*TestIn) OnResponse

func (this *TestIn) OnResponse(result interface{}) (interface{}, error)

type TestVersion

type TestVersion struct {
}

func NewTest

func NewTest() *TestVersion

func (*TestVersion) OnRequest

func (this *TestVersion) OnRequest(ctx *gin.Context) error

func (*TestVersion) OnResponse

func (this *TestVersion) OnResponse(result interface{}) (interface{}, error)

type TokenCheck

type TokenCheck struct{}

func NewTokenCheck

func NewTokenCheck() *TokenCheck

func (*TokenCheck) OnRequest

func (this *TokenCheck) OnRequest(ctx *gin.Context) error

func (*TokenCheck) OnResponse

func (this *TokenCheck) OnResponse(result interface{}) (interface{}, error)

type User

type User struct {
	Name    string `form:"name" binding:"required" json:"name" gorm:"column:user_name" name:"user_name"`
	Id      string `form:"id" binding:"required" json:"id" gorm:"column:id" name:"id"`
	User_id string `form:"user_id" binding:"required" json:"user_id" gorm:"column:user_id" name:"user_id"`
}

func NewUser

func NewUser() *User

type UserClaim

type UserClaim struct {
	Age   float64 //这里是坑 jwt转换过后 Int被转换成float64 所以 int改成float64
	Uname string
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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