ts

package
v0.0.0-...-1835397 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Versions = map[string]func(Param) (Version, error){}

Functions

func ComputeHmac256

func ComputeHmac256(message string, secret string) string

func TsRegister

func TsRegister(name string, versionFactory func(Param) (Version, error))

Types

type Param

type Param struct {
	Url     url.Values
	Content *gin.Context
	Db      *sqlx.DB
	Red     *redis.Client
}

type Version

type Version interface {
	Handler()
}

func NewVersion1

func NewVersion1(param Param) (Version, error)

func NewVersion2

func NewVersion2(param Param) (Version, error)

type Version1

type Version1 struct {
	Param
}

func (*Version1) Handler

func (v *Version1) Handler()

type Version2

type Version2 struct {
	Param
}

func (*Version2) Handler

func (v *Version2) Handler()

Jump to

Keyboard shortcuts

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