http

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckName

func CheckName(f validator.FieldLevel) bool

func CreateCA

func CreateCA()

func Do

func Do() Pip.OutChan

func DoData

func DoData(in Pip.InChan) Pip.OutChan

func GetPage

func GetPage(args ...interface{}) Pip.InChan

func NameRequired

func NameRequired(f validator.FieldLevel) bool

func NewUserGetter

func NewUserGetter(id string) Redis.DBGetterFunc

func NewUserGetter2

func NewUserGetter2(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) F2345679

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

func (*IndexController) Grpc

func (this *IndexController) Grpc(ctx *gin.Context) Web.Json

func (*IndexController) Grpc2

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

func (*IndexController) Grpc3

func (this *IndexController) Grpc3(ctx *gin.Context) Web.Json

func (*IndexController) Grpc4

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

func (*IndexController) Grpc5 added in v1.0.5

func (this *IndexController) Grpc5(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 `` /* 154-byte string literal not displayed */
	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