dt

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DtRegister

func DtRegister(name string, actionFactory func(Param) (Action, error))

Types

type Action

type Action interface {
	Response() (data gin.H, err error)
}

func NewCdnAddServer

func NewCdnAddServer(param Param) (Action, error)

func NewCdnDelServer

func NewCdnDelServer(param Param) (Action, error)

func NewCdnGetLastEvent

func NewCdnGetLastEvent(param Param) (Action, error)

func NewCdnGetList

func NewCdnGetList(param Param) (Action, error)

func NewCdnGetMax

func NewCdnGetMax(param Param) (Action, error)

func NewDnsAddDomain

func NewDnsAddDomain(param Param) (Action, error)

func NewDnsDelDomain

func NewDnsDelDomain(param Param) (Action, error)

func NewDnsGetLastEvent

func NewDnsGetLastEvent(param Param) (Action, error)

func NewDnsGetList

func NewDnsGetList(param Param) (Action, error)

func NewDnsGetMax

func NewDnsGetMax(param Param) (Action, error)

type CdnAddServer

type CdnAddServer struct {
	// contains filtered or unexported fields
}

func (*CdnAddServer) Response

func (d *CdnAddServer) Response() (data gin.H, err error)

type CdnDelServer

type CdnDelServer struct {
	// contains filtered or unexported fields
}

func (*CdnDelServer) Response

func (d *CdnDelServer) Response() (data gin.H, err error)

type CdnEvent

type CdnEvent struct {
	Servername string
	Act        string
	Utime      string
	Setting    interface{}
}

type CdnGetLastEvent

type CdnGetLastEvent struct {
	// contains filtered or unexported fields
}

func (*CdnGetLastEvent) Response

func (d *CdnGetLastEvent) Response() (data gin.H, err error)

type CdnGetList

type CdnGetList struct {
	// contains filtered or unexported fields
}

func (*CdnGetList) Response

func (d *CdnGetList) Response() (data gin.H, err error)

type CdnGetMax

type CdnGetMax struct {
	// contains filtered or unexported fields
}

func (*CdnGetMax) Response

func (d *CdnGetMax) Response() (data gin.H, err error)

type DnsAddDomain

type DnsAddDomain struct {
	// contains filtered or unexported fields
}

func (*DnsAddDomain) Response

func (d *DnsAddDomain) Response() (data gin.H, err error)

type DnsDelDomain

type DnsDelDomain struct {
	// contains filtered or unexported fields
}

func (*DnsDelDomain) Response

func (d *DnsDelDomain) Response() (data gin.H, err error)

type DnsGetLastEvent

type DnsGetLastEvent struct {
	// contains filtered or unexported fields
}

func (*DnsGetLastEvent) Response

func (d *DnsGetLastEvent) Response() (data gin.H, err error)

type DnsGetList

type DnsGetList struct {
	// contains filtered or unexported fields
}

func (*DnsGetList) Response

func (d *DnsGetList) Response() (data gin.H, err error)

type DnsGetMax

type DnsGetMax struct {
	// contains filtered or unexported fields
}

func (*DnsGetMax) Response

func (d *DnsGetMax) Response() (data gin.H, err error)

type Event

type Event struct {
	Domain string
	Act    string
	Utime  string
	Value  interface{}
}

type Param

type Param struct {
	Get url.Values
	//Content   *gin.Context
	Db *sqlx.DB
}

type Record

type Record struct {
	Id     int
	Domain string
	Value  []byte
}

type Servers

type Servers struct {
	Id                  int
	Servername, Setting string
}

Jump to

Keyboard shortcuts

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